A quick workaround I can think of would be to copy the whole original read
geo and then set the values you're interested in.

I don't know the exact answer to your question though..
On 24 Jul 2015 04:07, "Jake Richards" <[email protected]> wrote:

> Hello:
>   I am trying to link the file knob of a ReadGeo2 node to another ReadGeo2
> node and then set some of the dynamically created knobs but the issue I'm
> running into is that the python script is executing before the knobs appear.
> Example:
>
> readSrc = nuke.nodes.ReadGeo2(file="/var/tmp/hat.abc")
>
>
> copyRG = nuke.nodes.ReadGeo2()
>
> copyRG['file'].setValue("[value %s.file]" % readSrc.fullName())
>
> copyRG['read_on_each_frame'].setValue(False)
>
>
> NameError: knob read_on_each_frame does not exist
>
>
> The issue is that the read_on_each_frame checkbox doesn't exist until the
> file name is filled out.  Is there a function I can use to tell nuke to
> wait for the knob to exist before I set it's value?
> Also, this appears to be a problem since the file knob is an expression,
> if I set the value to a specific file, there is no error.
>
> Thank you!
> Jake
>
>
> --
> --
> --------------------------------------------
> [email protected]       203-992-6319
> LTD                         Blue Sky Studios
> --------------------------------------------
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to