How can I make the checkbox created on the rollout panel appear and work separately for each selected object?
rollout my "MyRollout"
checkbox mycb "My Checkbox"
createdialog my
If I create a panel and a checkbox in it and write a condition if it is enabled, then, for example, I will print text, it will be done, but this does not depend on the selected object.
How can I make the checkbox work separately for each object?
Can you provide a visual example of the script?
Replies
Pretty sure it's maxscript and Ghostil needs to dig #selectionSetChanged callback.
checkbox mcb "mycheckbox"
sfloorface = ""
button apply "apply"(
on apply pressed do (
result = sfloorface + and so on the rest
setuserpropbuffer $ result
)
)
on mcb changed st do (
if st == true (
sfloorface = "floorface\n\r"
)-- end st == true--
if st == false (
sfloorface = "floorface\n\r"
)--end st == fslse--
)--end event--
)createdialog myrollout 200 200