Hi there,
I'd like to retrieve the default value for a MFnNumericAttribute of type MFnNumericData::kChar but I can't get it to work. The problem seems to come from the MScriptUtil helper that doesn't return a valid char pointer. It's working fine for double, float and int types though. Am I missing something or is there any workaround? # ----- from maya import OpenMaya utils = OpenMaya.MScriptUtil() utils.createFromList( [0], 1 ) ptr = utils.asDoublePtr() print( ptr ) # prints: _f0283f0700000000_p_double ptr = utils.asCharPtr() print( ptr ) # prints nothing # ----- Cheers, Christopher. -- http://groups.google.com/group/python_inside_maya
