Re: AW: Re: [Nuke-users] create a node outside a grouped gimzo

2016-11-22 Thread Ben Dickson

The with statement is basically the same as doing:

def button_a():
mygroup = nuke.toNode("Group1")
try:
mygroup.begin()
nuke.nodes.Blur()
some_func_which_errors_sometimes()
finally:
mygroup.end()

That is, always calling ".end()" even if an error occurs. I.e it "cleans 
up" after itself.


For example, say you have two unrelated menu commands - one makes a blur 
in a group, the other just makes a grade node (nothing at all to do with 
the group)


def button_a():
mygroup = nuke.toNode("Group1")
mygroup.begin()
nuke.nodes.Blur()
some_func_which_errors_sometimes()
mygroup.end()

def button_b():
nuke.nodes.Grade()

button_b() # makes Grade node in root, good
button_a() # makes Blur node in group, good, but then errors
button_b() # now makes Grade in group, bad

This happens because "mygroup.end()" never got called, whereas the 
"with" statement ensures this happens:


def button_a():
mygroup = nuke.toNode("Group1")
with mygroup:
nuke.nodes.Blur()
some_func_which_errors_sometimes()

On 23/11/16 04:27, Igor Majdandzic wrote:

Hows the with statement working here? I was always defining group.begin
and end. This looks much more elegant



Von Samsung Mobile gesendet



 Ursprüngliche Nachricht 
Von: Ben Dickson 
Datum: 22.11.2016 3:44 (GMT+01:00)
An: Nuke user discussion 
Betreff: Re: [Nuke-users] create a node outside a grouped gimzo


"with nuke.thisParent():" would be the other way, which would also work
in the (uncommon) case of working inside nested group nodes

On 22/11/16 08:06, Gabor Hovanyi wrote:
 > with nuke.root():
 >  nuke.createNode('Reformat')
 >
 > => http://community.thefoundry.co.uk/discussion/topic.aspx?f=190=102206
 >
 > On Mon, Nov 21, 2016 at 1:24 PM, Darren Coombes  > wrote:
 >
 > I’ve got a grouped gizmo, and i want to create a reformat node.
 > I’ve got it to create a reformat node, but it makes the node inside
 > the group.
 > Any idea how you’d get it to work so it creates it outside the group?
 >
 > Thanks.
 >
 > Check out some of my work...
 > *
 > *www.vimeo.com/darrencoombes/reel2015
 > *
 > *
 > *
 > *
 > *
 > *
 > *
 > *Mob: +61 418 631 079 *
 > *
 > IMDB: www.imdb.com/name/nm3719099/

 > *
 > *Instagram: @7secondstoblack*
 > *Instagram: @durwood0781*
 > *Skype:  darren.coombes81*
 > *Twitter:  @durwood81*
 > *
 >
 >
 > ___
 > Nuke-users mailing list
 > Nuke-users@support.thefoundry.co.uk
 > ,
 > http://forums.thefoundry.co.uk/ 
 > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
 > 
 >
 >
 >
 >
 > ___
 > Nuke-users mailing list
 > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
 > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
 >

--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users



--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


Re: [Nuke-users] passing metadata into a static text knob

2016-11-22 Thread Igor Majdandzic
Hmm. 26 should be static Text knob. Looks like in the pasted Text there is the Label Missing. Just put something between "", i guess.
The backslashes look weird too me. Maybe removing them might work. Not in Front of nuke anymore so i can Test Tomorrow.
You are on 10.0v4?
Cheers
Am 23.11.2016 12:57 vorm. schrieb Adrian Cruceru :Thanks Igor but it does not work. I might be missing something cause the "press me" knob is invisible, and frankly I don't even know what type of knob is the 26th, there are just 24 on my menu. I'm only getting 2 controls.CheersAdrianOn Tue, Nov 22, 2016 at 10:43 PM, Igor Majdandzic  wrote:
  

  
  
I see what you mean.
  You could create a Python Knob and change the label hardcoded or
  add another knob providing more info you would need.
  You could use a setup like this
set cut_paste_input [stack 0]
  version 10.0 v4
  push $cut_paste_input
  Blur {
   name Blur1
   selected true
   xpos 124
   ypos -49
   addUserKnob {20 User}
   addUserKnob {1 input l "use me"}
   input "this is just for test purposes"
   addUserKnob {22 label l "press me" T
  "nuke.thisNode()\['test'].setValue(nuke.thisNode()\['input'].value())"
  +STARTLINE}
   addUserKnob {26 test l "" +STARTLINE T metadata}
  }

Maybe there is a prettier solution, but at least it is a
  solution.
Igor


Am 22.11.2016 um 19:44 schrieb Adrian
  Cruceru:


  Somehow nothing get's evaluated as TCL in the body
of the text of the Static Text Knob.
It would be great if you have an example that works.


Cheers


