Issue 135 in pymel: getUVAtPoint arg type error

29 views
Skip to first unread message

codesite...@google.com

unread,
Dec 17, 2009, 1:26:10 PM12/17/09
to py...@googlegroups.com
Status: New
Owner: ----

New issue 135 by hapgilmore23: getUVAtPoint arg type error
http://code.google.com/p/pymel/issues/detail?id=135

What Version of Maya are you using? On what operating system? (Please be as
specific as possible and include service packs, 64bit vs 32bit, etc)
Maya 2009sp1(32bit) on WinXP64

What Version of PyMEL are you using?
0.9.2


What is the expected output? What do you see instead? If possible, provide
a few lines of code to reproduce the problem.

mesh = PyNode('pSphere1')
closest = mesh.getClosestPoint( [0,0,0] , OpenMaya.MSpace.kWorld )
uv = mesh.getUVAtPoint(closest[0],
OpenMaya.MSpace.kWorld,'map1',closest[1])'

Error:
# Error: in method 'MFnMesh_getUVAtPoint', argument 3 of type 'float2 &'
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "<string>", line 2, in getUVAtPoint
# File
"d:\depot\toystory3\main\build\tools\maya\common\python\pymel\core\factories.py",
line 2976, in wrappedApiFunc
# result = method( mfn, *do_args )
# File
"C:\engserv\rbuild\194\build\wrk\optim\runTime\Python\Lib\site-packages\maya\OpenMaya.py",
line 4411, in getUVAtPoint
# TypeError: in method 'MFnMesh_getUVAtPoint', argument 3 of type 'float2
&' #

Is there a maya.cmds or maya.OpenMaya equivalent to the pymel function in
question? ( For example, pymel.listRelatives --> maya.cmds.listRelatives )
If so, does it exhibit the same problem?


Please provide any additional information below.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Dec 18, 2009, 12:20:03 PM12/18/09
to py...@googlegroups.com
Updates:
Status: Accepted
Labels: Type-Defect Milestone-1.0.x Priority-High

Comment #1 on issue 135 by elrond79: getUVAtPoint arg type error
http://code.google.com/p/pymel/issues/detail?id=135

Looks like we're trying to cast to a float * (pointing to an array of size
2),
instead of a float2 &...

codesite...@google.com

unread,
Jan 4, 2010, 2:58:08 AM1/4/10
to py...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 135 by elrond79: getUVAtPoint arg type error
http://code.google.com/p/pymel/issues/detail?id=135

Fixed in 2329a52108386bf45e43df38fe11ca7e015556a6 on master branch

Reply all
Reply to author
Forward
0 new messages