It is

[python {nuke.thisGroup().input(1)['rotate'].value(0)} ]

or

[python {nuke.thisParent().input(1)['rotate'].value(0)} ]


Both should do the same.

Out of curiosity, is there any difference between group and parent? Which one 
is prefered over the other in which situation? It is the same in tcl 
expressions. Both can be used to reference outside knobs from within a group or 
gizmo.

Best regards,
Michael

------------------------------------------
DI (FH) Michael Habenicht
Digital Film Compositor & TD

http://www.tinitron.de
[email protected]
------------------------------------------



----- Original Message -----
From: [email protected]
To: [email protected]
Date: 26.07.2012 13:32:45
Subject: [Nuke-python] Re: how to grab a gizmo name in a node inside itself


> Thanks for your reply!
> I tried that before and in this case it doesn't work because the expression 
> is on an axis node, so 
> Hugo L�veill� wrote:
>> e axis node instead of the gizmo.
>> Alan
>> 
>> 
>> [quote="Hugo L�veill�"]Not sure if I understand what you are after but 
>> if your gizmo is a real gizmo (not a group), this should work:
>>                       
>>                      [python {nuke.thisNode().input(1)['rotate'].value(0)} ]
>>                       
>>                      On Thu, Jul 26, 2012, at 06:51, stoutch wrote:
>>         
>> >                               Hi everyone,                 I'm trying to 
>> > find a way to catch the name of a gizmo inside an expression on the pivot 
>> > of an axis that is contained in the gizmo itself.                 
>> > basically the expression is the following:                 [python 
>> > {nuke.toNode('gizmoName').input(1)['rotate'].value(0)} ]                 
>> > it is working fine but every time i create a second gizmo it doesn't work 
>> > anymore because the name of the new gizmo is different. This expression is 
>> > attached on one of the pivot values of the axis inside the gizmo and is 
>> > grabbing the translation value of a geometry (card) attached to the input 
>> > 1 of the gizmo.                 i tried to use nuke.thisGroup() instead of 
>> > the name of the gizmo but maybe I've done something wrong.                 
>> > Any idea?                 Thanks in advance
>> >                              
>> > _______________________________________________
>> >                              Nuke-python mailing list
>> >                              [email protected] 
>> > ([email protected]), 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)
>> >         
>>      
>> 
>>      
>> 
>> 
>> 
>> -- 
>> Hugo L�veill�
>> TD Compositing, Vision Globale
>> [email protected] ([email protected])
> 
> 
> 
> 
> _______________________________________________
> 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