Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/maya/maya_funcs.cxx File Reference

#include "maya_funcs.h"
#include "pre_maya_include.h"
#include <maya/MObject.h>
#include <maya/MAngle.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MStatus.h>
#include <maya/MFnStringData.h>
#include <maya/MFnNumericData.h>
#include <maya/MPlugArray.h>
#include <maya/MPlug.h>
#include <maya/MFnAttribute.h>
#include <maya/MFnTypedAttribute.h>
#include <maya/MFnEnumAttribute.h>
#include <maya/MFnMatrixData.h>
#include <maya/MMatrix.h>
#include "post_maya_include.h"

Go to the source code of this file.

Functions

bool get_maya_plug (MObject &node, const string &attribute_name, MPlug &plug)
 Gets the named MPlug associated, if any.

bool has_attribute (MObject &node, const string &attribute_name)
 Returns true if the node has the indicated attribute, false otherwise.

bool get_bool_attribute (MObject &node, const string &attribute_name, bool &value)
 Extracts the named boolean attribute from the MObject.

bool get_angle_attribute (MObject &node, const string &attribute_name, double &value)
 Extracts the named angle in degrees from the MObject.

bool get_vec2f_attribute (MObject &node, const string &attribute_name, LVecBase2f &value)
 Extracts the named two-component vector from the MObject.

bool get_vec3f_attribute (MObject &node, const string &attribute_name, LVecBase3f &value)
 Extracts the named three-component vector from the MObject.

bool get_vec2d_attribute (MObject &node, const string &attribute_name, LVecBase2d &value)
 Extracts the named two-component vector from the MObject.

bool get_vec3d_attribute (MObject &node, const string &attribute_name, LVecBase3d &value)
 Extracts the named three-component vector from the MObject.

bool get_mat4d_attribute (MObject &node, const string &attribute_name, LMatrix4d &value)
 Extracts the named 4x4 matrix from the MObject.

bool get_enum_attribute (MObject &node, const string &attribute_name, string &value)
 Extracts the enum attribute from the MObject as a string value.

bool get_string_attribute (MObject &node, const string &attribute_name, string &value)
 Extracts the named string attribute from the MObject.

bool set_string_attribute (MObject &node, const string &attribute_name, const string &value)
 Sets the named string attribute on the MObject.

void describe_maya_attribute (MObject &node, const string &attribute_name)
 Writes some error output about the indicated Maya attribute.

string string_mfndata_type (MFnData::Type type)
void list_maya_attributes (MObject &node)
 Writes some info output showing all the attributes on the given dependency node.


Detailed Description

Definition in file maya_funcs.cxx.


Function Documentation

void describe_maya_attribute MObject &  node,
const string &  attribute_name
 

Writes some error output about the indicated Maya attribute.

Definition at line 495 of file maya_funcs.cxx.

Referenced by get_angle_attribute(), get_enum_attribute(), and get_vec2d_attribute().

bool get_angle_attribute MObject &  node,
const string &  attribute_name,
double &  value
 

Extracts the named angle in degrees from the MObject.

Definition at line 142 of file maya_funcs.cxx.

References describe_maya_attribute(), and get_maya_attribute().

bool get_bool_attribute MObject &  node,
const string &  attribute_name,
bool &  value
 

Extracts the named boolean attribute from the MObject.

Definition at line 114 of file maya_funcs.cxx.

bool get_enum_attribute MObject &  node,
const string &  attribute_name,
string &  value
 

Extracts the enum attribute from the MObject as a string value.

Definition at line 363 of file maya_funcs.cxx.

References describe_maya_attribute(), and get_maya_attribute().

bool get_mat4d_attribute MObject &  node,
const string &  attribute_name,
LMatrix4d &  value
 

Extracts the named 4x4 matrix from the MObject.

Definition at line 328 of file maya_funcs.cxx.

bool get_maya_plug MObject &  node,
const string &  attribute_name,
MPlug &  plug
 

Gets the named MPlug associated, if any.

Definition at line 48 of file maya_funcs.cxx.

bool get_string_attribute MObject &  node,
const string &  attribute_name,
string &  value
 

Extracts the named string attribute from the MObject.

Definition at line 410 of file maya_funcs.cxx.

bool get_vec2d_attribute MObject &  node,
const string &  attribute_name,
LVecBase2d &  value
 

Extracts the named two-component vector from the MObject.

Definition at line 248 of file maya_funcs.cxx.

References describe_maya_attribute(), and get_maya_attribute().

bool get_vec2f_attribute MObject &  node,
const string &  attribute_name,
LVecBase2f &  value
 

Extracts the named two-component vector from the MObject.

Definition at line 166 of file maya_funcs.cxx.

bool get_vec3d_attribute MObject &  node,
const string &  attribute_name,
LVecBase3d &  value
 

Extracts the named three-component vector from the MObject.

Definition at line 289 of file maya_funcs.cxx.

References get_maya_attribute().

bool get_vec3f_attribute MObject &  node,
const string &  attribute_name,
LVecBase3f &  value
 

Extracts the named three-component vector from the MObject.

Definition at line 207 of file maya_funcs.cxx.

bool has_attribute MObject &  node,
const string &  attribute_name
 

Returns true if the node has the indicated attribute, false otherwise.

Definition at line 87 of file maya_funcs.cxx.

void list_maya_attributes MObject &  node  ) 
 

Writes some info output showing all the attributes on the given dependency node.

Primarily useful during development, to figure out where the heck Maya hides some of the connected properties.

Definition at line 602 of file maya_funcs.cxx.

bool set_string_attribute MObject &  node,
const string &  attribute_name,
const string &  value
 

Sets the named string attribute on the MObject.

Definition at line 445 of file maya_funcs.cxx.

Referenced by MayaShaderColorDef::write().

string string_mfndata_type MFnData::Type  type  ) 
 

Definition at line 518 of file maya_funcs.cxx.


Generated on Fri May 2 03:22:36 2003 for Panda-Tool by doxygen1.3