I am trying to delete primitives with delete SOP using expressions using string matching like:
$OBJNAME == “myObject”
But it doesn't work I get an error, can someone give me a hint?
Thanks!
Delete by expression using string matching
12765 7 1- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
- tamte
- Member
- 8554 posts
- Joined: July 2007
- Offline
what about using Blast SOP and put this in Group field:
@objname=myObject
or you can even use patterns
@objname=my*
(in case it's not primitive attribute you'd need to specify Group Type)
as this is much faster than Delete SOP with expression
for Delete SOP use strcmp() expression, like:
strcmp($OBJNAME,“myObject”)
@objname=myObject
or you can even use patterns
@objname=my*
(in case it's not primitive attribute you'd need to specify Group Type)
as this is much faster than Delete SOP with expression
for Delete SOP use strcmp() expression, like:
strcmp($OBJNAME,“myObject”)
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
Thanks for the feedback!
For a single string comparisson it works like a charm I was wondering how can I compare using wilds cards like:
My point name attribute list:
obj_1
obj_2
obj_3
my_obj_1
my_obj_2
my_obj_3
And I want to get all the points/primitives with my_obj_* in a delete expression for example.
I tried strcmp($NAME,“my_obj_*”), but off course it doesn´t work, is there another way?
I hope it makes sense.
Thanks!
For a single string comparisson it works like a charm I was wondering how can I compare using wilds cards like:
My point name attribute list:
obj_1
obj_2
obj_3
my_obj_1
my_obj_2
my_obj_3
And I want to get all the points/primitives with my_obj_* in a delete expression for example.
I tried strcmp($NAME,“my_obj_*”), but off course it doesn´t work, is there another way?
I hope it makes sense.
Thanks!
- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
- tamte
- Member
- 8554 posts
- Joined: July 2007
- Offline
- mzigaib
- Member
- 948 posts
- Joined: April 2008
- Offline
-
- Quick Links