That looks right. I replaced the line "factory.setInput( 1, moi.vectorMath.createFrame() );"
with the code used in Mirror script. The following script works in either of a shortcut key to c:\Script\DrawCircle.js
or with the whole script in a shortcut key line pasted from Notepad++ DrawCircle.js.
I forgot, (again), how to do \code or whatever it was.
The following is for Right view, and it works in Windows7:
code:
script:/*DrawCircle*/var factory = moi.command.createFactory( 'circle' );var FrameOrigin = moi.vectorMath.createPoint( 0, 0, 0 );var FrameXAxis = moi.vectorMath.createPoint(0, 1, 0 );var FrameYAxis = moi.vectorMath.createPoint( 0, 0, 1 );var Frame = moi.vectorMath.createFrame( FrameOrigin, FrameXAxis, FrameYAxis );factory.setInput( 1, Frame );factory.setInput( 3, 10 );factory.commit();
It has been a good learning experience. :-)
That Dave Morrill documentation could use some upgrade, with lots of examples...
|