I'm wondering if anyone might be able to help me with a little bit of useful functionality I'd like to build into a set of Max Script tools I'm working on at the moment. I have a fair bit of experience with Maya/MEL but I've recently switched to Max so forgive me if any of my terminology is wrong.
What I'd like to do is have my floating interface window resize automatically to fit its contents when a subrollout is expanded/collapsed by the user. Obviously the resizing part is easy but what I've struggled to find is whether there is a callback I can use to execute a bit of script when a subrollout is expanded/collapsed.
I have tried using something like this:
on mySubrollout.open changed val do
(
if (mySubrollout.open == true) then myUIwindow.height += 150
else myUIwindow.height -= 150
)
but "changed val" seems to only be set up to look for changes in script created variables as far as I can see.
If anyone knows of a specific callback for rollout expand/collapsed this that would be ideal or if you have any ideas for another way of doing it that would be useful too.
Thanks.
Replies
- Spencer