aha - i never played with that before. I wondered why that icon didn't add 
another text field.

Building a 'split' read, I see you get something like this as text in the file:

file 
"\vdefault\v/another/path/to/images-R.####.exr\vL\v/path/to/images-L.####.exr"

I have my views set to L and R. This works - you could build it up like so:

views = nuke.views()
read = nuke.nodes.Read()
file = "\vdefault\v%s\v%s\v%s" % (rightSeq, views[0], leftSeq)
read['file'].fromScript(file)

cheers -
jrab 

On Apr 16, 2011, at 1:43 PM, rd-nuke-quintaindustries.com wrote:

> That was the reason I believed that you can set two filenames on a file knob.
> 
> Via the graphical user interface you can set two different value.
> 
> First split the file knob.
> Open the viewer and choose one of the view (typically left or right)
> Enter a file name in the text field
> Choose the other view
> Enter another file name in the text field
> 
> Now when you change the current view in the viewer and you will see the 
> filename changing in the same time.
> 
> Too bad you can' t do it with python.
> -- 
> Alexandre Parent
> 
> John RA Benson a écrit :
>> That's funny - why would it have a (non-working!) split icon next to it then 
>> if it didn't split? I think you'll need 2 File_Knobs if you are trying to do 
>> 2 separate paths all in one node.
>> 
>> jrab
>> 
>> 
>> On Apr 15, 2011, at 7:21 PM, Nathan Rusch wrote:
>> 
>>  
>>> File knobs cannot be split (last time I checked anyway... I could have 
>>> missed something huge). Typically though, you would use a %V or %v token to 
>>> tell Nuke to substitute the current view name or first letter into the file 
>>> knob's path.
>>> 
>>> -Nathan
>>> 
>>> -----Original Message----- From: rd-nuke-quintaindustries.com
>>> Sent: Friday, April 15, 2011 10:11 AM
>>> To: Nuke Python discussion
>>> Subject: [Nuke-python] splitView method on File_Knob
>>> 
>>> Hi,
>>> 
>>> Do you know a way to split a File_Knob in python for multiview
>>> composition ?
>>> The File_Knob has no splitView and unsplitView method and I have to set
>>> two different  image sequences in the file knob.
>>> 
>>> Anyone manage to do it in python ?
>>> -- 
>>> Alx. Parent
>>> _______________________________________________
>>> Nuke-python mailing list
>>> Nuke-python@support.thefoundry.co.uk
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
>>> _______________________________________________
>>> Nuke-python mailing list
>>> Nuke-python@support.thefoundry.co.uk
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>    
>> 
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>> 
>>  
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to