Hi,

I'd like to query the datatype of an array used by a particle instancer 
node. There is a call in the API to check whether the specified attribute 
exists with the given datatype, but I have a hard time setting the actual 
type.
It requires a reference to OpenMaya.MFnArrayAttrsData.kIntArray and I 
suppose I have to use some kind of an MScriptUtil nightmare but I can't get 
it to work with createFromInt() or asIntPtr()

I call OpenMaya.MFnArrayAttrsData.checkArrayExist()

And the error message is:
# Error: TypeError: file 
S:\Maya_2015_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py 
line 4759: in method 'MFnArrayAttrsData_checkArrayExist', argument 3 of 
type 'MFnArrayAttrsData::Type &' # 

Cheers,
Szabolcs

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/6a9dfcfa-01a1-4ed7-8fd2-d32342e30291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to