cgp_maya_utils.scene¶
python objects and management functions to manipulate a variety of entities in a maya scene such as nodes, attributes, components, namespaces, plugins …
Classes connection
Connection(source, destination) |
connection object that manipulates live or virtual connection between two attributes |
Classes attribute
Attribute(fullName) |
attribute object that manipulates any kind of attribute |
BoolAttribute(fullName) |
attribute object that manipulates a boolean attribute |
ByteAttribute(fullName) |
attribute object that manipulates a byte attribute |
CompoundAttribute(fullName) |
attribute object that manipulates any kind of compound attribute |
Double3Attribute(fullName) |
attribute object that manipulates double3 attribute |
DoubleAngleAttribute(fullName) |
attribute object that manipulates a doubleAngle attribute |
DoubleAttribute(fullName) |
attribute object that manipulates a double attribute |
DoubleLinearAttribute(fullName) |
attribute object that manipulates a doubleLinear attribute |
EnumAttribute(fullName) |
attribute object that manipulates a enum attribute |
Float3Attribute(fullName) |
attribute object that manipulates float3 attribute |
FloatAttribute(fullName) |
attribute object that manipulates a float attribute |
LongAttribute(fullName) |
attribute object that manipulates a long attribute |
MatrixAttribute(fullName) |
attribute object that manipulates a matrix attribute |
MessageAttribute(fullName) |
attribute object that manipulates a message attribute |
NumericAttribute(fullName) |
attribute object that manipulates any kind of numeric attribute |
ShortAttribute(fullName) |
attribute object that manipulates a short attribute |
StringAttribute(fullName) |
attribute object that manipulates a string attribute |
TDataCompoundAttribute(fullName) |
attribute object that manipulates TDataCompound attribute |
TimeAttribute(fullName) |
attribute object that manipulates a time attribute |
Classes node
AimConstraint(name) |
node object that manipulates an aim constraint node |
AnimCurve(name) |
node object that manipulates any kind of animation curve node |
AnimCurveTA(name) |
node object that manipulates an animCurveTA animation curve node |
AnimCurveTL(name) |
node object that manipulates an animCurveTL animation curve node |
AnimCurveTU(name) |
node object that manipulates an animCurveTU animation curve node |
Constraint(name) |
node object that manipulates any kind of constraint node |
DagNode(name) |
node object that manipulates any kind of dag node |
GeometryFilter(name) |
node object that manipulates any kind of geometry filter node |
IkEffector(name) |
node object that manipulates an ikEffector node |
IkHandle(name) |
node object that manipulates an ikHandle node |
Joint(name) |
node object that manipulates a joint node |
Mesh(name) |
node object that manipulates a mesh shape node |
Node(name) |
node object that manipulates any kind of node |
NurbsCurve(name) |
node object that manipulates a nurbsCurve shape node |
NurbsSurface(name) |
node object that manipulates a nurbsSurface shape node |
OrientConstraint(name) |
node object that manipulates an orient constraint node |
ParentConstraint(name) |
node object that manipulates an parent constraint node |
PointConstraint(name) |
node object that manipulates an point constraint node |
Reference(name) |
node object that manipulates a reference node |
ScaleConstraint(name) |
node object that manipulates an scale constraint node |
Shape(name) |
node object that manipulates any kind of shape node |
SkinCluster(name) |
node object that manipulates a skinCluster node |
Transform(name) |
node object that manipulates a transform node |
Classes component
Component(fullName) |
component object that manipulates any kind of component |
CurvePoint(fullName) |
component object that manipulates a curvePoint component |
Edge(fullName) |
component object that manipulates an edge component |
EditPoint(fullName) |
component object that manipulates an editPoint component |
Face(fullName) |
component object that manipulates an face component |
IsoparmU(fullName) |
component object that manipulates an isoparmU component |
IsoparmV(fullName) |
component object that manipulates an isoparmV component |
SurfacePatch(fullName) |
component object that manipulates an surfacePatch component |
SurfacePoint(fullName) |
component object that manipulates an surfacePoint component |
TransformComponent(fullName) |
component object that manipulates any kind of transform component |
Vertex(fullName) |
component object that manipulates an vertex component |
Classes miscellaneous
Namespace(namespace) |
namespace object that manipulates a namespace |
Plugin(name) |
plugin object that manipulates a maya plugin |
Scene |
scene object that manipulates a live scene |
Functions
attribute(fullName) |
the attribute object from an attribute full name |
component(fullName) |
the component object from a component full name |
connection(source, destination) |
the connection object representing a connection, live or virtual, between the source and the destination |
createAttribute(data, **extraData) |
create an attribute using an attribute data dictionary |
createNode(data, **extraData) |
create a node using a node data dictionary |
currentNamespace([asAbsolute]) |
the current namespace of the maya scene |
getAttributes(name[, attributeTypes]) |
get the existing attributes in the scene |
getNodes([namePattern, nodeTypes, …]) |
get the existing nodes in the scene |
getNodesFromAttributes(attributes) |
get the nodes having the specified attributes |
namespace(name) |
the namespace object from a name |
node(name) |
the node object from a node name |
plugin(name) |
the plugin object from a name |
scene() |
the scene object from the live maya scene |