Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there. I'm trying to get to grips with the setParent command but I can't get it to work! Heres my example code that I'm testing this with:
string $window = `window -t "Shape Spawner" -wh 560 500`;
rowLayout -numberOfColumns 2;
button -label "Delete All" -command "select -cl; MTselAll; doDelete";
setParent..;
setParent..;
gridLayout -numberOfColumns 8 -cellWidthHeight 70 50;
symbolButton -image "polySphere.xpm" -command "polySphere;";
symbolButton -image "polyCube.xpm" -command "polyCube;";
symbolButton -image "polyCylinder.xpm" -command "polyCylinder;";
symbolButton -image "polyCone.xpm" -command "polyCone;";
symbolButton -image "polyPlane.xpm" -command "polyPlane;";
symbolButton -image "polyTorus.xpm" -command "polyTorus;";
symbolButton -image "polyPyramid.xpm" -command "polyPyramid;";
symbolButton -image "polyPipe.xpm" -command "polyPipe;";
setParent..;
setParent..;
showWindow $windowAnd heres whats happening:
I need the "delete all" button to be ontop but I cant get this working. Do I have to create a string which defines what the 'top' is and implement that into my setParent? Thanks.
Solved! Go to Solution.