BigRoyNL
02-20-2009, 10:30 AM
Hey Guys,
The script below works in Maya 2008, but not in 2009.
global proc RN_UItest ()
{
if (`window -q -ex testUI`) deleteUI testUI;
window -w 650 -h 600 -title "Script test" testUI;
paneLayout -paneSize 3 100 30 -configuration "top3" "facialPaneLayout";
modelPanel -cam "persp" -mbv 0 -l facialInterfacePanel;
setParent..;
modelPanel -cam "side" -mbv 0 -l facialCamPanel;
setParent..;
showWindow testUI;
}
RN_UItest;
If I run this script in Maya 2008 it gives me a 3 panel User Interface with at the top 2 cams. If I run the script in Maya 2009 it gives me this error:
// Error: line 8: Too many children in layout: modelEditorIconBar //
I guess the problem is because of the new 'icon toolbar' in the viewport in 2009. Toggling it off before running doesn't fix the problem though.
If I duplicate both the setParent..; commands then it DOES run the script, but only the left side camera in the UI works...
How do I fix this in Maya 2009? What should I turn of in the script or what should I change?..
Hope somebody can help me out! I'm really stuck here!
Thanks in advance!
Roy
The script below works in Maya 2008, but not in 2009.
global proc RN_UItest ()
{
if (`window -q -ex testUI`) deleteUI testUI;
window -w 650 -h 600 -title "Script test" testUI;
paneLayout -paneSize 3 100 30 -configuration "top3" "facialPaneLayout";
modelPanel -cam "persp" -mbv 0 -l facialInterfacePanel;
setParent..;
modelPanel -cam "side" -mbv 0 -l facialCamPanel;
setParent..;
showWindow testUI;
}
RN_UItest;
If I run this script in Maya 2008 it gives me a 3 panel User Interface with at the top 2 cams. If I run the script in Maya 2009 it gives me this error:
// Error: line 8: Too many children in layout: modelEditorIconBar //
I guess the problem is because of the new 'icon toolbar' in the viewport in 2009. Toggling it off before running doesn't fix the problem though.
If I duplicate both the setParent..; commands then it DOES run the script, but only the left side camera in the UI works...
How do I fix this in Maya 2009? What should I turn of in the script or what should I change?..
Hope somebody can help me out! I'm really stuck here!
Thanks in advance!
Roy
