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#47eaf93b417b90d4f0d81754e7ef983f

For MSelectionList the int is the index into the list, and the second
argument is where the result should be stored.

Can you show an example of the code you are running for context?
 On 14/10/2014 7:32 AM, <[email protected]> wrote:

> 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 clear on dag paths and looking online im getting a
> little confused. can someone explain to me in simple terms what this line
> does and maybe why it takes one argument?. because it seems to accept the
> "0,dag" when i run the script seperately.
>
> thanks in advance,
> 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 it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/862b07ff-7c99-4401-a7cc-197bb86899f7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA3WBvRKRKmyrvkfv%2BjvGsFW4m-11W6ZOz7557gHa0e0mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to