Message 1 of 1
Detect objects by part of name? [SOLVED]

Not applicable
12-28-2009
11:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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.")