Creating Rollout Panel like in the cmd panel

Creating Rollout Panel like in the cmd panel

admin
Participant Participant
574件の閲覧回数
3件の返信
メッセージ1/4

Creating Rollout Panel like in the cmd panel

admin
Participant
Participant

Hey Pros,

i searched inside the Script Hellp and in the Internet but i do not find anything how to script a rollout with panels like the command pannel has.
I kust found some rollout floater stuff (which is helping too in organising things) BUT how is a rollout/UI sgement with panels done? it does not need to have UI Icons i just want to see some code example or link where i can get into this.

Reason: i am thinking about a tool in max i eant to do which needs to be organized in a similar kind of fashion like we have in the commad thingy.

Can this be done in Max Script or do i need to look somewhere else for it?
Where can i find a very basic example how the panels are done?


0 件のいいね
575件の閲覧回数
3件の返信
返信 (3)
メッセージ2/4

denisT.MaxDoctor
Advisor
Advisor

This is RolloutFloater. You can find many examples. There is some in the MaxScript Help.

0 件のいいね
メッセージ3/4

miauuuu
Collaborator
Collaborator

Maybe what you need is the dotNet "TabControl", so you can have tabs like Command, Modify, etc. which will show the UI you need.

https://miauu-maxscript.com/
0 件のいいね
メッセージ4/4

w.haak
Contributor
Contributor

You can use a rollout floater to be able to have collapsible sections:

 

Rollout TheRollout "1st rollout"
(
)

--- Create Floater---
try (closeRolloutFloater theNewFloater)catch()
theNewFloater = newRolloutFloater "Floater Name" 300 500
--- Add default Rollouts---
Addrollout TheRollout theNewFloater rolledUp:false

 

  with 

 

removeRollout TheRollout
Addrollout TheRollout theNewFloater rolledUp:false

 

 

you can turn sections on and off. I use this with a radiobutton in the first rollout, which then uses removeRollout  and AddRollout to close, open and re-order sections as needed.