Notifications
Clear all

[Closed] Quick Selecting

Is there a way in code to select all nodes, not just objects, but nodes, with a similar name?

This name would be derived from an edittext box.

so if i entered green_box

it would also select green_box01, green_box02 etc.

I understand you can do this by calling up the selectbyname() command, but i’m looking for something a little more direct.

Thanks.

4 Replies

something like:


 objSel = for o in objects where matchpattern o.name pattern:("*"+editBox.text+"*") collect o
 if (queryBox "Unhide Hidden Objects?") then objSel.isHidden = false
 	else messageBox "Hidden objects will be selected, but will remain hidden"
 select objSel
 

select $green_box*

Thanks Moosley. Exactly what i was looking for.

MerlinEl, thanks for bringing that up, I knew about that call, but i couldn’t figure out how to add the edittext.text inside $ *, and still get it work correctly

execute (“select $”+“my_text”+”*”)