Home Technical Talk

Autodesk 3ds Max Maxscript: Scrolling in a Rollout?

polycounter lvl 6
Offline / Send Message
MrQuetch polycounter lvl 6
Hello.

I'm creating a rollout that contains more buttons than can be seen within the actual size of the rollout. Currently, I have two buttons (up and down buttons) on the right side of the rollout that retain their position, while the buttons on the left move up and down depending on what buttons were pressed on the right. The scrolling works for the most part. I'm moving the position on the y-axis of all the buttons that I want to move. However, as I continue to scroll up and down, the buttons start overlapping each other - this is not what I want. How can I make it so the buttons stay equally spaced apart from each other? I've tried different things, and none of them have worked.

I have already tried the follow:

this_button.pos.y += scroll_amount
this_button.pos.y = this_button.pos.y + scroll_amount

The worst case scenario may be that I have to manually set the positions for the buttons each time they are scrolled. But, I would like to know if this can be fixed more easily.

Any help is greatly appreciated. Thanks.

Replies

Sign In or Register to comment.