Subrollout in python?

Subrollout in python?

ivanchin.ivan
Contributor Contributor
631 Views
1 Reply
Message 1 of 2

Subrollout in python?

ivanchin.ivan
Contributor
Contributor

Hello, how can I implement the code below in python, and is it possible to inject subrollout elements with Qt? I would be grateful for a piece of code, Thanks!

rollout test "test" height:200 autoLayoutOnResize:true
(
 subrollout test1 "test1"
 subrollout test2 "test2"
)
rollout test1a "test1a"
(
 spinner test1as "test1as"
)
rollout test1b "test1b"
(
 spinner test1bs "test1bs"
)
createdialog test
AddSubRollout test.test1 test1a
AddSubRollout test.test1 test1b
test.test1.height += 100
test.test2.pos += [0,100]
rollout test2a "test2a"
(
 spinner test2as "test2as"
)
AddSubRollout test.test2 test2a
test.test2.height += 50

 

0 Likes
Accepted solutions (1)
632 Views
1 Reply
Reply (1)
Message 2 of 2

Swordslayer
Advisor
Advisor
Accepted solution

Native max controls aren't exposed to python, you'd either have to make your own wrapper calling a C++ library or go full C++. Or you can make the whole UI in maxscript and via python.import import your module and call the pyhton function from maxscript. Another way is to make your own collapsible widget and style it to look like the max rollouts.