Jump to content
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

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.

×
×
  • Create New...