I have another question, in a script I used the command :
cmds.warning("string" ).
It's very useful and I'm now looking for something similar but with another
color.
Do someone know if there is another command which allow to display a
message in the command window ( in green if possible )
I tried to find something on the python documentation, but I couldn't find
anything
I have another thing in mind for a futur script, I would like to take a
pictures of a model inside maya, a simple print screen but I want print
only 250*300 pxl of my screen.
Do you think that it's possible in Python ?
Le mercredi 15 août 2012 15:45:56 UTC+2, Florian Croquet a écrit :
>
> Thank you Justin, it's a very handy trick !
>
>
>
>
> Le mardi 14 août 2012 20:24:18 UTC+2, Justin Israel a écrit :
>>
>> Here is a little tip. If you turn on History -> Echo All Commands in the
>> script editor, and perform some operations, you will see it spit out the
>> MEL it is executing. When you do that and open Export Selected, you will
>> see it runs a built in command: ExportSelection
>> This command is available to both the MEL and python side:
>>
>> MEL: ExportSelection;
>> PY: cmds.ExportSelection()
>>
>>
>>
>> On Tue, Aug 14, 2012 at 1:50 AM, Florian Croquet <[email protected]>wrote:
>>
>>> I have another little question,
>>>
>>> Is it possible to open this export window with python or mel ?
>>>
>>>
>>> <https://lh5.googleusercontent.com/-xCMg5cEzh_A/UCoRMRhdO6I/AAAAAAAADRM/7wclDxXfDHQ/s1600/screenexport.jpg>
>>>
>>> --
>>> view archives: http://groups.google.com/group/python_inside_maya
>>> change your subscription settings:
>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>
>>
>>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe