Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.getTransform
8.0

<node3d>.getTransform

Get a linkable for controlling a sub-transform of the node

<node3d>.getTransform(  
name  
)  
name
Transform node name

Remarks

This command returns a linkable object that can be used to directly modify a sub-transform node in the model hierarchy. The linkable also supports the action interface, which allows applying transform related actions (e.g. <vizact>.moveTo, <vizact>.spinTo, ...).

Return Value

linkable object

Example

model = viz.add('piazza.osgb')
dome = model.getTransform('pz_skydome')
dome.setEuler([45,0,0])

See also

<node3d>.getMatrix
<node3d>.setMatrix
<node3d>.getChild