Thanks Frank!

I'll roll it into the IP tool and upload to nukepedia then!

Howard

> On 30 Apr 2014, at 11:59 pm, Frank Rueter|OHUfx <[email protected]> wrote:
> 
> had a quick play to combine it all:
> 
> viewer
>       = nuke.activeViewer()
> viewerNode
>       = viewer.node()
> activeBuffer
>       = viewer.activeInput()
> inputNode
>       = viewerNode.input(activeBuffer)
> 
> 
>     
> topNode =
>       nuke.toNode(nuke.tcl('full_name [topnode
>       {0}]'.format(inputNode.name())))
> 
> 
>     
> 
> 
>       
>> On 5/1/14, 10:53 AM, Frank Rueter|OHUfx wrote:
>> viewer
>> 
>>         = nuke.activeViewer()
>> viewer.activeInput()
>> 
>>         
>> 
>>         
>>> On 5/1/14, 12:58 AM, Howard Jones wrote:
>>> Thanks. 
>>> 
>>> How would you know what viewer pipe is active though?
>>> 
>>> Howard
>>> 
>>> On 30 Apr 2014, at 01:51 pm, Justin Fpc <[email protected]> wrote:
>>> 
>>>> Hi Howard,
>>>> 
>>>> Apparently there is a way using tcl :
>>>> 
>>>> n =
>>>>                 nuke.selectedNode() 
>>>> topnode_name =
>>>>                 nuke.tcl("full_name [topnode %s]" % n.name())
>>>> topnode =
>>>>                 nuke.toNode(topnode_name)
>>>> 
>>>> 
>>>>               
>>>> 
>>>> 
>>>>               
>>>> (from 
>>>> http://forums.thefoundry.co.uk/phpBB2/viewtopic.php?t=6783&sid=a68b7faf01b1c3353e4555921af8bb95)
>>>> 
>>>> 
>>>>               
>>>> Or maybe by using
>>>>                 the dependencies method from the Node class ?
>>>> 
>>>> 
>>>>               
>>>>  
>>>> 
>>>>               
>>>> Cheers,
>>>> Justin
>>>> 
>>>>               
>>>> 
>>>> 
>>>>               
>>>> 
>>>> 
>>>>               
>>>>  
>>>> 
>>>>               
>>>> 
>>>> 
>>>>               
>>>> 
>>>> 
>>>>               
>>>> 
>>>> 
>>>> 
>>>> 2014-04-30 13:37 GMT+01:00 Howard Jones <[email protected]>:
>>>>> Hi
>>>>> 
>>>>> Is there a way to get a viewer's input pipe's top node?
>>>>> Basically I'd like to add a read's file burnt in on the viewer.
>>>>> 
>>>>> Tried but no success so far
>>>>> 
>>>>> Howard
>>>>> _______________________________________________
>>>>> Nuke-python mailing list
>>>>> [email protected], http://forums.thefoundry.co.uk/
>>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>> _______________________________________________
>>>> Nuke-python mailing list
>>>> [email protected], http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>> 
>>> 
>>> _______________________________________________
>>> Nuke-python mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>> 
>> -- 
>> <mime-attachment.png>        vfx compositing | workflow customisation and 
>> consulting
>> 
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> -- 
> <ohufxLogo_50x50.png> vfx compositing | workflow customisation and consulting
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to