Awesome,

Thanks Frank !


activeBuffer = viewer*.activeInput()*

inputNode = viewerNode.input(activeBuffer)


is what I missed, I will know for next time !


Cheers,


Justin










2014-05-01 0:57 GMT+01:00 Frank Rueter|OHUfx <fr...@ohufx.com>:

>  nice, thanks!
>
> On 5/1/14, 11:40 AM, Howard Jones wrote:
>
> 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 <fr...@ohufx.com> 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 <j.grosde...@gmail.com> 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 <mrhowardjo...@yahoo.com>:
>
>> 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
>> 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
>
>
>
> _______________________________________________
> Nuke-python mailing listnuke-pyt...@support.thefoundry.co.uk, 
> http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> --
>   <mime-attachment.png> <http://www.ohufx.com> *vfx compositing
> <http://ohufx.com/index.php/vfx-compositing> | workflow customisation and
> consulting <http://ohufx.com/index.php/vfx-customising> *
>
>
> _______________________________________________
> Nuke-python mailing listnuke-pyt...@support.thefoundry.co.uk, 
> http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> --
>   <ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx compositing
> <http://ohufx.com/index.php/vfx-compositing> | workflow customisation and
> consulting <http://ohufx.com/index.php/vfx-customising> *
>
>  _______________________________________________
> 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 listnuke-pyt...@support.thefoundry.co.uk, 
> http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> --
>   [image: ohufxLogo 50x50] <http://www.ohufx.com> *vfx compositing
> <http://ohufx.com/index.php/vfx-compositing> | workflow customisation and
> consulting <http://ohufx.com/index.php/vfx-customising> *
>
> _______________________________________________
> 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