Hello, I am trying to build a renaming tool using MAXSCRIPT.
Any help would be wonderful.
Currently I am trying to select something from my scene that I had populate via the geometry in the scene with a multilistbox and replace the name with something from another multilistbox. But before I try to attach two separate chunks together, I’d figure I would test it with “Fred”.
TLDR: I want to replace this with that using a button between multilistboxes.
local theobjs = for g in geometry
local theobjs_Name_show = for g in theobjs collect g.name
theListBoxitems = theobjs_Name_show
multilistbox theSceneNamesBox “Scene Object List:” items: (theListBoxitems)
group “Editor” (
listbox theRenamingBox “Names to choose from:” items:#(“Screw”,“Nut”,“Bolt”)
across:4 height:3 width:160 align:#left
button theRenameButton “Rename” width:80 align:#center offset:[30,25]
on theRenameButton pressed do
–format (“Fred”) items.selection in theSceneNamesBox
if theSceneNamesBox.selection = 1 do
temparray = theSceneNamesBox.selection
theSceneNamesBox.items = (“Fred”)
theSceneNamesBox.selection = temparray