Re: [Nuke-users] python [topnode] equivalent

2012-04-20 Thread Ivan Busquets
Or if you just want the tile_color of the top node, you could of course do:

n = nuke.selectedNode()

tile_color = nuke.tcl("value [topnode %s].tile_color" % n.name())

Hope that helps


On Fri, Apr 20, 2012 at 6:41 PM, Ivan Busquets wrote:

> You can use nuke.tcl() within python to execute a tcl command.
>
> So, in your case, something like this should work:
>
>   n = nuke.selectedNode()
>
> topnode_name = nuke.tcl("full_name [topnode %s]" % n.name())
>
> topnode = nuke.toNode(topnode_name)
>
>
>
> On Fri, Apr 20, 2012 at 6:30 PM, Adam Hazard  wrote:
>
>> Hopefully a quick question,
>>
>> If I currently have a node selected somewhere in a tree, and I want to
>> access the topnodes tile color using python, how would I do so? Using
>> [[topnode].tile_color] doesn't seem to work as it is tcl? Looking around it
>> seems you need to check dependecies of all the nodes or something, but I
>> haven't been able to get anything to work.  Is there no way to convert the
>> tcl function to work in python?
>>
>> Thanks in advance for any help,
>> Adam
>> __**_
>> 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] python [topnode] equivalent

2012-04-20 Thread Ivan Busquets
You can use nuke.tcl() within python to execute a tcl command.

So, in your case, something like this should work:

  n = nuke.selectedNode()

topnode_name = nuke.tcl("full_name [topnode %s]" % n.name())

topnode = nuke.toNode(topnode_name)



On Fri, Apr 20, 2012 at 6:30 PM, Adam Hazard  wrote:

> Hopefully a quick question,
>
> If I currently have a node selected somewhere in a tree, and I want to
> access the topnodes tile color using python, how would I do so? Using
> [[topnode].tile_color] doesn't seem to work as it is tcl? Looking around it
> seems you need to check dependecies of all the nodes or something, but I
> haven't been able to get anything to work.  Is there no way to convert the
> tcl function to work in python?
>
> Thanks in advance for any help,
> Adam
> __**_
> 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

[Nuke-users] python [topnode] equivalent

2012-04-20 Thread Adam Hazard

Hopefully a quick question,

If I currently have a node selected somewhere in a tree, and I want to 
access the topnodes tile color using python, how would I do so? Using 
[[topnode].tile_color] doesn't seem to work as it is tcl? Looking around 
it seems you need to check dependecies of all the nodes or something, 
but I haven't been able to get anything to work.  Is there no way to 
convert the tcl function to work in python?


Thanks in advance for any help,
Adam
___
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] Retime based on FPS?

2012-04-20 Thread Corrina Wilson

Super!  

Thanks Peter

C

Date: Fri, 20 Apr 2012 20:54:48 +0200
From: peter.hart...@gmail.com
To: nuke-users@support.thefoundry.co.uk
Subject: Re: [Nuke-users] Retime based on FPS?


  

  
  
keep this in your toolsets :)





set cut_paste_input [stack 0]

version 6.3 v4

push $cut_paste_input

NoOp {

 name NoOp2

 selected true

 xpos -343

 ypos 741

 addUserKnob {20 User}

 addUserKnob {7 targetfps R 0 500}

 targetfps 30

 addUserKnob {7 ratio l "Ratio for Oflow" R 0 500}

 ratio {{projectfps/targetfps}}

 addUserKnob {7 projectfps R 0 500}

 projectfps {{parent.fps}}

}





Peter



Den 20-04-2012 20:42, Corrina Wilson skrev:

  
  


Hi there, 



Is there a retime method in Nuke where you can retime based on
fps?



I understand the oflow 48fps = 0.5 in the speed parameter.



Just curious if there's a way to quickly move between 30fps or
50 fps and not having to do the maths to get it to the correct
variable for the speed parameter.



Thanks in advance



C

  
  

  
  

  ___
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 
  ___
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] Retime based on FPS?

2012-04-20 Thread Peter Hartwig

keep this in your toolsets :)


set cut_paste_input [stack 0]
version 6.3 v4
push $cut_paste_input
NoOp {
 name NoOp2
 selected true
 xpos -343
 ypos 741
 addUserKnob {20 User}
 addUserKnob {7 targetfps R 0 500}
 targetfps 30
 addUserKnob {7 ratio l "Ratio for Oflow" R 0 500}
 ratio {{projectfps/targetfps}}
 addUserKnob {7 projectfps R 0 500}
 projectfps {{parent.fps}}
}


Peter

Den 20-04-2012 20:42, Corrina Wilson skrev:


Hi there,

Is there a retime method in Nuke where you can retime based on fps?

I understand the oflow 48fps = 0.5 in the speed parameter.

Just curious if there's a way to quickly move between 30fps or 50 fps 
and not having to do the maths to get it to the correct variable for 
the speed parameter.


Thanks in advance

C


___
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

[Nuke-users] Retime based on FPS?

2012-04-20 Thread Corrina Wilson


Hi there, 

Is there a retime method in Nuke where you can retime based on fps?

I understand the oflow 48fps = 0.5 in the speed parameter.

Just curious if there's a way to quickly move between 30fps or 50 fps and not 
having to do the maths to get it to the correct variable for the speed 
parameter.

Thanks in advance

C
  ___
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