You need to use an MScriptUtil object to pass references to simple types
(int, double, etc). There are quite a few threads in this group where they
are discussed so I won't belabor the details. Some other links that may
help:

http://download.autodesk.com/us/maya/2011help/API/class_m_script_util.html
http://www.rtrowbridge.com/blog/2009/02/maya-api-docs-demystified-for-python-users/

On Sat, Jul 24, 2010 at 1:20 AM, StiNKz <[email protected]> wrote:

> Hi all.
>
> I'm trying to call getFaceVertexColorIndex() on a
> maya.OpenMaya.MFnMesh class in python and keep getting this error:
> # Error: TypeError: in method 'MFnMesh_getFaceVertexColorIndex',
> argument 4 of type 'int &' #
> Python appears to be expecting an "int &" type. Ultimately I have no
> idea what type I should be passing into that parameter, I was under
> the impression python didn't have references.
>
> Any help would be appreciated, thanks.
>
> --
> http://groups.google.com/group/python_inside_maya

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

Reply via email to