Turns out I had been inside a Group node when I was testing the ReadGeo node 
with nuke.filename(). Because I had not set the proper scope for the Group I 
was in, I got nothing returned… Arrgghh.  (hand slaps forehead)


> On Sep 18, 2015, at 9:16 AM, Rich Bobo <richb...@mac.com> wrote:
> 
> Never mind! Total pilot error on this one… (8^\   It works just fine for 
> nodes that have a file knob. Not enough sleep this week…
> 
> Sorry for the interruption,
> Rich
> 
> 
>> On Sep 17, 2015, at 9:21 PM, Rich Bobo <richb...@mac.com 
>> <mailto:richb...@mac.com>> wrote:
>> 
>> Hi,
>> 
>> I have been trying to get the nuke.filename value from all source nodes 
>> (Reads and any other nodes that have a ‘file’ knob) with the correctly 
>> applied preferences.platformPathRemaps value. For Reads, it works 
>> automatically and I get exactly what I need! However, for other node classes 
>> - ReadGeo, for example - it does not work. Does nuke.filename only work for 
>> Read nodes? If so, what’s the best way to get the platformPathRemaps value 
>> substitution to work for other classes of source nodes…? I had been working 
>> out my own way of parsing the path remaps and applying them, but then a 
>> coworker pointed me to nuke.filename. I thought my problem was solved, but 
>> then I discovered it doesn’t seem to work for any other nodes except Reads… 
>> I’m looking to use the built-in mechanism that Nuke is using to do the OS 
>> path remaps without having to reinvent it!
>> 
>> Thanks for any help,
>> Rich
>> 
>> 
>> Rich Bobo
>> Senior VFX Compositor
>> Armstrong White
>> Email:  rich.b...@armstrong-white.com <mailto:rich.b...@armstrong-white.com>
>> http://armstrong-white.com/ <http://armstrong-white.com/>
>> 
>> Email:  richb...@mac.com <mailto:richb...@mac.com>
>> Mobile:  (248) 840-2665
>> Web:  http://richbobo.com/ <http://richbobo.com/>
>> 
>> "Your beliefs become your thoughts. Your thoughts become your words. Your 
>> words become your actions. Your actions become your habits. Your habits 
>> become your values. Your values become your destiny."
>> 
>> - Mahatma Ghandi
>> 
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk 
>> <mailto:Nuke-python@support.thefoundry.co.uk>, 
>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.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://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to