maya.types.curve¶
Curve node type wrapper.
Classes¶
Wrapper for NURBS curve nodes. |
Module Contents¶
- class Curve(node_name)¶
Bases:
maya.core.shapenode.ShapeNodeWrapper for NURBS curve nodes.
- classmethod create(*args, **kwargs)¶
Create a NURBS curve node.
- cvs(space='world')¶
Return all control vertex positions.
- Args:
- spacestr, optional
Coordinate space to return the CVs in. Accepted values: “world”, “object”, “transform”. Default is “world”.
- Returns:
- OpenMaya.MPointArray
Array of CV positions in the requested space.
- scale_points(scale_factor, pivot='object', pivot_point=None)¶
Scale the control points of the curve.
- Args:
- scale_factorfloat
Uniform scale factor to apply to all CVs.
- pivotstr, optional
Pivot mode for scaling. Accepted values are “object”, “center” or “custom”. Default is “object”.
- pivot_pointtuple of float, optional
Custom pivot point (x, y, z) if pivot_mode is “custom”.
- property line_width¶
Get or set the line width of the curve for display purposes.