22 #include <maya/MFnAttribute.h> 23 #include <maya/MPlug.h> 24 #include <maya/MStatus.h> 25 #include <maya/MFnDependencyNode.h> 26 #include <maya/MObject.h> 27 #include <maya/MString.h> 28 #include <maya/MVector.h> 33 get_maya_plug(MObject &node,
const std::string &attribute_name, MPlug &plug);
36 is_connected(MObject &node,
const std::string &attribute_name);
38 template<
class ValueType>
40 get_maya_attribute(MObject &node,
const std::string &attribute_name,
43 template<
class ValueType>
45 set_maya_attribute(MObject &node,
const std::string &attribute_name,
49 has_attribute(MObject &node,
const std::string &attribute_name);
95 const std::string &value);
104 string_mfndata_type(MFnData::Type type);
112 INLINE std::ostream &operator << (std::ostream &out,
const MString &str);
113 INLINE std::ostream &operator << (std::ostream &out,
const MVector &vec);
116 #include "maya_funcs.T" bool get_string_attribute(MObject &node, const std::string &attribute_name, std::string &value)
Extracts the named string attribute from the MObject.
bool get_vec3d_attribute(MObject &node, const std::string &attribute_name, LVecBase3d &value)
Extracts the named three-component vector from the MObject.
void list_maya_attributes(MObject &node)
Writes some info output showing all the attributes on the given dependency node.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool get_mat4d_attribute(MObject &node, const std::string &attribute_name, LMatrix4d &value)
Extracts the named 4x4 matrix from the MObject.
bool get_maya_plug(MObject &node, const std::string &attribute_name, MPlug &plug)
Gets the named MPlug associated, if any.
bool get_enum_attribute(MObject &node, const std::string &attribute_name, std::string &value)
Extracts the enum attribute from the MObject as a string value.
bool get_vec3_attribute(MObject &node, const std::string &attribute_name, LVecBase3 &value)
Extracts the named three-component vector from the MObject.
bool remove_attribute(MObject &node, const std::string &attribute_name)
Removes the named attribute from the indicated Maya node.
bool set_string_attribute(MObject &node, const std::string &attribute_name, const std::string &value)
Sets the named string attribute on the MObject.
bool is_connected(MObject &node, const std::string &attribute_name)
Returns true if the named connection exists on the node and is connected to anything,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool describe_compound_attribute(MObject &node)
Extracts the children of this attribute from the MObject.
void get_tag_attribute_names(MObject &node, pvector< std::string > &tag_names)
artists should be able to set arbitrary tags.
bool get_vec2_attribute(MObject &node, const std::string &attribute_name, LVecBase2 &value)
Extracts the named two-component vector from the MObject.
void describe_maya_attribute(MObject &node, const std::string &attribute_name)
Writes some warning output about the indicated Maya attribute.
bool get_vec2d_attribute(MObject &node, const std::string &attribute_name, LVecBase2d &value)
Extracts the named two-component vector from the MObject.
bool get_bool_attribute(MObject &node, const std::string &attribute_name, bool &value)
Extracts the named boolean attribute from the MObject.
bool get_angle_attribute(MObject &node, const std::string &attribute_name, double &value)
Extracts the named angle in degrees from the MObject.
bool has_attribute(MObject &node, const std::string &attribute_name)
Returns true if the node has the indicated attribute, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.