View Full Version : Scripted Panels and opening files

05 May 2006, 07:57 PM

I have created a scripted panel for a lister, and it all works fine with exception of one thing. Say I have a window with the scripted panel in it. If I open a new scene that panel will get removed and removed for the panel list. I want it to behave like maya's panels work. So say I have the outliner open in a window, then open a new scene. The outliner panel stays parented to the window.

Now I can write a scriptJob that will re-define the panelType once the new scene opens. But what I want to do is basically -

As the current scene closes store the parent of the panel
When the new scene opens redefine the panel and reparent it

So the way I was thinking was to have 2 scriptJobs, one that will be triggered when the scene is flushed, and the one that runs on sceneopen.

I think that will work, I just wondered if there was a better way or if anyone knows how maya deals with panels on scene opening.



CGTalk Moderation
05 May 2006, 07:57 PM
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.