PDA

View Full Version : Scripteditor / Commandwindow As A Panel Display Modes


HollyWoodland
01-16-2007, 12:56 PM
am trying to create a new scriptedPanelType that functions as the script editor (or even just puts the script editor into a panel) so that I can have a nice panel layout without lots of windows everywhere.

I have created a panel with a commandLine in but obviously this only allows one line of code to be entered - not a full script

Option 1:
is it possible to parent a window into a panel? (i'm guessing the answer is "NO") if it is then can I just create an empty panel and set it as the parent of the $gCommandWindow (script editor)?

Option 2:
does anyone know where the $gCommandWindow is defined? I have grepped the entire script folder and can only find showWindow commands not actual window definitions for the script editor. I assume it is initialised in the maya code rather than in a script?

Option 3:
any idea if it's possible to embed an editor window into a panel. eg use the panel to display notepad++ or emacs with my mel script inside?

thanks
Holly

CiaranM
02-15-2007, 04:44 AM
^bump.

I also would be very interested in how to display the script editor in panel. I find the screenspace to be very crowded with so many floating windows.

goleafsgo
02-15-2007, 01:53 PM
If you are in at least Maya 8.0 then there is already a script editor panel. Look under "Panels -> Saved Layouts" for the "Script editor/Persp" layout...or you can create your own layout. You can replace any panel with a script editor by going to "Panels -> Panel" and choosing "Script Editor".


Option 1:
is it possible to parent a window into a panel? (i'm guessing the answer is "NO")

Yes you can put a window into a panel using scriptedPanels.


if it is then can I just create an empty panel and set it as the parent of the $gCommandWindow (script editor)?
No, you can't do that with the command window. The command window was implemented differently because it needs to be able to come up even if there is a failure initializing Maya itself.

CiaranM
02-15-2007, 05:29 PM
If you are in at least Maya 8.0 then there is already a script editor panel. Look under "Panels -> Saved Layouts" for the "Script editor/Persp" layout...or you can create your own layout. You can replace any panel with a script editor by going to "Panels -> Panel" and choosing "Script Editor".

Sorry, only 7.0 here. No cure for us then?

Thanks anyways!

goleafsgo
02-15-2007, 06:17 PM
I guess it's technically possible since Blue Mel Studio does it (I think so at least...). I've never even tried to do something like this from a non-Maya-developer point of view so I'm not sure how difficult it is or how you would go about it.

I sort of remember what was done to get that old 3'rd party Internet Explorer plugin running in a Maya panel and it was not what I'd call straight forward.

cpan
02-16-2007, 07:56 AM
if my memory doesnt cheat me, i think theres a scriptedPanel (i think) command to turn custom UIs into panels. Have a look in teh mel commands docummentation for examples :)

CGTalk Moderation
02-16-2007, 07:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.