vcLayer

vcLayer allows you to group objects in the 3D world into separate layers.

Properties

Name Type Access Description
Name String RW Defines the name of layer.
Visibility Boolean RW Turns on/off the visibility of layer and all of its objects.

Examples

Example. Create layer and assign geometry

from vcScript import *
 
app = getApplication()
layerDemo = app.findLayer("Example")
if not layerDemo:
  layerDemo = app.createLayer("Example")
 
#this example was used with an articulated robot
comp = getComponent()
for geoset in comp.Geometry.GeometrySets:
  geoset.Layer = layerDemo
  
layerDemo.Visibility = False
app.render()