Andimation
05-04-2006, 07:57 PM
http://jonhandhisdog.com/forum/style_images/Jonh_and-201/spacer.gif
Hey
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.
L8ers
Andy
Hey
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.
L8ers
Andy
