AL_USDMaya
0.16.6
USD to Maya Bridge
|
The layer node stores a reference to an SdfLayer. More...
#include <Layer.h>
Public Member Functions | |
Layer () | |
ctor | |
void | init (ProxyShape *shape, SdfLayerHandle handle) |
Called within the proxy shape to initialise the layer to the specified proxy shape and layer handle. More... | |
SdfLayerHandle | getHandle () |
get access to the internal layer handle this node represents More... | |
std::vector< Layer * > | getSubLayers () |
Methods to work with sublayers. More... | |
std::vector< Layer * > | getChildLayers () |
returns an array of all the child layers connected to this layer (assets essentially) | |
void | buildSubLayers (MDGModifier *pmodifier=0) |
constructs the sub layers after a proxy shape has loaded. More... | |
void | addSubLayer (Layer *subLayer, MDGModifier *pmodifier=0) |
adds a new sub layer to this layer More... | |
bool | removeSubLayer (Layer *subLayer) |
removes a sub layer from this layer More... | |
Layer * | getParentLayer () |
returns the parent layer (or NULL) More... | |
MPlug | parentLayerPlug () |
returns the plug to the parent layer message attribute More... | |
Layer * | findLayer (SdfLayerHandle handle) |
locate a layer within the layer stack More... | |
bool | hasBeenTheEditTarget () const |
Methods to handle the saving and restoring of layer data. More... | |
void | setHasBeenTheEditTarget (bool value) |
Sets a flag that indicates whether this layer has been set as the edit target. More... | |
void | setLayerAndClearAttribute (SdfLayerHandle handle) |
If the 'serialized' string attribute has data, then this method will initialize the layer specified to the contents of the serialized attribute. This is primarily a mechanism for storing edits when the maya scene is saved. More... | |
void | populateSerialisationAttributes () |
If the 'hasBeenTheEditTarget' flag is true, this method will copy the contents of the layer this node is referencing, into the 'serialized' attribute prior to saving the Maya file. | |
AL_MAYA_DECLARE_NODE () | |
Type Info & Registration. | |
AL_DECL_ATTRIBUTE (comment) | |
Type Info & Registration. | |
AL_DECL_ATTRIBUTE (defaultPrim) | |
AL_DECL_ATTRIBUTE (documentation) | |
AL_DECL_ATTRIBUTE (startTime) | |
AL_DECL_ATTRIBUTE (endTime) | |
AL_DECL_ATTRIBUTE (timeCodesPerSecond) | |
AL_DECL_ATTRIBUTE (framePrecision) | |
AL_DECL_ATTRIBUTE (owner) | |
AL_DECL_ATTRIBUTE (sessionOwner) | |
AL_DECL_ATTRIBUTE (permissionToEdit) | |
AL_DECL_ATTRIBUTE (permissionToSave) | |
AL_DECL_ATTRIBUTE (proxyShape) | |
AL_DECL_ATTRIBUTE (subLayers) | |
AL_DECL_ATTRIBUTE (childLayers) | |
AL_DECL_ATTRIBUTE (parentLayer) | |
AL_DECL_ATTRIBUTE (displayName) | |
AL_DECL_ATTRIBUTE (realPath) | |
AL_DECL_ATTRIBUTE (fileExtension) | |
AL_DECL_ATTRIBUTE (version) | |
AL_DECL_ATTRIBUTE (repositoryPath) | |
AL_DECL_ATTRIBUTE (assetName) | |
AL_DECL_ATTRIBUTE (serialized) | |
AL_DECL_ATTRIBUTE (nameOnLoad) | |
AL_DECL_ATTRIBUTE (hasBeenEditTarget) | |
Public Member Functions inherited from AL::maya::NodeHelper | |
NodeHelper () | |
ctor | |
~NodeHelper () | |
dtor | |
Static Public Member Functions | |
static MString | toMayaNodeName (std::string name) |
convert a usd display name into something maya can use as a node name More... | |
Static Public Member Functions inherited from AL::maya::NodeHelper | |
static bool | inputBoolValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input boolean value from the dataBlock from the specified attribute More... | |
static int8_t | inputInt8Value (MDataBlock &dataBlock, const MObject &attribute) |
get an input 8 bit integer value from the dataBlock from the specified attribute More... | |
static int16_t | inputInt16Value (MDataBlock &dataBlock, const MObject &attribute) |
get an input 16 bit integer value from the dataBlock from the specified attribute More... | |
static int32_t | inputInt32Value (MDataBlock &dataBlock, const MObject &attribute) |
get an input 32 bit integer value from the dataBlock from the specified attribute More... | |
static int64_t | inputInt64Value (MDataBlock &dataBlock, const MObject &attribute) |
get an input 64 bit integer value from the dataBlock from the specified attribute More... | |
static float | inputFloatValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input float value from the dataBlock from the specified attribute More... | |
static double | inputDoubleValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input double value from the dataBlock from the specified attribute More... | |
static MMatrix | inputMatrixValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input matrix value from the dataBlock from the specified attribute More... | |
static MPoint | inputPointValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input point value from the dataBlock from the specified attribute More... | |
static MFloatPoint | inputFloatPointValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input point value from the dataBlock from the specified attribute More... | |
static MVector | inputVectorValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input vector value from the dataBlock from the specified attribute More... | |
static MTime | inputTimeValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input time value from the dataBlock from the specified attribute More... | |
static MFloatVector | inputFloatVectorValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input vector value from the dataBlock from the specified attribute More... | |
static MColor | inputColourValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input colour value from the dataBlock from the specified attribute More... | |
static MString | inputStringValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input string value from the dataBlock from the specified attribute More... | |
static MPxData * | inputDataValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input data value from the dataBlock from the specified attribute More... | |
template<typename MPxDataType > | |
static MPxDataType * | inputDataValue (MDataBlock &dataBlock, const MObject &attribute) |
get an input data value from the dataBlock from the specified attribute More... | |
static MStatus | outputBoolValue (MDataBlock &dataBlock, const MObject &attribute, bool value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputInt8Value (MDataBlock &dataBlock, const MObject &attribute, int8_t value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputInt16Value (MDataBlock &dataBlock, const MObject &attribute, int16_t value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputInt32Value (MDataBlock &dataBlock, const MObject &attribute, int32_t value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputInt64Value (MDataBlock &dataBlock, const MObject &attribute, int64_t value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputFloatValue (MDataBlock &dataBlock, const MObject &attribute, float value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputDoubleValue (MDataBlock &dataBlock, const MObject &attribute, double value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputMatrixValue (MDataBlock &dataBlock, const MObject &attribute, const MMatrix &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputPointValue (MDataBlock &dataBlock, const MObject &attribute, const MPoint &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputFloatPointValue (MDataBlock &dataBlock, const MObject &attribute, const MFloatPoint &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputVectorValue (MDataBlock &dataBlock, const MObject &attribute, const MVector &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputEulerValue (MDataBlock &dataBlock, const MObject &attribute, const MEulerRotation &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputFloatVectorValue (MDataBlock &dataBlock, const MObject &attribute, const MFloatVector &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputColourValue (MDataBlock &dataBlock, const MObject &attribute, const MColor &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputStringValue (MDataBlock &dataBlock, const MObject &attribute, const MString &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputTimeValue (MDataBlock &dataBlock, const MObject &attribute, const MTime &value) |
Set the output value of the specified attribute in the datablock. More... | |
static MStatus | outputDataValue (MDataBlock &dataBlock, const MObject &attribute, MPxData *value) |
Set the output value of the specified attribute in the datablock. More... | |
static MPxData * | createData (const MTypeId &dataTypeId, MObject &data) |
helper method to create new data objects of the specified data type More... | |
template<typename MPxDataType > | |
static MPxDataType * | createData (const MTypeId &dataTypeId, MObject &data) |
helper method to create new data objects of the specified data type More... | |
static void | setNodeType (const MString &typeName) |
Sets the node type name you are adding attributes. Please call this before adding any frames! More... | |
static void | addFrame (const char *frameTitle) |
Add a new frame control into the AE template. More... | |
static MObject | addCompoundAttr (const char *longName, const char *shortName, uint32_t flags, std::initializer_list< MObject > list) |
add a new compound attribute to this node type More... | |
static MObject | addEnumAttr (const char *longName, const char *shortName, uint32_t flags, const char *const *strings, const int16_t *values) |
add a new enum attribute to this node type More... | |
static MObject | addStringAttr (const char *longName, const char *shortName, uint32_t flags, bool forceShow=false) |
add a new string attribute to this node type. More... | |
static MObject | addFilePathAttr (const char *longName, const char *shortName, uint32_t flags, FileMode fileMode, const char *fileFilter="") |
add a new file path attribute to this node type. More... | |
static MObject | addInt8Attr (const char *longName, const char *shortName, int8_t defaultValue, uint32_t flags) |
add a new integer attribute to this node type. More... | |
static MObject | addInt16Attr (const char *longName, const char *shortName, int16_t defaultValue, uint32_t flags) |
add a new integer attribute to this node type. More... | |
static MObject | addInt32Attr (const char *longName, const char *shortName, int32_t defaultValue, uint32_t flags) |
add a new integer attribute to this node type. More... | |
static MObject | addInt64Attr (const char *longName, const char *shortName, int64_t defaultValue, uint32_t flags) |
add a new integer attribute to this node type. More... | |
static MObject | addFloatAttr (const char *longName, const char *shortName, float defaultValue, uint32_t flags) |
add a new floating point attribute to this node type. More... | |
static MObject | addDoubleAttr (const char *longName, const char *shortName, double defaultValue, uint32_t flags) |
add a new double attribute to this node type. More... | |
static MObject | addTimeAttr (const char *longName, const char *shortName, const MTime &defaultValue, uint32_t flags) |
add a new time attribute to this node type. More... | |
static MObject | addDistanceAttr (const char *longName, const char *shortName, const MDistance &defaultValue, uint32_t flags) |
add a new time attribute to this node type. More... | |
static MObject | addAngleAttr (const char *longName, const char *shortName, const MAngle &defaultValue, uint32_t flags) |
add a new time attribute to this node type. More... | |
static MObject | addBoolAttr (const char *longName, const char *shortName, bool defaultValue, uint32_t flags) |
add a new boolean attribute to this node type. More... | |
static MObject | addFloat3Attr (const char *longName, const char *shortName, float defaultX, float defaultY, float defaultZ, uint32_t flags) |
add a new float3 attribute to this node type. More... | |
static MObject | addAngle3Attr (const char *longName, const char *shortName, float defaultX, float defaultY, float defaultZ, uint32_t flags) |
add a new float3 attribute to this node type. More... | |
static MObject | addDistance3Attr (const char *longName, const char *shortName, float defaultX, float defaultY, float defaultZ, uint32_t flags) |
add a new float3 attribute to this node type. More... | |
static MObject | addPointAttr (const char *longName, const char *shortName, const MPoint &defaultValue, uint32_t flags) |
add a new point attribute to this node type. More... | |
static MObject | addFloatPointAttr (const char *longName, const char *shortName, const MFloatPoint &defaultValue, uint32_t flags) |
add a new float point attribute to this node type. More... | |
static MObject | addVectorAttr (const char *longName, const char *shortName, const MVector &defaultValue, uint32_t flags) |
add a new vector attribute to this node type. More... | |
static MObject | addFloatVectorAttr (const char *longName, const char *shortName, const MFloatVector &defaultValue, uint32_t flags) |
add a new float vector attribute to this node type. More... | |
static MObject | addColourAttr (const char *longName, const char *shortName, const MColor &defaultValue, uint32_t flags) |
add a new colour attribute to this node type. More... | |
static MObject | addMatrix2x2Attr (const char *longName, const char *shortName, const float defaultValue[2][2], uint32_t flags) |
add a new matrix attribute to this node type. More... | |
static MObject | addMatrix3x3Attr (const char *longName, const char *shortName, const float defaultValue[3][3], uint32_t flags) |
add a new matrix attribute to this node type. More... | |
static MObject | addMatrixAttr (const char *longName, const char *shortName, const MMatrix &defaultValue, uint32_t flags) |
add a new matrix attribute to this node type. More... | |
static MObject | addDataAttr (const char *longName, const char *shortName, MFnData::Type type, uint32_t flags, MFnAttribute::DisconnectBehavior behaviour=MFnAttribute::kNothing) |
add a new data attribute to this node type. More... | |
static MObject | addDataAttr (const char *longName, const char *shortName, const MTypeId &type, uint32_t flags, MFnAttribute::DisconnectBehavior behaviour=MFnAttribute::kNothing) |
add a new data attribute to this node type. More... | |
static MObject | addMessageAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new message attribute to this node type. More... | |
static MObject | addVec2hAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 2D vector attribute to this node type. More... | |
static MObject | addVec2fAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 2D vector attribute to this node type. More... | |
static MObject | addVec2iAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 2D vector attribute to this node type. More... | |
static MObject | addVec2dAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 2D vector attribute to this node type. More... | |
static MObject | addVec3hAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 3D vector attribute to this node type. More... | |
static MObject | addVec3fAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 3D vector attribute to this node type. More... | |
static MObject | addVec3iAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 3D vector attribute to this node type. More... | |
static MObject | addVec3dAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 3D vector attribute to this node type. More... | |
static MObject | addVec4hAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 4D vector attribute to this node type. More... | |
static MObject | addVec4fAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 4D vector attribute to this node type. More... | |
static MObject | addVec4iAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 4D vector attribute to this node type. More... | |
static MObject | addVec4dAttr (const char *longName, const char *shortName, uint32_t flags) |
add a new 4D vector attribute to this node type. More... | |
template<typename datatype > | |
static void | setMinMax (MObject obj, datatype minimum, datatype maximum) |
set the min/max values on a numeric attribute More... | |
template<typename datatype > | |
static void | setMinMax (MObject obj, datatype minimum, datatype maximum, datatype softmin, datatype softmax) |
set the min/max/softmax values on a numeric attribute More... | |
static void | addBaseTemplate (const std::string &baseTemplate) |
used to add additional references to AETemplate calls for standard types, e.g. "AEsurfaceShapeTemplate" these will be inserted into the correct location More... | |
static void | generateAETemplate () |
This method will construct up the MEL script code for the attribute editor template for your node. Once constructed, the code will be executed silently in the background. If you wish to see the code being executed, enable 'echo all commands' in the MEL script editor prior to loading your plug-in. | |
static MStatus | addStringAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, bool forceShow=false, MObject *attribute=0) |
add a new string attribute to this node type. More... | |
static MStatus | addFilePathAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, FileMode fileMode, const char *fileFilter="", MObject *attribute=0) |
add a new file path attribute to this node type. More... | |
static MStatus | addInt8Attr (const MObject &node, const char *longName, const char *shortName, int8_t defaultValue, uint32_t flags, MObject *attribute=0) |
add a new integer attribute to this node type. More... | |
static MStatus | addInt16Attr (const MObject &node, const char *longName, const char *shortName, int16_t defaultValue, uint32_t flags, MObject *attribute=0) |
add a new integer attribute to this node type. More... | |
static MStatus | addInt32Attr (const MObject &node, const char *longName, const char *shortName, int32_t defaultValue, uint32_t flags, MObject *attribute=0) |
add a new integer attribute to this node type. More... | |
static MStatus | addInt64Attr (const MObject &node, const char *longName, const char *shortName, int64_t defaultValue, uint32_t flags, MObject *attribute=0) |
add a new integer attribute to this node type. More... | |
static MStatus | addFloatAttr (const MObject &node, const char *longName, const char *shortName, float defaultValue, uint32_t flags, MObject *attribute=0) |
add a new floating point attribute to this node type. More... | |
static MStatus | addDoubleAttr (const MObject &node, const char *longName, const char *shortName, double defaultValue, uint32_t flags, MObject *attribute=0) |
add a new double attribute to this node type. More... | |
static MStatus | addTimeAttr (const MObject &node, const char *longName, const char *shortName, const MTime &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new time attribute to this node type. More... | |
static MStatus | addDistanceAttr (const MObject &node, const char *longName, const char *shortName, const MDistance &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new time attribute to this node type. More... | |
static MStatus | addAngleAttr (const MObject &node, const char *longName, const char *shortName, const MAngle &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new time attribute to this node type. More... | |
static MStatus | addBoolAttr (const MObject &node, const char *longName, const char *shortName, bool defaultValue, uint32_t flags, MObject *attribute=0) |
add a new boolean attribute to this node type. More... | |
static MStatus | addFloat3Attr (const MObject &node, const char *longName, const char *shortName, float defaultX, float defaultY, float defaultZ, uint32_t flags, MObject *attribute=0) |
add a new float3 attribute to this node type. More... | |
static MStatus | addAngle3Attr (const MObject &node, const char *longName, const char *shortName, float defaultX, float defaultY, float defaultZ, uint32_t flags, MObject *attribute=0) |
add a new float3 attribute to this node type. More... | |
static MStatus | addPointAttr (const MObject &node, const char *longName, const char *shortName, const MPoint &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new point attribute to this node type. More... | |
static MStatus | addFloatPointAttr (const MObject &node, const char *longName, const char *shortName, const MFloatPoint &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new float point attribute to this node type. More... | |
static MStatus | addVectorAttr (const MObject &node, const char *longName, const char *shortName, const MVector &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new vector attribute to this node type. More... | |
static MStatus | addFloatVectorAttr (const MObject &node, const char *longName, const char *shortName, const MFloatVector &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new float vector attribute to this node type. More... | |
static MStatus | addColourAttr (const MObject &node, const char *longName, const char *shortName, const MColor &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new colour attribute to this node type. More... | |
static MStatus | addMatrixAttr (const MObject &node, const char *longName, const char *shortName, const MMatrix &defaultValue, uint32_t flags, MObject *attribute=0) |
add a new matrix attribute to this node type. More... | |
static MStatus | addMatrix2x2Attr (const MObject &node, const char *longName, const char *shortName, const float defaultValue[2][2], uint32_t flags, MObject *attribute=0) |
add a new matrix attribute to this node type. More... | |
static MStatus | addMatrix3x3Attr (const MObject &node, const char *longName, const char *shortName, const float defaultValue[3][3], uint32_t flags, MObject *attribute=0) |
add a new matrix attribute to this node type. More... | |
static MStatus | addDataAttr (const MObject &node, const char *longName, const char *shortName, MFnData::Type type, uint32_t flags, MFnAttribute::DisconnectBehavior behaviour=MFnAttribute::kNothing, MObject *attribute=0) |
add a new data attribute to this node type. More... | |
static MStatus | addDataAttr (const MObject &node, const char *longName, const char *shortName, const MTypeId &type, uint32_t flags, MFnAttribute::DisconnectBehavior behaviour=MFnAttribute::kNothing, MObject *attribute=0) |
add a new data attribute to this node type. More... | |
static MStatus | addMessageAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new message attribute to this node type. More... | |
static MStatus | addVec2hAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 2D floating point vector attribute to this node type. More... | |
static MStatus | addVec2fAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 2D floating point vector attribute to this node type. More... | |
static MStatus | addVec2iAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 2D integer vector attribute to this node type. More... | |
static MStatus | addVec2dAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 2D double precision vector attribute to this node type. More... | |
static MStatus | addVec3hAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 3D floating point vector attribute to this node type. More... | |
static MStatus | addVec3fAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 3D floating point vector attribute to this node type. More... | |
static MStatus | addVec3iAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 3D integer vector attribute to this node type. More... | |
static MStatus | addVec3dAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 3D double precision vector attribute to this node type. More... | |
static MStatus | addVec4hAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 4D floating point vector attribute to this node type. More... | |
static MStatus | addVec4fAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 4D floating point vector attribute to this node type. More... | |
static MStatus | addVec4iAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 4D integer vector attribute to this node type. More... | |
static MStatus | addVec4dAttr (const MObject &node, const char *longName, const char *shortName, uint32_t flags, MObject *attribute=0) |
add a new 4D double precision vector attribute to this node type. More... | |
Additional Inherited Members | |
Public Types inherited from AL::maya::NodeHelper | |
enum | AttributeFlags { kCached = 1 << 0, kReadable = 1 << 1, kWritable = 1 << 2, kStorable = 1 << 3, kAffectsAppearance = 1 << 4, kKeyable = 1 << 5, kConnectable = 1 << 6, kArray = 1 << 7, kColour = 1 << 8, kHidden = 1 << 9, kInternal = 1 << 10, kAffectsWorldSpace = 1 << 11, kUsesArrayDataBuilder = 1 << 12, kDontAddToNode = 1 << 30, kDynamic = 1 << 31 } |
A set of bit flags you can apply to an attribute. More... | |
enum | FileMode { kSave = 0, kLoad = 1, kDirectoryWithFiles = 2, kDirectory = 3, kMultiLoad = 4 } |
Specify the type of file/dir path when adding file path attributes. See addFilePathAttr. More... | |
The layer node stores a reference to an SdfLayer.
void AL::usdmaya::nodes::Layer::addSubLayer | ( | Layer * | subLayer, |
MDGModifier * | pmodifier = 0 |
||
) |
adds a new sub layer to this layer
subLayer | the new layer to add as a sub layer of this one |
pmodifier | optional modifier to use to build up undo/redo. This method does not call do it on the modifier. If no modifier is specified, then the connections are made immediately. |
void AL::usdmaya::nodes::Layer::buildSubLayers | ( | MDGModifier * | pmodifier = 0 | ) |
constructs the sub layers after a proxy shape has loaded.
pmodifier | pointer to a modifier that will record the nodes added (primarily if you need to keep hold of information for undo later). doIt() will NOT have been called prior to the function returning. |
Layer* AL::usdmaya::nodes::Layer::findLayer | ( | SdfLayerHandle | handle | ) |
locate a layer within the layer stack
handle | the handle to the layer to locate |
|
inline |
get access to the internal layer handle this node represents
Layer* AL::usdmaya::nodes::Layer::getParentLayer | ( | ) |
returns the parent layer (or NULL)
std::vector<Layer*> AL::usdmaya::nodes::Layer::getSubLayers | ( | ) |
Methods to work with sublayers.
returns an array of all the sub layers connected to this layer
bool AL::usdmaya::nodes::Layer::hasBeenTheEditTarget | ( | ) | const |
Methods to handle the saving and restoring of layer data.
return true if this layer has been set as the edit target at some point during the proxy having been loaded into maya.
void AL::usdmaya::nodes::Layer::init | ( | ProxyShape * | shape, |
SdfLayerHandle | handle | ||
) |
Called within the proxy shape to initialise the layer to the specified proxy shape and layer handle.
shape | the proxy shape |
handle | the layer to initialise this node to |
MPlug AL::usdmaya::nodes::Layer::parentLayerPlug | ( | ) |
returns the plug to the parent layer message attribute
access the parentLayer attribute plug on this node instance.
bool AL::usdmaya::nodes::Layer::removeSubLayer | ( | Layer * | subLayer | ) |
removes a sub layer from this layer
subLayer | the layer to remove |
void AL::usdmaya::nodes::Layer::setHasBeenTheEditTarget | ( | bool | value | ) |
Sets a flag that indicates whether this layer has been set as the edit target.
value |
void AL::usdmaya::nodes::Layer::setLayerAndClearAttribute | ( | SdfLayerHandle | handle | ) |
If the 'serialized' string attribute has data, then this method will initialize the layer specified to the contents of the serialized attribute. This is primarily a mechanism for storing edits when the maya scene is saved.
handle | the handle to initialize |
|
static |
convert a usd display name into something maya can use as a node name
name | the name of a usd prim |