Jump to content
Developer Wiki and Function Reference Links ×

Issues with Set Layer Marionette Node


Recommended Posts

Hi All,

I've been having some inconsistencies with the 'Set Layer' command that I've been trying to sort out. I have a few marionette scripts set up to automatically build and place lighting FOH setups, placing platforms, and then placing lighting consoles and media servers based on dropdown commands in the OIP. For the lighting consoles, I have had no problem getting them onto my 'lighting' layer, though I've had to place the 'Set Layer' node before any modifications (rotate, move etc). However, for the FOH Symbol (a library symbol made up of several different symbols for stairs, deck, legs, etc), the symbol will not take the layer command, no matter where in the sequence it is placed.

 

I've had similar issues with another marionette script I have built to build stages - the set layer command does not seem to work anywhere I place it in the sequence.

 

Is this the correct usage of the command, and are there any workarounds to make this command work properly? Thanks in advance!

 

image.thumb.png.a56fd244c3bc813d60c1fd5c59d0ed58.png

Link to comment

Uh Wassup Alex 😅

 

Are any of your symbols or component symbols named or classed the exact same as the layer you want to set them to?

There's a bug with the command that Node uses to get the layers, that means it will miss a given layer if there are any classes, resources or named objects with that name.

 

If that's not the issue, you may also try grouping all the objects, setting the layer to that group, then ungrouping.

  • Like 1
Link to comment
3 minutes ago, Juliensv said:

Uh Wassup Alex 😅

 

Are any of your symbols or component symbols named or classed the exact same as the layer you want to set them to?

There's a bug with the command that Node uses to get the layers, that means it will miss a given layer if there are any classes, resources or named objects with that name.

 

If that's not the issue, you may also try grouping all the objects, setting the layer to that group, then ungrouping.

 

This bug seems to be where the issue is stemming from actually. The components of the FOH symbol are all in classes like "Staging-Steel Deck" or "Staging-Pipe" and the layer I'm trying to apply them to is called 'Staging.' When I switch the set layer to Lighting, Structure, etc the node works fine. (Oddly enough, it won't set the layer to "Audio" either, but it will do all of my other standard layers.)

 

Thanks for the insight here! Have you found any workaround to this bug?

Link to comment

This file is behaving very strangely for me.

 

Even though all of the Layers are at the same scale and Show/Snap/Modify Others is selected, when I choose a layer other than Default, all of the Marionette objects disappear from my view.

 

Also, when I am on the Default layer, I can select the nodes, but the handles to move the wires never show up.

 

From a Best Practices standpoint, have the same names for Layers and Classes, while possible, is probably not a good idea. Vectorworks really does not like having multiple objects with the same name.  Perhaps you can prefix or suffix the Layer and Class names with a symbol.

 

Hopefully Marissa will be of more help.

Link to comment
  • Marionette Maven
17 hours ago, Pat Stanford said:

Also, when I am on the Default layer, I can select the nodes, but the handles to move the wires never show up.

Are you in Top/Plan? I'm able to see the handles, but Marionette requires you to be in this view in order for the handles to appear. Just want to make sure you're not experiencing something else.

Link to comment
  • Marionette Maven

@Alex Talbot

 

In case you're interested in what's happening, you have folders in your resource manager that have the same name as your layers, and the script is finding those first. Since a symbol on the drawing area can't be placed in a resource folder, they're defaulting to be placed on the active layer. I'll have to look into a way to handle this, but as others have said earlier in this thread, it's better to try to reduce similar names of objects throughout the document.

Link to comment
3 hours ago, Marissa Farrell said:

Are you in Top/Plan? I'm able to see the handles, but Marionette requires you to be in this view in order for the handles to appear. Just want to make sure you're not experiencing something else.

I am not positive that I was in Top/Plan, but I think I was.

 

Today I am able to move the wires, but the handles are showing as thin black open squares instead of the blue handles I am used to.

 

image.png.eb019793444e5c88e0fd6d1a319d1b0a.png

Link to comment
8 hours ago, Marissa Farrell said:

This Set Layer node should solve the issue.

 

I'm adding a bug to our tracking software and will work to get a fix in for a later service pack.

Set Layer 2023_MFarrell.vwx 89.97 kB · 2 downloads

@Marissa FarrellThanks! This node works great. Can you provide me the internal bug tracking number? I like to notate any bugs I run into so I can quickly check them when new service packs are released. 

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