If you are trying to get Read nodes, you can make your list smaller with:

def CallbackTest():
        allNodes = nuke.allNodes(filter='Read', recurseGroups=True)
        for n in allNodes:
                path = "./User/movies/videofile.mov"
                n['file'].setValue(path)

you already found the node, so you can just use 'n' instead of nuke.thisNode(), 
which is probably just going to loop the error on the root.

JRAB


> On Mar 12, 2017, at 11:32 PM, Michael Hodges <[email protected]> wrote:
> 
> How do I reference specific nodes in a callback?
> I’ve gotten as far as selecting specific nodes but I’m a little confused at 
> how I’m actually
> referencing actual knobs in these nodes.  I feel like it should be with a 
> "nuke.thisNode()” type approach but I can’t seem to get it working.
> 
> Is this the right idea?
> 
> def CallbackTest():
>       allNodes = nuke.allNodes(recurseGroups=True)
>       for n in allNodes:
>               if "Read" in n.name():
>                       path = “./User/movies/videofile.mov"
>                       nuke.thisNode().knob(‘file').setValue(path)
> 
> 
> 
> 
> Thanks!
> 
> Michael
> 
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to