Jump to content
Developer Wiki and Function Reference Links ×

Set Layer Node that Allows for String Input?


ASag

Recommended Posts

The Set Layer node in the library appears to only take the object input, and then an existing layer needs to be selected from a drop down within the node. I need to push different objects to different layers and I can't figure out how to do this with the existing node.

 

Screenshot2024-12-05at12_06_45AM.png.2a4e7135d4f523c04ae9bb3a343c295c.png

As an example, I might have 3 floors of a building (3 different design layers), and my script pulls objects from all those layers, but the resulting objects need to go back to the layers the original object pulled from... It seems that when I run the script, all resulting objects end up on the active design layer.

Is it possible with the default node? If not, is there another way to do this with the default nodes or could someone help direct me to edit the default node to allow this?

While I've become pretty solid with Marionette over the past year, I still need to learn more about making or editing the scripts directly.

Link to comment
  • Marionette Maven

I was going to suggest a Set Parent node, but apparently we don't have one in default content. I'll make a note to add one later 🙂

Here's a quick one, I didn't test it and it has minimal error handling, but just to have something available for anyone looking (please let me know if someone tests it out)

This node will let you set the parent of an object, it can be a layer or a group (or other things depending on object types)

Set Parent Node.vwx

  • Like 2
Link to comment

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.

×
×
  • Create New...