Jump to content
Developer Wiki and Function Reference Links Read more... ×
PatrickSpot

Marionette in Spotlight

Recommended Posts

I am new to marionette and I am wondering if anybody has any tips on using it with the SPOTLIGHT specific tools? Such as, if I use marionette to make a rectangle that is 16' x 32' how can I make it apply the 'create stage' function from Spotlight?  

Share this post


Link to post
Posted (edited)

Hi Patrick,

 

with these commands you should be able to do the job. They should be also available as Marionette nodes.

Otherwise you can create them.

 

http://developer.vectorworks.net/index.php/VS:Function_Reference

 

CreateCustomObject(objectName, p, rotationAngle)

SetCustomObjectPath();

 

The params can be modified with:

 

GetParametricRecord

SetRField

 

Edited by PatW

Share this post


Link to post

I guess I should have underlined 'new'.... I am playing around with what you said, but I am not sure how this links to 'create stage' or what the proper string is for that.

Share this post


Link to post
Posted (edited)

You need to provide the internal plug-in name, usualy this is the name that you see in the OIP.

 

To get the definite name use this little script (Python):


 

# Example obj must be selected

hRec = vs.GetParametricRecord(vs.FSActLayer())

print (vs.GetName(hRec ))

 

Edited by PatW

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×