Awesome!!!! Thx so much! This is greatly appreciated! Cheers Oli
On Sunday, April 6, 2014, Ean Carr <[email protected]> wrote: > Or, you can completely hide them: > > p=nuke.toNode("preferences") > > p['GridWidth'].setVisible(False) > > p['GridHeight']. setVisible(False) > > > Personally, I don't like to disable features of Nuke site-wide just > because I find them annoying, but, to each his own :) > > -E > > > > On Mon, Mar 10, 2014 at 9:06 PM, Elias Ericsson Rydberg < > [email protected]> wrote: > > and there we are! > > Fantastic. > > > 2014-03-10 21:53 GMT+01:00 Erwan Leroy <[email protected]>: > > p=nuke.toNode("preferences") > > p['GridWidth'].setEnabled(False) > > p['GridHeight'].setEnabled(False) > > > On Mon, Mar 10, 2014 at 12:35 PM, Elias Ericsson Rydberg < > [email protected]> wrote: > > Would be great if those parameters could be locked. > > > 2014-03-10 20:02 GMT+01:00 Erwan Leroy <[email protected]>: > > 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 <[email protected] > > 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 > [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 > > > > _______________________________________________ > Nuke-python mailing list > [email protected], > http://forums.thefoundry<http://forums.thefoundry.co.uk/> > > -- > >
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
