Maybe this might be helpfull: http://soup-dev.websitetoolbox.com/post/advanced-particle-instancer-5539968?trail=15
J On Tuesday, March 1, 2016 at 4:38:15 PM UTC+1, Szabolcs wrote: > > 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/ba878d22-9ddf-4bf3-88d7-aaed296dbd80%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
