Storing Scripted Materials Rollout RolledUp State?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  01 January 2007
Storing Scripted Materials Rollout RolledUp State?

I'm having difficulty in storing the rolledUp state of rollouts in a Scripted Custom Material. I'm trying to maintaint the rolledUp state between Max sessions, or even when clicking back and forth between multiple materials.

Storing a boolean in the parameter block that is used during the rollout definition seems not to work as the variable is inaccesible to the rollout at definition time.

I also can't seem to find an event handler that could be used to set the rolledUp state when swapping materials in the material editor..

Anyone have any idea?!

Thanks in advance!

Last edited by sl4ppy : 01 January 2007 at 08:59 PM.
  01 January 2007
could you not just store the info in a data file and get your script to read that file on startup ?
  01 January 2007
I thought about that briefely originallly, but storing scripted material data in an external data file seems a bit impractical. Not only would it add an additional file to track with asset managment, but having a discreet data file for every custom material in any given scene might be a bit cumbersome.. :(

Here's some sample code that *doesn't* work but conveys what I'm trying to do...

     plugin material testMaterial
     	name:"Test Material"
     	classID:#(0x10093868, 0xc9e1d78)
     	extends:Standard replaceUI:true version:1
     	parameters general rollout:generalRollout
     		rollState		type:#boolean		default:false
     	rollout generalRollout "General" rolledUp:rollstate
     		button test "test"
     	on generalRollout rolledUp theState do rollState = theState

This code is invalid because rollState is not accesible to the rollout defenition.

Last edited by sl4ppy : 01 January 2007 at 07:23 PM.
  01 January 2007
ah ok Im sorry I could not be more help
  01 January 2007
No one has a possible solution for this?? :(
  01 January 2007
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:02 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.