PDA

View Full Version : Saving and restoring custom shelfTabLayout


Dust
02-14-2009, 09:36 PM
Hey everyone,

I'm using the shelfTabLayout to create a toolbox of scripts for users, but I'm running into a few issues that I haven't been able to resolve. The toolbox will contained a group of predefined scripts but the user will be able to drag/drop their own scripts into it as well. The shelfTabLayout makes it easy to do that, but I'm stuck with the following:


1) How can the toolbox be saved out and restored with the user's custom scripts.
2) How can I update the toolbox at a later time but without wiping out the users custom scripts.
3) Is there a way to put headings in the shelfLayout between each row of icons?

Thx!

- Zhi

claydough
02-18-2009, 04:14 PM
number 1 and 2The end user needs to be able to save before restarting ( perhaps a popUpMenu -button 1 2 or 3 with a "save" menuItem )


your save command needs to query each shelfButton for -image -annotation -label etc...

these queried strings need to be fprinted out to a mel file or assigned to optionVar for yer layout to rebuild with. ( internalVar or optionVar )


not very fun?
no need to totally re-invent the wheel, take a look at bryan ewert's myShelf.mel in here (http://web.archive.org/web/20050305113426/http://www.ewertb.com/download/H2O_MEL_scripts.zip)


number 3what r headings?

CGTalk Moderation
02-18-2009, 04:15 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.