There's also a bunch of new convenience functions for building gui elements
in pymel, however the docs aren't as good as they could be (and that's me to
blame)...
Check the "Layouts" section in the docs for
pymel.core.windows<http://pymel.googlecode.com/svn/docs/pymel.core.windows-module.html>,
and also these functions below:

labeledControl(label, uiFunc, kwargs, align='left', parent=None, ratios=None
)

promptBox<http://pymel.googlecode.com/svn/docs/pymel.core.windows-module.html#promptBox>
(title, message, okText, cancelText, **kwargs)
Prompt for a value.
promptBoxGenerator(*args, **kwargs)
Keep prompting for values until cancelled

confirmBox<http://pymel.googlecode.com/svn/docs/pymel.core.windows-module.html#confirmBox>
(title, message, yes='Yes', no='No', *moreButtons, **kwargs)
Prompt for confirmation.

informBox(title, message, ok='Ok')
Information box

promptForFolder()
Prompt the user for a folder path
*
promptFromList(items, title='Selector', prompt='Select from list:', ok='
Select', cancel='Cancel', default=None, allowMultiSelection=False, width=
None, height=None, ams=False)
Prompt the user to select items from a list of objects

textWindow(title, text, size=None)

showsHourglass(func)
Decorator - shows the hourglass cursor until the function returns

*

- Ofer
www.mrbroken.com


On Mon, Jun 15, 2009 at 10:57 PM, John Creson <[email protected]> wrote:

> Remember that good ole' MEL based maya.cmds GUI commands work for building
> GUI for Maya through Python.
>
>
>
> On Mon, Jun 15, 2009 at 1:05 PM, Christopher Janney <[email protected]>wrote:
>
>> Thank you for the PyQt tip.  I'll look into that.
>>
>> -ctj
>>
>>
>> On Sun, Jun 14, 2009 at 9:38 AM, Paul Molodowitch <[email protected]>wrote:
>>
>>>
>>> > 1.  Where can I find good info on writing GUI's in python for maya?
>>>
>>> I don't really know of any, I'm afraid. Basically, though, if you're
>>> just using the built-in stuff, it's pretty much the same process as
>>> with mel, since maya's python.cmds are just a fairly straight wrap of
>>> mel.  There is one common problem with callbacks, though, which you
>>> can see discussed here:
>>>
>>>
>>> http://groups.google.com/group/python_inside_maya/browse_thread/thread/04fe55cd54ebb822/7fffe668f7b814e1#7fffe668f7b814e1
>>>
>>> Of course, you also have the option of using additional GUI tools,
>>> such as PyQt... but I don't know too much about that myself.
>>>
>>> > 2.  If I use pymel, I'm assuming I have to distribute it to all the
>>> artist
>>> > stations, correct?
>>>
>>> Yup
>>>
>>> > 3.  Any decent docs on writing plugins with python?  The docs
>>> distributed
>>> > with maya
>>> > are probably better suited for someone who has been writing c++ plugins
>>> and
>>> > is
>>>
>>> Unfortunately, no.  There ARE some python plugin examples, however.
>>> Also, since the python plugin examples also have a c++ version, you
>>> can compare the two to see how the python and c++ versions differ,
>>> which might then help to make sense of examples where there's only a
>>> c++ version...
>>>
>>>
>>>
>> >>
>>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to