[Closed] Saving scene state parameters automaticly
Hi there,
Just wondering if someone can help me with a script that will save a scene state but
automaticly select specific scene state ‘parts’ to save;
eg. if you ran the scrip it would save a scene state called ‘test’ then save light properties and materials only but the user wouldn’t have any dialoge pop up as it had done it all internaly…
I’m not too sure if this a big ask but I’d love some help on it if someone can spare the time.
thanks
Pete
Could you give more details on what info info you’d like saved and on the workflow reqiured?
By the way, Max 8 has this operability already built in…
when you choose to save a scene state, it comes up with a dialogue that asks which parts you want to save, well I am just trying to acces that with a script so that I could save a scene state with say materials only and miss having to fill this dialogue in…
It’s not that I am super lazy, I am just trying get my hands around accessing Scene states through scripting.
If I understand it right you are talking about the scene states manager in max 8.
If so, it seems like you would have full access to all that. Look for “sceneStateMgr” in the Maxscript reference, it’s everything you need.
Hope this helps!
thanks, I’ve checked out the help but there are no examples of how they should be used,
eg: the manual says <integer>GetCount()
but what should I put into the script?
I am rather naf at scripting but if I could be pointed in the right direction I usually can get by but theres no example, I tried sceneStateMgr GetCount() but that didn’t work…
You can access the methods of the sceneStateMgr interface by using the dot-notation syntax, which is a common way in MAXScript to access methods/properties:
sceneStateMgr.getCount()
- Martijn
Awesome thanks man, I’ve managed to get a bit of it going thanks to that I’ll see if I can come up with anything usefull…