// LayerId identifies a scene Layer. Scene objects and cameras belong to // LayerSets built from these ids — a camera only renders objects whose // layer set intersects its renderLayer. constmodel = this.pluginSystem.findInterface(Editor.Model.IModel) asEditor.Model.IModel; constscene = model.project.scene;
// Put a new scene object on the Default layer and render it via a camera // constrained to that same layer. constobj = scene.createSceneObject('DefaultLayerObj'); obj.layers = Editor.Model.LayerSet.fromId(Editor.Model.LayerId.Default);
The id of a Editor.Model.Layer.
Example