solagratia77
02-17-2007, 08:29 AM
Here I am with another Scripting question.
SYMPTOM>>
The following script works OK
if I don't use any wildcard.
But when I use * (on the 4th line)
it just ignores it.
BRIEF>>
I have a lens shader named 'Lens_Effects1'
on a Camera on Viewport-B
And I would like to delete it using
Lens_Effects*
(I just put temp logmessage for now)
set oCam = GetViewCamera(1)
set oKam = oCam.Shaders
for each oFound in oKam
If oFound.name = "Lens_Effects*" then
logmessage "Wildcard working"
else
logmessage "Try again"
end if
next
Please tell me what I am doing wrong
I would very much appreciate any help on this.
Thank you in advance !!
-J
SYMPTOM>>
The following script works OK
if I don't use any wildcard.
But when I use * (on the 4th line)
it just ignores it.
BRIEF>>
I have a lens shader named 'Lens_Effects1'
on a Camera on Viewport-B
And I would like to delete it using
Lens_Effects*
(I just put temp logmessage for now)
set oCam = GetViewCamera(1)
set oKam = oCam.Shaders
for each oFound in oKam
If oFound.name = "Lens_Effects*" then
logmessage "Wildcard working"
else
logmessage "Try again"
end if
next
Please tell me what I am doing wrong
I would very much appreciate any help on this.
Thank you in advance !!
-J