Adrian
  
  
On Tue, Nov 22, 2016 at 5:47 PM, Igor
  Majdandzic 
  wrote:
  

  Im not the brightest bulb when tcl is brought into
play, but you could add a text knob parse the _expression_
and reference that value.
  
  
  Igor
  
  
  
  
  
Von Samsung
  Mobile gesendet
  
  
  
  
   Ursprüngliche Nachricht 
  Von: Adrian Cruceru 
  
  Datum: 22.11.2016 16:29 (GMT+01:00) 
  An: Nuke user discussion 
  
  Betreff: [Nuke-users] passing metadata into a static text
  knob 
  
 
  
  Hi


Is there a way to pass metadata into a static
  text knob?
for instance 
[metadata input/width] 
will be replaced with the value found in the
  input node metadata if i type it in a text node
  but 
it won't be evaluated into a static text knob


How do i force the evaluation of the [metadata
  key] _expression_ for a static text?


Thank you for the help


Cheers
  
  
  -- 
  Adrian
Cruceru
df(x)

  

  


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
  





-- 
Adrian
  Cruceru
  df(x)
  


-- 
--
Igor Majdandzic
Compositing Supervisor/TD

@Chimney Frankfurt
  

-- Adrian Crucerudf(x)

___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Re: [Nuke-users] create a node outside a grouped gimzo

2016-11-22 Thread Carlos Trijueque
As far as I know they are equivalent but using the 'with' statement is
more pythonic.

On Tue, Nov 22, 2016, at 18:57, Igor Majdandzic wrote:
> Hows the with statement working here? I was always defining group.begin
> and end. This looks much more elegant
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


AW: Re: [Nuke-users] create a node outside a grouped gimzo

2016-11-22 Thread Igor Majdandzic
Hows the with statement working here? I was always defining group.begin and 
end. This looks much more elegant



Von Samsung Mobile gesendet

 Ursprüngliche Nachricht 
Von: Ben Dickson  
Datum: 22.11.2016  3:44  (GMT+01:00) 
An: Nuke user discussion  
Betreff: Re: [Nuke-users] create a node outside a grouped gimzo 
 
"with nuke.thisParent():" would be the other way, which would also work 
in the (uncommon) case of working inside nested group nodes

On 22/11/16 08:06, Gabor Hovanyi wrote:
> with nuke.root():
>  nuke.createNode('Reformat')
>
> => http://community.thefoundry.co.uk/discussion/topic.aspx?f=190=102206
>
> On Mon, Nov 21, 2016 at 1:24 PM, Darren Coombes  > wrote:
>
> I’ve got a grouped gizmo, and i want to create a reformat node.
> I’ve got it to create a reformat node, but it makes the node inside
> the group.
> Any idea how you’d get it to work so it creates it outside the group?
>
> Thanks.
>
> Check out some of my work...
> *
> *www.vimeo.com/darrencoombes/reel2015
> *
> *
> *
> *
> *
> *
> *
> *Mob: +61 418 631 079 *
> *
> IMDB: www.imdb.com/name/nm3719099/ 
> *
> *Instagram: @7secondstoblack*
> *Instagram: @durwood0781*
> *Skype:  darren.coombes81*
> *Twitter:  @durwood81*
> *
>
>
> ___
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk
> ,
> http://forums.thefoundry.co.uk/ 
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
>
>
>
>
> ___
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>

-- 
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

AW: [Nuke-users] passing metadata into a static text knob

2016-11-22 Thread Igor Majdandzic
Im not the brightest bulb when tcl is brought into play, but you could add a 
text knob parse the expression and reference that value.

Igor


Von Samsung Mobile gesendet

 Ursprüngliche Nachricht 
Von: Adrian Cruceru  
Datum: 22.11.2016  16:29  (GMT+01:00) 
An: Nuke user discussion  
Betreff: [Nuke-users] passing metadata into a static text knob 
 
Hi

Is there a way to pass metadata into a static text knob?
for instance 
[metadata input/width] 
will be replaced with the value found in the input node metadata if i type it 
in a text node but 
it won't be evaluated into a static text knob

How do i force the evaluation of the [metadata key] expression for a static 
text?

Thank you for the help

Cheers

-- 
Adrian Cruceru
df(x)___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

[Nuke-users] passing metadata into a static text knob

2016-11-22 Thread Adrian Cruceru
Hi

Is there a way to pass metadata into a static text knob?
for instance
[metadata input/width]
will be replaced with the value found in the input node metadata if i type
it in a text node but
it won't be evaluated into a static text knob

How do i force the evaluation of the [metadata key] expression for a static
text?

Thank you for the help

Cheers

-- 
Adrian Cruceru
df(x)
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Re: [Nuke-users] Nukepedia down?

2016-11-22 Thread Bruno-Pierre Jobin
Thank you Frank. 

