nukescripts.geosnap3d.translate_rotate_pivot
- nukescripts.geosnap3d.translate_rotate_pivot(node_to_snap, translate, rotate, current_frame)[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
node_to_snap (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).