Files
2025-07-31 16:05:55 +08:00

49 lines
615 B
Plaintext

global bywn=#()
global cywn=1
global btnname="ÕâÊÇÒ»¸ö°´Å¥mac..."
callbacks.removeScripts #selectionSetChanged id:#Rollout
fn xianshi=
(
try(
for i=1 to selection.count do bywn[i]=selection[i].name
cywn=cywn-1
)catch cywn=cywn+1
)
fn hello = print "hello"
rollout test "test"
(
button Anims btnname
on Anims pressed do
(
print cywn
)
on test open do
(
callbacks.addScript #selectionSetChanged "hello() xianshi()" id:#Rollout
)
on test close do
(
callbacks.removeScripts #selectionSetChanged id:#Rollout
)
)
createdialog test
--registerRedrawViewsCallback xianshi