nukescripts.translateRotatePivot
- nukescripts.translateRotatePivot(nodeToSnap, translate, rotate)[source]
Pivot translation and rotation must keep the object stationary and in order to do that compensation values must be placed in the geometry translate and rotate.
- Parameters
nodeToSnap (nuke.Node) – Node to translate and rotate
translate (_nukemath.Vector3) – Target position for the pivot point.
rotate (_nukemath.Vector3) – Target rotation for the pivot point.
- Return type
tuple
- Returns
A tuple with the new geometry translation and rotation respectively (_nukemath.Vector3, _nukemath.Vector3).