|
If I drop the macroscript on gmax and customize the ui, it works, but it's not there on restart, despite saving menu and .cui changes. Any idea what my major malfunction might be?
macroScript SearchReplaceNames category:"_" buttontext:"Rename selected..." tooltip:"Search and replace text in selected names"
( rollout rename_rollout "Rename Selected" Width:175 Height:175 ( Group "" ( edittext search_name "old" edittext replacement "new" ) Group "" ( button ok_button "ok" ) on ok_button pressed do ( if search_name.text != "" then ( search_length = search_name.text.count for i in selection do ( find_index = findString i.name search_name.text if find_index>0 then i.name = replace i.name find_index search_length replacement.text ) ) DestroyDialog rename_rollout ) )
CreateDialog rename_rollout)
|