Detect objects by part of name? [SOLVED]

Detect objects by part of name? [SOLVED]

Anonymous
Not applicable
204 Views
0 Replies
Message 1 of 1

Detect objects by part of name? [SOLVED]

Anonymous
Not applicable
I have many objects with a suffix such as this:

Fspot01_Fixed
Fspot02_Fixed
Fspot03_Fixed

I want to detect if objects exist in the scene by the "_Fixed" part of their name. I have tried to use getNodeByName, but it doesn't work at all. Any suggestions? Thanks again.

EDIT:

Okay this works for me:


if ($*_Fixed*).count > 0 then
messageBox ("There are " + (($*Fixed*).count as string) + \
" objects with the suffix \"_Fixed\" in this scene.")
0 Likes
205 Views
0 Replies
Replies (0)