View Full Version : how to write a rollout like the max command panel?

10 October 2009, 02:04 AM
top rollout's Width can be adjusted
the sub rollout can Automatic arrangement
sorry my english very poor:blush:

10 October 2009, 11:24 AM
I have done this and can be seen in the Walter rig on my site. The code is not open how ever. It is a pain to do, you need to manage it all your self as there is no Max command that does it.

What you need to do is have a series of subRollouts all side by side. The rollouts that you want to display will be placed in the subRollouts depending on their length and the lengths of the subRollouts. I set up a case statement that would control the width of the main rollout, as it is resized I pop it's width to predefined sizes that any number of the sub rollouts. You then get the length of the first rollout you want to display and place it in the first subRollout, check the length of sub1 against roll1.height+roll2.height and decide if you are going to place roll2 in the first sub or the second if it is visible.

10 October 2009, 12:01 PM
That sounds like fun... :)


10 October 2009, 12:30 PM
thanks pen,:bounce:
i know

10 October 2009, 05:18 PM
Oh it was lots of fun. What ever happened to modeling and texturing I wonder? Do people still do that sort of thing;)

10 October 2009, 05:45 PM
Not in my little world, but if I look around the office I see people actually not scripting and I wonder what's wrong with them...

CGTalk Moderation
10 October 2009, 05:45 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.