Hey Matt, I got scriptedPanels to work from python awhile back, but I don't
remember if for 2008 though. Attached is a scriptedPanel class and an
example custom panel. Give it a shot. ScriptedPanel callbacks are all fired
from MEL, and the necessary scriptJob built with MEL, but you can see how I
worked around that in these scripts.

With the scripts in your Maya python path, run:

import customScriptedPanel
customScriptedPanel.openMyCustomPanel()

you should get an empty panel.

Hope that helps!
-Andrew

On Tue, Dec 8, 2009 at 8:30 PM, Matt Estela <[email protected]> wrote:

> Got a regular maya gui written in python that I'd like to convert to a
> scriptedPanel. The mel examples I found on cgtalk seemed easy enough,
> but my python attempts refused to work. Made increasingly simple test
> cases until it got down to a single button, which still failed. we're
> locked on 2008 here, but the one example I found online in the 2010
> docs says you can't do this in python. I'm hoping its some kind of
> auto-doc mixup, but thought I'd check here...
>
> The page in question:
>
>
> http://download.autodesk.com/us/maya/2010help/CommandsPython/scriptedPanelType.html
>
> -matt
>
> --
> http://groups.google.com/group/python_inside_maya
>

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

Attachment: customScriptedPanel.py
Description: Binary data

Attachment: scriptedPanel.py
Description: Binary data

Reply via email to