Hi Larry,
re:
> I wonder if it would be possible for a script to invoke Leader with an initial point for
> the arrow location as well as the text to be placed? Maybe even a List of all the
> points for the leader?
Yes, it's possible to generate a leader from a set of points in script code. Here's an example:
code:
var factory = moi.command.createFactory( 'leader' );
factory.setInput( 0, moi.vectorMath.createTopFrame() );
factory.setInput( 1, 'Leader' );
factory.setInput( 2, 0 );
factory.createInput( 'point' );
factory.createInput( 'point' );
factory.createInput( 'point' );
factory.setInput( 3, moi.vectorMath.createPoint(5,0,0) );
factory.setInput( 4, moi.vectorMath.createPoint(5,10,0) );
factory.setInput( 5, moi.vectorMath.createPoint(15,15,0) );
factory.commit();
If you copy that and then in MoI push Tab, paste and enter it should generate this result:
The factory inputs for leader go like this:
Leader input 0 - base frame for plane and first point.
Leader input 1 - text
Leader input 2 - property preset index
Followed by 1 or more dynamically created point inputs
- Michael
|