Is this helpful? It should set both knobs on creation: 

nuke.createNode("OCIOColorSpace","in_colorspace sRGB out_colorspace sRGB") 

I'm not sure about the file dialog popping up though. That should happen I 
don't think if you are just doing something like a 
writeNode['file'].getValue(). Sorry. 

Jake 

----- Original Message -----

| From: "adam jones" <adam....@mac.com>
| To: "Nuke user discussion" <nuke-users@support.thefoundry.co.uk>
| Sent: Tuesday, January 12, 2016 6:29:47 AM
| Subject: [Nuke-users] setting multiple values on node creation
| "nuke.createNode"

| hey all

| I have half of this read from write working.

| the line of code I am having trouble with is
| nuke.createNode("OCIOColorSpace").knob('in_colorspace').setValue('sRGB')
| this bit works but I can't set a secong knob value

| I wish to also set the out_colorspace value but can't work out how to
| do it,

| also I am doing a getValue() from a write node but a file dialog
| comes up which needs clicking of "open" for the read node how do I
| get around this.

| I am trying my best to learn this from my own trial and error but
| just can't find any thing to help me with it.

| and is there a way to get more explicit echoing of actions performed
| in nuke?

| awesome cheers

| regards
| -adam

| _______________________________________________
| Nuke-users mailing list
| Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
| http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to