Hi Barba,
you're missing a new line after s = nuke.selectedNode().
The s... that comes after should be a new line.


Ron Ganbar
email: [email protected]
tel: +44 (0)7968 007 309 [UK]
     +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/



On 12 March 2012 11:07, barba <[email protected]> wrote:

> **
> hi hugo..
> i'm trying to test your code, but i have some errors...and i don't know
> why...
> i'm sorry but i'm starting now to learn pytohn..
>
> can you help me??
>
> for test..i done...exactly what you have done...
> blur node,group...add a slider for have User Tab..than i select the Group..
> script editor...but your code gives me an error..
>
> *Code:*
> s = nuke.selectedNode() s['knobChanged'].setValue(''' n = nuke.thisNode()
> k = nuke.thisKnob() if k.name() == "inputChange": if n.input(0):
> n['User'].clearFlag(nuke.INVISIBLE) else:
> n['User'].setFlag(nuke.INVISIBLE) ''')
> # Result:
>   File "**", line 1
>
>     s = nuke.selectedNode() s['knobChanged'].setValue(''' n =
> nuke.thisNode() k = nuke.thisKnob() if k.name() == "inputChange": if
> n.input(0):
>                              ^
> SyntaxError: invalid syntax
>
>
> Thanks for your patience..
>
> R.
>
> _______________________________________________
> 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