Jump to content
Nomi

Get Layer doesn't return handle to layer of object

Recommended Posts

Hi all,

 

Ran into a snag with the vs.GetLayer(h) command in marionette. Instead of returning a handle to the layer of the object, it returns a handle to the current layer in the document. What am I missing? Do I need to regenerate the object/something along those lines? I've attached a script with a modified Get Layer node that returns the name of the layer rather than the handle (just so it's easier to see what you're getting back). Any help appreciated!

 

Thanks,

 

Naomi

Get Layer.vwx

Share this post


Link to post

Hello Nomi,

 

Why don't you use the original node "get layer"?

in your node get Layer(ED) is "out" the name of the layer!

Change out to l und you get the handle.

 

Greatings M. Graf 

 

251598350_Bildschirmfoto2020-12-02um21_31_40.thumb.png.181947ec3a4b094d0bf7930c1092b63b.png

Share this post


Link to post

Hello Nomi

Sorry, saw your problem now.

Change the "Name Node" to do "no copy" and you will get the original layer.

with "copy" it returns the Layer of the new (copy) object 

greatings M.Graf 

Edited by m.graf

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...