ah, that explains alot ha. thanks!. Do you think its better to use the 2.0 api?
--
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 python_in
You seem to be importing the python version 2.0 api, but are using methods as
if they're from version 1.0
for 2.0, it would be
dag = sel.getDagPath(0)
for version 1.0, you would write it like you have it, but you need to be
importing maya.OpenMaya not maya.api.OpenMaya
hope that helps.
--
not sure what that means. this?
import maya.cmds as cmds
import sys, math
import maya.api.OpenMaya as om
Sam
--
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
Which api are you importing?
--
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 python_inside_maya+unsubscr...@googlegroups.com.
To view thi
thanks Justin,
here is an example of the code i have:
def returnCollisionPoints(point=(point), dir=(-newX,-newY, -newZ)):
sel = om.MSelectionList()
dag = om.MDagPath()
sel.add("pSphereShape1")
sel.getDagPath(0,dag)
mesh = om.MFnMesh(dag)
Which class are you dealing with when you call getDagPath?
The docs explain the usage:
http://download.autodesk.com/us/maya/2010help/API/class_m_selection_list.html#e2c80bef6a4c0c23fdba1bba25bc31c5
http://download.autodesk.com/us/maya/2011help/API/class_m_it_selection_list.html#47eaf93b417b90d4f0
hello everyoneee
i have a script which works fine when i run it in the script editor, but when i
add it to part of my larger script and run it, it has this error:
formLayout.py line 215: getDagPath() takes exactly one argument (2 given)
this is line 215: sel.getDagPath(0,dag)
Im still not very