Since we are asking questions anyway, something I have been wondering for a while is: What is the use of using "(" at the start and ")" at the end of a maxscript file? Does it have a purpose? :icon_question: I would make the code like so: try(destroyDialog nameSearchBox)catch()objArray = selection as arrayobjList =…
haiddasalami is right. Also I would move the code above the rollout into the Open block. That way if you open the rollout from another place in your code you don't have to repeat that code. But also you don't need to declare the rollout global. Rollouts are all global once created. ( rollout nameSearchBox "Name and…
Looks like a scope issue. Try this: ( objArray = selection as array objList = #() txtNull = "" global nameSearchBox rollout nameSearchBox "Name and Search" ( edittext objectSearch listbox objectList function updateList x= ( objArray = selection as array objList = #() for i = 1 to objArray.count do ( if findString…
Hey guys. I'm a beginner when it comes to maxscript and scripting in general. I've been doing some small tool scripts as a learning exercise, but I'm still having trouble understanding the order in which things are initialized and called. For example, this is my current test script: ( objCollection = $* objArray =…