Skip to content
renderStacks by QuasiKrystal

LayerSet and SceneXref

renderStacks has 8 ways to define a collection of objects. We recommend the LayerSet.

A LayerSet is a set of layers. The objects on those layers are the collection of objects.

When you use a LayerSet, the Scene Explorer becomes your LayerSet viewer and editor. Nested layers with a Nested LayerSet give you more flexibility.

Warning

There is one very important rule when you use a LayerSet with a Scene Xref.

When you add a Scene Xref to your scene, all layers from the Scene Xref are temporary layers. They are linked to the Scene Xref file. If you remove or disable the Scene Xref, 3ds Max also removes the temporary layers from the scene. When you import or enable the Scene Xref again, 3ds Max makes the layers again with the same names. This is a problem when renderStacks is in GUID mode, as it must be.

renderStacks GUID mode does not use names. This is how renderStacks identifies an object or a layer after you change its name. When 3ds Max makes a layer again, the layer gets a new internal GUID. Thus, the layer loses its connection to the layer and LayerSet assignments.

To prevent this, make each Scene Xref layer a local layer after you load the Scene Xref. A local layer exists in your scene. To do this, make an object on the temporary layer. The layer then becomes local, and the Scene Xref uses this local layer. The layer stays local after you delete the object.

From version 1.246, renderStacks does this for you. It registers a callback that makes the Scene Xref layers local when a Scene Xref loads. You do not need to do anything. But these layers stay in the scene after you remove the Scene Xref, because they are permanently local.