--
Bruno-Pierre Jobin

> On Nov 22, 2016, at 3:20 AM, Frank Rueter|OHUfx  wrote:
> 
> ok, back up now.
> 
> 
>> On 22/11/16 9:18 pm, Frank Rueter|OHUfx wrote:
>> Sorry guys.
>> Murphy's Law. The minute I hopped on a plane to Australia our disk space 
>> filled up and crippled the data base connection.
>> Fixing it now via dial up :-D ...
>> 
>> 
>> 
>>> On 22/11/16 9:09 am, Massao Asaga wrote:
>>> Not yet. Same error too.
>>> 
 On Mon, Nov 21, 2016 at 5:34 PM, Igor Majdandzic 
  wrote:
 not yet. get the same error
 
 
 
> Am 21.11.2016 um 17:37 schrieb Bruno-Pierre Jobin:
> Nukepedia complains about not being able to connect to MySQL this 
> morning. Anyone knows if it'll be back soon?
> 
> Thanks
> 
> --
> Bruno-Pierre Jobin___
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
 
 -- 
 --
 Igor Majdandzic
 Compositing Supervisor/TD
 
 @Chimney Frankfurt
 
 
 ___
 Nuke-users mailing list
 Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
 http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>> 
>>> 
>>> 
>>> -- 
>>> Massao Asaga
>>> VFX Supervisor/Nuke Senior Compositor/After Effects Artist.
>>> 
>>> 
>>> ___
>>> Nuke-users mailing list
>>> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>> 
>> -- 
>> 
>> vfx for storytellers
>> 
>> vfx compositing | workflow customisation & consulting
>> 
>> W E L L I N G T O N|N E W   Z E A L A N D
>> 
>> ___
>> Nuke-users mailing list
>> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> -- 
>  
> vfx for storytellers
> 
> vfx compositing | workflow customisation & consulting
> 
> W E L L I N G T O N|N E W   Z E A L A N D
> ___
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Re: [Nuke-users] Nukepedia down?

2016-11-22 Thread Frank Rueter|OHUfx

ok, back up now.


On 22/11/16 9:18 pm, Frank Rueter|OHUfx wrote:

Sorry guys.
Murphy's Law. The minute I hopped on a plane to Australia our disk 
space filled up and crippled the data base connection.

Fixing it now via dial up :-D ...



On 22/11/16 9:09 am, Massao Asaga wrote:

Not yet. Same error too.

On Mon, Nov 21, 2016 at 5:34 PM, Igor Majdandzic 
> wrote:


not yet. get the same error



Am 21.11.2016 um 17:37 schrieb Bruno-Pierre Jobin:

Nukepedia complains about not being able to connect to MySQL
this morning. Anyone knows if it'll be back soon?

Thanks

--
Bruno-Pierre Jobin___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk
,
http://forums.thefoundry.co.uk/ 
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users



-- 
--

Igor Majdandzic
Compositing Supervisor/TD

@Chimney Frankfurt


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk
,
http://forums.thefoundry.co.uk/ 
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users





--
*Massao Asaga
VFX Supervisor/Nuke Senior Compositor/After Effects Artist.*


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


--
ohufxLogo 50x50 

*vfx for storytellers *

*vfx compositing  | 
*workflow customisation & consulting 
**


*W E L L I N G T O N|N E W   Z E A L A N D *



___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


--
ohufxLogo 50x50 

*vfx for storytellers *

*vfx compositing  | 
*workflow customisation & consulting 
**


*W E L L I N G T O N|N E W   Z E A L A N D *

___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Re: [Nuke-users] Nukepedia down?

2016-11-22 Thread Frank Rueter|OHUfx

Sorry guys.
Murphy's Law. The minute I hopped on a plane to Australia our disk space 
filled up and crippled the data base connection.

Fixing it now via dial up :-D ...



On 22/11/16 9:09 am, Massao Asaga wrote:

Not yet. Same error too.

On Mon, Nov 21, 2016 at 5:34 PM, Igor Majdandzic 
> wrote:


not yet. get the same error



Am 21.11.2016 um 17:37 schrieb Bruno-Pierre Jobin:

Nukepedia complains about not being able to connect to MySQL
this morning. Anyone knows if it'll be back soon?

Thanks

--
Bruno-Pierre Jobin___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk
,
http://forums.thefoundry.co.uk/ 
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users



-- 
--

Igor Majdandzic
Compositing Supervisor/TD

@Chimney Frankfurt


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk
,
http://forums.thefoundry.co.uk/ 
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users





--
*Massao Asaga
VFX Supervisor/Nuke Senior Compositor/After Effects Artist.*


___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users


--
ohufxLogo 50x50 

*vfx for storytellers *

*vfx compositing  | 
*workflow customisation & consulting 
**


*W E L L I N G T O N|N E W   Z E A L A N D *

___
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users