PDA

View Full Version : how can I change Active Shelf Tab ? using script?


butCherHeLL
10-16-2005, 01:26 AM
how can I change Active Shelf Tab ? using script?

butCherHeLL
10-16-2005, 09:46 PM
well its shelfTabLayout -edit -selectTabIndex 3 ShelfLayout; where 3 is the number in the child array!

heres a case senscitive convinience if you want to change based on name

proc int jooShelfByName(string $name){
$names=`layout -q -ca ShelfLayout`;
$size=size($names);
$i=0;
while($i<$size){
if ($names[$i]==$name){
shelfTabLayout -edit -selectTabIndex ($i+1) ShelfLayout;
return 1;
}
$i++;
}
return 0;

teacup
12-16-2005, 03:53 PM
Or you can use:

shelfTabLayout -edit -selectTab *shelfName* ShelfLayout;

this changes the active shelf directly to *shelfName*.

CGTalk Moderation
12-16-2005, 03:53 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.