Great! -
Yes I was thinking that might be the only option though wouldn't have found
indicators - one dumb question what does the '& 1' do at the end?
seems to work without it too.
Only seems to work with selected nodes so Ive just tested this and gives me
what
I want - thanks (probably easier way no doubt).
Looping through nuke.allNodes() seems to just give knobs list
def isAnimated(node):
return int(node['indicators'].value()) & 1
for n in nuke.allNodes():
n.setSelected(False)
for n in nuke.allNodes():
n.setSelected(True)
i=isAnimated(nuke.selectedNode())
print n['name'].value(),i
n.setSelected(False)
# Result:
Blur1 1
Transform1 0
Viewer1 0
for
set cut_paste_input [stack 0]
version 6.2 v2
push $cut_paste_input
Transform {
center {960 540}
name Transform1
selected true
xpos -148
ypos 223
}
Blur {
inputs 0
size {{curve x1 0 x14 20 x32 0 x45 20}}
name Blur1
selected true
xpos -255
ypos 206
}
H
________________________________
From: Ivan Busquets <[email protected]>
To: Nuke Python discussion <[email protected]>
Sent: Thu, 10 March, 2011 0:42:34
Subject: Re: [Nuke-python] node animated
If you can rely on testing for whether the node has the "animated" indicator or
not, you could do this:
def isAnimated(node):
return int(node['indicators'].value()) & 1
Basically, just check if the node has the "animated" indicator/icon.
Would that work for you?
On Wed, Mar 9, 2011 at 4:32 PM, Nathan Rusch <[email protected]> wrote:
Not to my knowledge. I think you’ll probably just have to use a knob loop.
>
>-Nathan
>
>
>From: Howard Jones
>Sent: Wednesday, March 09, 2011 4:06 PM
>To: Nuke Python discussion
>Subject: [Nuke-python] node animated
> Hi
>Is there a way to check if a node contains an animation?
>
>like knob.isAnimated() but at node level?
>
>I've looked but cant find one.
>
>Cheers
>H
>
>
________________________________
_______________________________________________
>Nuke-python mailing list
>[email protected]
>http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>_______________________________________________
>Nuke-python mailing list
>[email protected]
>http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python