Does it work if you take 'f' out of the 'quotes'?   So: print
n['frame'].setValue(f)

On Thu, Jan 19, 2017 at 12:15 PM, Andrew Mumford <[email protected]> wrote:

> Trying to do the simplest thing for days now but still failing.
>
> I want to set a selected Read node knobs "expr" and "frame" to "start at"
> and "nuke.Root.first_frame()" so when I get file frame nos such as 103094
> - 103122 I can set the to some "human useable" range.
>
> Failing on the second part ...
>
> r = nuke.Root()
>
> f = r.knob('first_frame').value()
>
> n = nuke.selectedNode()
>
> print n['frame'].setValue('f')
>
>
> This sets "frame" to "f"  even though
>
>
> print r.knob('first_frame').value()
>
> Returns a Number "101" for example...
>
> Anyone help me out here - I'm sure it's my basic lack of code knowledge ?
>
> Thx
>
> ---
> Andrew Mumford
>
>
> _______________________________________________
> 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