Would be great if those parameters could be locked.

2014-03-10 20:02 GMT+01:00 Erwan Leroy <er...@erwanleroy.com>:

> Hi Oliver.
>
> You can put the following code in a global menu.py (not in init, as it's
> GUI related):
>
> width = 100
>
> height = 100
>
> p = nuke.toNode('preferences')
>
> p['GridWidth'].setValue(width)
>
> p['GridHeight'].setValue(height)
>
>
> Just replace the values by whatever you want to set your size to.
>
> The users shouldn't be able to set a size and save it, because every time
> they restart nuke it should set back to this. (Unless they setup some
> similar code in their own menu.py that would overwrite this command). They
> can still go and edit it manually each time too if they really care about
> their grid size.
>
>
> On Mon, Mar 10, 2014 at 8:06 AM, Oliver Markowski <owski.hims...@gmail.com
> > wrote:
>
>> Hey guys,
>>
>> really simple question...how do i change the user preferences for the
>> grid-size of the nodeGraph...it is very annoying if everyone is using
>> different grid-spacing in their comps...
>>
>> can i just put a python command inside init.py?
>>
>> regards
>> Oli
>>
>> _______________________________________________
>> 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

Reply via email to