nod.nodetypes.transform
- class nod.nodetypes.transform.NodTransform(*args)
Bases:
nod.nodetypes.dag.NodDag
- centerPivots()
Center nodes pivots
- freeze(t=True, r=True, s=True)
Freeze node transforms
- Parameters
t (bool) – If True freeze translate channels
r (bool) – If True freeze rotate channels
s (bool) – If True freeze scale channels
- limitRotate(x=None, y=None, z=None)
- limitScale(x=None, y=None, z=None)
- limitTranslate(x=None, y=None, z=None)
- lockTransforms(hide=False)
- matrix(exclusive=False, inverse=False)
Returns the matrix for all transforms in the path, including the node
- Parameters
exclusive (bool) – If True get matrix for all transforms in the path, excluding the current node
inverse (bool) – If True return inverse matrix
- Returns
Matrix
- Return type
om.MMatrix
- move(x, y, z, **kwargs)
Using maya.cmds.move arguments. Operates on the current node
- Parameters
x (float) – X value
y (float) – Y value
z (float) – Z value
- objectCenter(*args, **kwargs)
Utilizing maya.cmds.objectCenter() function
- r()
- Returns
nod.channels.base.NodChannel
- rotate()
- Returns
nod.channels.base.NodChannel
- rx()
- Returns
nod.channels.base.NodChannel
- ry()
- Returns
nod.channels.base.NodChannel
- rz()
- Returns
nod.channels.base.NodChannel
- s()
- Returns
nod.channels.base.NodChannel
- scale()
- Returns
nod.channels.base.NodChannel
- snapPivotTo(other)
Snaps pivot to given node
- snapTo(other, position=False, orient=False, pivot=False)
Snaps the transforms of the current node to another given nod
# TODO: Extract logic to separate module
- Parameters
other (Nod, str) – Either another Nod or a string name
position (bool) – If True match the node position
orient (bool) – If True match the node orientation
pivot (bool) – If True match the node rotate and scalePivots, only useful when not position snapping
- sx()
- Returns
nod.channels.base.NodChannel
- sy()
- Returns
nod.channels.base.NodChannel
- sz()
- Returns
nod.channels.base.NodChannel
- t()
- Returns
nod.channels.base.NodChannel
- translate()
- Returns
nod.channels.base.NodChannel
- tx()
- Returns
nod.channels.base.NodChannel
- ty()
- Returns
nod.channels.base.NodChannel
- tz()
- Returns
nod.channels.base.NodChannel
- unlockTransforms()
- xform(**kwargs)
Using maya.cmds.xform on self