Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/cb1e1f8af964644f2c68a0b30f1aa2c6 to your computer and use it in GitHub Desktop.
Save deathponta/cb1e1f8af964644f2c68a0b30f1aa2c6 to your computer and use it in GitHub Desktop.
/*
始めに選択した以外のノード名を、始めに選択したノード名にする
*/
try(destroyDialog rol_rename ) catch()
rollout rol_rename "始選以外名変" width:120 height:120(
button btn_rename "リネーム" tooltip:"始めに選択した以外のノード名を、始めに選択したノード名にする" width:100 height:100
on btn_rename pressed do(
for i=1 to (selection.count-1) do(
selection[i+1].name = selection[1].name
)
)
)
try(destroyDialog rol_rename) catch()
createDialog rol_rename style:#(#style_toolwindow, #style_sysmenu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment