Notifications
Clear all
[Closed] Quick Selecting
Mar 06, 2007 11:54 pm
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
Mar 06, 2007 11:54 pm
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
Mar 06, 2007 11:54 pm
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