Yeah, without knowing how those preference knobs are handled internally or
mass-editing artists' preferences files, the node-level solution definitely
makes more sense.
-Nathan
-----Original Message-----
From: Josh Imbruglia
Sent: Tuesday, March 26, 2013 11:26 AM
To: Nuke Python discussion
Subject: Re: [Nuke-python] disabling gpu in Nuke7.0v5
Marten,
Yup, that works fine, disables all of the GPU enabled nodes. Will
require the artists to manually enable all of the nodes which makes
them aware that they will be using the GPU.
Nathan,
Thanks for looking, a work around would be to set the value and
re-save out the file which is a bit too much of a work around,
disabling all of the nodes by default is good enough for me.
Cheers,
Josh
On Tue, Mar 26, 2013 at 6:01 PM, Marten Blumen <mar...@gmail.com> wrote:
put into init.py
nuke.knobDefault('useGPUIfAvailable', "False")
On 27 March 2013 06:59, Nathan Rusch <nathan_ru...@hotmail.com> wrote:
Hmm, that's an interesting one. It looks like Nuke is actually storing
'selectedGPUDeviceName' in the preferences file rather than
'selectedGPUDeviceIndex', and there's also a 'selectedGPUDeviceNum' knob
on
the preferences node.
However, regardless of the knob default combinations I've tried
(including
setting both), I can't get it to default to 'Use CPU', even after
removing
my preferences entry for that value and swapping the Preferences class
into
the knobDefault calls. I could be overlooking something else, but it
seems
like the logic for this preference is handled differently than other
preferences/defaults.
-Nathan
-----Original Message----- From: Josh Imbruglia
Sent: Tuesday, March 26, 2013 9:49 AM
To: Nuke Python discussion
Subject: [Nuke-python] disabling gpu in Nuke7.0v5
Hi,
Is there is an easy way to disable them by default as we're running
into some issues.
using nuke.knobDefault('preferences.selectedGPUDeviceIndex', 'Use
CPU') doesn't seem to work.
thanks,
Josh
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python