Hi Joe,
re:
> PS I also wonder what js engine is used in MoI, is it V8, duktape, mugs, etc?
It's JavaScriptCore that's part of WebKit.
re: Scripting points - MoI v4 does not have an interface for scripts to access object points but there has been some stuff added in for the current v5 beta for that.
You can get the v5 beta at https://moi3d.com/beta.htm , and the info is in the V5 beta release notes: https://moi3d.com/wiki/V5Beta , it's this part:
quote:
Edit points scripting - Add scripting interface on objects for:
obj.hasEditPoints - read-only property true if object has edit points, false if not.
obj.hasSelectedEditPoints - read-only property true if object has any selected edit points.
obj.numEditPoints - read-only property for number of edit points.
obj.getEditPoint( index ) - method that returns an x,y,z point for the given edit point index.
obj.getEditPointSelected( index ) - method that returns true if the given edit point is selected.
There may not be enough stuff in there yet for editing the points though, you would need to select it and then use the Move factory to create a new object with a moved point. Although you can read selection currently there isn't a set selection yet.
- Michael
|