Ok that worked, thanks.  I haven't tried much with wildcards in python, but
I was hoping I could just toss them into strings without calling other
modules.
On Mar 16, 2011 1:33 PM, "[email protected]" <[email protected]>
wrote:
> By the way, wildcards don't mean anything but a character in python
> (you can use the glob module for wildcard style file matching though).
> If you need more specific matches look at the re module in python.
>
>
> On Wed, Mar 16, 2011 at 1:30 PM, [email protected]
> <[email protected]> wrote:
>> try
>>
>> if "tiffWrite" in i['name'].value():
>>
>> On Wed, Mar 16, 2011 at 1:10 PM, Brogan Ross <[email protected]>
wrote:
>>> So I think this should be pretty simple to answer.  I'm trying to put a
>>> wildcard in a string and it doesn't seem to work.  I have a bunch of
write
>>> nodes with the base name tiffWrite_  and then followed by a short
element
>>> description.  I'm trying to single out all the write nodes with
tiffWrite in
>>> the name but I don't know how to get a wildcard to work in a string with
>>> nuke.
>>> Here's an example:
>>> For i in nuke.allnodes('Write'):
>>>   if i['name'].value() == 'tiffWrite*':
>>>      Select
>>>
>>> Thanks.
>>>
>>> _______________________________________________
>>> Nuke-python mailing list
>>> [email protected]
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>
>>>
>>
> _______________________________________________
> Nuke-python mailing list
> [email protected]
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to