Okay, I managed to get a cylinder:
script: /*draw cylinder*/ var factory = moi.command.createFactory( 'cylinder' ); factory.setInput( 1, moi.vectorMath.createFrame() ); factory.setInput( 2, moi.vectorMath.createPoint( 0, 10, 0 ) ); factory.setInput( 4, moi.vectorMath.createPoint( 0, 0, 40 ) ); factory.commit();
Other than the box script creating x,y,z points is required to get it to work. Radius and height values obviously don't work.
I'm looking forward to your feedback bemfarmer.
Update:
Setting only the height value as x,y,z point also works:
script: /*draw cylinder*/ var factory = moi.command.createFactory( 'cylinder' ); factory.setInput( 1, moi.vectorMath.createFrame() ); factory.setInput( 3, 10 ); factory.setInput( 4, moi.vectorMath.createPoint( 0, 0, 40 ) ); factory.commit();
|