Thank you very much for help!

Forgot about VIEWER_INPUT, great work around!
Cheers,
Lev

On Thu, May 19, 2016 at 5:13 PM, Jake Richards <tru...@blueskystudios.com>
wrote:

> You could try using a viewer input process:
>
> set cut_paste_input [stack 0]
> version 8.0 v6
> push $cut_paste_input
> Radial {
>  area {{"\[python
> nuke.activeViewer().node().input(nuke.activeViewer().activeInput()).format().width()-20]"}
> {"\[python
> nuke.activeViewer().node().input(nuke.activeViewer().activeInput()).format().height()-20]"}
> {"\[python
> nuke.activeViewer().node().input(nuke.activeViewer().activeInput()).format().width()\\n]"}
> {"\[python
> nuke.activeViewer().node().input(nuke.activeViewer().activeInput()).format().height()\\n]"}}
>  softness 0
>  color {0 1 0 0}
>  color_panelDropped true
>  name VIEWER_INPUT
>  selected true
>  xpos -845
>  ypos 128
>  disable {{!NoOp1.test}}
> }
> NoOp {
>  name NoOp1
>  selected true
>  xpos -845
>  ypos 175
>  addUserKnob {20 User}
>  addUserKnob {6 test +STARTLINE}
>  test {{curve K x101 1 x104 0 x108 1 x113 0}}
> }
>
>
> It doesn't seem to work very well if you have to viewer tabs open though...
>
>
> ------------------------------
>
> *From: *"Lev Kolobov" <l...@vfxy.com>
> *To: *"Nuke Python discussion" <Nuke-python@support.thefoundry.co.uk>
> *Sent: *Thursday, May 19, 2016 11:23:13 AM
> *Subject: *[Nuke-python] Adding flag to Viewer
>
>
> Hey,
>
> I have a NoOp node with Boolean Knob which is animated.
>
> I would like to add a visual "flag" on top of the Viewer1, somewhere in
> the corner. It can be just a green circle nothing fancy, the main thing it
> should not be scaled with image scale but stay same size in the corner. It
> will be on (visable only when NoOp flag is 1). As a simple alternative, I
> was thinking just to add a knob to Viewer1 and have it "presenting" info
> for NoOp but couldn't make it work.
>
> The goal of the tool would be to "flag" user about certain frames (without
> having NoOp open all the time). As option, maybe the keys can be stored in
> .txt file somewhere in the disk and not in NoOp hanging in the script...
>
> Any ideas how it can be done with python? Or any usefull info from web
> about adding UI on top of viewer?
>
> Thank you,
> Lev
>
> Example for NoOp Flag:
>
> NoOp {
>  name FlagSpecialFrames
>  selected true
>  xpos -640
>  ypos 191
>  addUserKnob {20 User}
>  addUserKnob {6 flag -STARTLINE}
>  flag {{curve 0 x12 0 x13 1 0 x113 0 x114 1 0 1 0 1 0 x168 0 x169 1 0}}
> }
>
>
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk,
> https://urldefense.proofpoint.com/v2/url?u=http-3A__forums.thefoundry.co.uk_&d=CwICAg&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=0p1Wz5yPFIs_tntiqDwBmANyyg62fYmRElFFh7dAHx0&s=eKLzwRwrh8DSJ9_2uEDZBx5Lemu6jDbw5593EDijp70&e=
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__support.thefoundry.co.uk_cgi-2Dbin_mailman_listinfo_nuke-2Dpython&d=CwICAg&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=0p1Wz5yPFIs_tntiqDwBmANyyg62fYmRElFFh7dAHx0&s=elkVMjcDyxkKk39sF8XfDWn0ZVR3l-QiqXbsvispiMM&e=
>
>
>
> _______________________________________________
> 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