Re: [Maya-Python] Python doubt

2018-03-22 Thread Ravi Jagannadhan
What did you try and what was the issue?

"There are no dumb questions" - Carl Sagan.

> On Mar 21, 2018, at 20:13, Cssara  wrote:
> 
> What's the command for selecting hierarchy in Maya..in Mel select 
> -hireachy...in same way how to write the comma d in python.. I did.  And got 
> confused.. please help me
> 
> -- 
> 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 this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/ae33f875-7b17-4c38-8229-20bca72e5d83%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/D3D76163-D18C-4BE1-91CE-16EFD5D9B245%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python doubt

2018-03-22 Thread Marcus Ottosson
A small typo in that example, hireachy should be hierarchy.

import maya.cmds

maya.cmds.select("sphere1", hierarchy=True)

Also here’s the page with examples for all Maya commands.

   -
   http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/CommandsPython/

​

On 22 March 2018 at 04:58, Justin Israel  wrote:

>
>
> On Thu, Mar 22, 2018, 4:13 PM Cssara  wrote:
>
>> What's the command for selecting hierarchy in Maya..in Mel select
>> -hireachy...in same way how to write the comma d in python.. I did.  And
>> got confused.. please help me
>>
>
> Hi. Did you make sure to check the docs for the select command? There is
> an equivalent python version of the docs for every Mel command
>
> http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-
> Docs/CommandsPython/select.html
>
> This shows usage examples at the bottom, which in this case would show you
> how to pass boolean options.
>
> So it would look something like
>
> import maya.cmds
>
> maya.cmds.select("sphere1", hireachy=True)
>
>
>> --
>> 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 this discussion on the web visit https://groups.google.com/d/
>> msgid/python_inside_maya/ae33f875-7b17-4c38-8229-
>> 20bca72e5d83%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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CAPGFgA1ojnTxXiMYHJ2_rYdQt7_
> kzsLn3joPZYFHOQKcWWoJiQ%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBkFuqbL6CeKke%2Be1hMvNF1_tQR7g7zMAApzGK93kXqJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Python doubt

2018-03-21 Thread Justin Israel
On Thu, Mar 22, 2018, 4:13 PM Cssara  wrote:

> What's the command for selecting hierarchy in Maya..in Mel select
> -hireachy...in same way how to write the comma d in python.. I did.  And
> got confused.. please help me
>

Hi. Did you make sure to check the docs for the select command? There is an
equivalent python version of the docs for every Mel command

http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/CommandsPython/select.html

This shows usage examples at the bottom, which in this case would show you
how to pass boolean options.

So it would look something like

import maya.cmds

maya.cmds.select("sphere1", hireachy=True)


> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/ae33f875-7b17-4c38-8229-20bca72e5d83%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1ojnTxXiMYHJ2_rYdQt7_kzsLn3joPZYFHOQKcWWoJiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Python doubt

2018-03-21 Thread Cssara
What's the command for selecting hierarchy in Maya..in Mel select 
-hireachy...in same way how to write the comma d in python.. I did.  And got 
confused.. please help me

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ae33f875-7b17-4c38-8229-20bca72e5d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.