Notifications
Clear all
[Closed] Interesting challenge for MaxScripter
Page 2 / 2
Prev
Jul 24, 2023 3:29 pm
The code you’ve shown above cannot remain as is. There shouldn’t be any executable content in the MCR file. This is the nature of macroscript files.
1 Reply
macroScript TEST_MacroDialog
Category:"TESTS"
buttonText:"MacroDialog"
toolTip:"MacroDialog"
(
rollout mcrrol "Macro Dialog" width:200
(
label lb "This is a test dialog" align:#center
local visibleflag = false
on mcrrol close do
(
mcrrol.visibleflag = false
updatetoolbarbuttons()
)
on mcrrol open do
(
mcrrol.visibleflag = true
)
)
on isChecked do mcrrol.visibleflag
on execute do if mcrrol.visibleflag then DestroyDialog mcrrol else CreateDialog mcrrol
)
Jul 24, 2023 3:29 pm
the code in mcr won’t run while initialize ,so we should put them out
Page 2 / 2
Prev