Yes, rather unhelpfully, that func doesn't return the node object. Just
change the last line to return nuke.nodePaste... and you should be good to
go. -E

  def node_copypaste():

nuke.nodeCopy(cut_paste_file())

nodes = nuke.allNodes();

for i in nodes:

i.knob("selected").setValue(False)

return nuke.nodePaste(nukescripts.cut_paste_file())



On Thu, Apr 11, 2013 at 10:07 PM, Noggy
<[email protected]>wrote:

> **
> I'm trying to use the nukescripts.node_copypaste() function. I want to
> have assign a variable to the newly pasted node. At the moment, I get the
> error "'NoneType' object is unsubscriptable"
>
> I'm dumbfounded. I'm trying to duplicate a read node but there's no
> built-in duplicate/clone/copypaste functions. Any help.
>
> _______________________________________________
> 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