PDA

View Full Version : UI_panel


arunspooja
05-16-2006, 12:12 PM
Good Evening



There is a script attached to it to build a panel for modeling tools.



In that i have created two tabs one for "nurbs" and the other for "polygons"



The tab content i have created separately. And i tried to attach it to the nurbs tab but it

shows errors, i have tried to rectify it but i cant.



If any one attach the content of nurbs tab and post the script, then in the same way i can

attach the content for other tabs too.



In this "mainpanel" script is the main window and "nurbs_tab" is the nurbs tab



Thankyou

Mikademius
05-18-2006, 10:34 AM
By looking at your code I get a bit confused.
Are you trying to create a layout looking like this?

http://www.final3.com/images/temp/cgTalk/thisUI.jpg

arunspooja
05-19-2006, 08:13 AM
Thanks for the reply

And its the same as you drawn in the picture layout.

Mikademius
05-19-2006, 10:18 AM
I'll take a look at it as soon as I get time :) At work now, but maybe I can sneak in a couple of minutes...

Mikademius
05-19-2006, 08:00 PM
if (`window -ex MA_modelingToolsWin`) deleteUI MA_modelingToolsWin;

window -wh 300 600 -menuBar true -title "MODELING_TOOLS" MA_modelingToolsWin;

//------menu bar-----//

menuBarLayout mainmenu;
menu -l "File" -aob 1 -to 1 -p "mainmenu" filemenu;
menuItem -l "New Scene" -c("NewScene");
menuItem -l "*" -c("NewSceneOptions") -ob 1;
setParent..;

//-----mainColumn-----//

columnLayout;

//------first Frame---//
frameLayout -bs "etchedOut" -w 290 -lv 0;
rowColumnLayout -nc 11 -cw 1 32 -cw 2 4 -cw 3 32 -cw 4 4 -cw 5 32 -cw 6 4 -cw 7 32 -cw 8 4 -cw 9 32 -cw 10 4 -cw 11 32;

iconTextButton -l off -h 10 -i "pickJointObj.xpm"-c ("mjoint") ;
separator -hr false -st "in";
iconTextButton -l off -h 10 -i "pickCurveObj.xpm"-c ("mcurve") ;
separator -hr false -st "in";
iconTextButton -l off -h 30 -i "pickGeometryObj.xpm"-c ("msurface") ;
separator -hr false -st "in";
iconTextButton -l off -h 30 -i "makeLiveIcon.xpm" -c("MakeLive");
separator -hr false -st "in";
iconTextButton -l off -h 30 -i "rvRender.xpm" -c ("RenderIntoNewWindow");
separator -hr false -st "in";
iconTextButton -l 0ff -h 30 -i "rvRenderGlobals.xpm" -c ("unifiedRenderGlobalsWindow");

//Go back to columnLayout to start new frame:

setParent..;
setParent..;

tabLayout MA_modelingToolsTab;

//----First Tab----//

frameLayout -w 281 -h 250 -lv 0 -bs "etchedOut" MA_NURBSLayout;
columnLayout ;
text -l "write something clever here";
button -w 70 -l "nurbsStuff";

//Go back to create second tab
setParent..;
setParent..;


frameLayout -w 281 -h 250 -lv 0 -bs "etchedOut" MA_PolyLayout;
columnLayout ;
text -l "write something clever here too";
button -w 50 -l "polyStuff";


showWindow MA_modelingToolsWin;

//Then to edit the labels for the tabLayouts:

tabLayout -e -tabLabel MA_NURBSLayout "NURBS" -tabLabel MA_PolyLayout "POLY" MA_modelingToolsTab;

arunspooja
05-22-2006, 11:50 AM
Thankyou

Its working fine now

Mikademius
05-22-2006, 12:09 PM
More importantly, did you understand how I was thinking when I set it up
?

CGTalk Moderation
05-22-2006, 12:09 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.