Hey Chad,  thanks for the quick response.. :-)

tried your idea..  but  got this error still.

TypeError: in method 'MFnArrayAttrsData_checkArrayExist', argument 3 of type
'MFnArrayAttrsData::Type &' //


the C++ api docs describe  it as follows:

bool MFnArrayAttrsData::checkArrayExist ( const
MString<http://download.autodesk.com/us/maya/2009help/API/class_m_string.html>
*name*, 
MFnArrayAttrsData::Type<http://download.autodesk.com/us/maya/2009help/API/class_m_fn_array_attrs_data.html#28896976b5a4e4fa18f4a5ce5f8b0596>&
*arrayType*, 
MStatus<http://download.autodesk.com/us/maya/2009help/API/class_m_status.html>*
*ReturnStatus* = NULL  )


any other ideas?

thx again.
-johnc
Luma pictures



On Wed, May 27, 2009 at 2:02 PM, Chad Vernon <[email protected]> wrote:

> probably something like
>
> import maya.OpenMaya as OpenMaya
> arrayExist = inputPPArray.checkArrayExist('magnitude',
> OpenMaya.MFnArrayAttrsData.kDoubleArray)
>
>
> On Wed, May 27, 2009 at 1:55 PM, John Cassella <[email protected]> wrote:
>
>> diving head first into  Api stuff,   how can I convert the following 4
>> lines from  C plugin  to python plugin?
>> tried what I thought would work, but it did not..
>>
>>
>> const MString magString("magnitude");
>> MFnArrayAttrsData::Type doubleType(MFnArrayAttrsData::kDoubleArray);
>> bool arrayExist;
>> arrayExist = inputPPArray.checkArrayExist(magString, doubleType, &status);
>>
>>
>> this is from the  dynExprField plugin  from the devkit
>>
>>
>> thanks :-)
>>
>> -johnc
>> luma pictures
>>
>>
>>
>>
>
>
> --
> www.chadvernon.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to