Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This tiny script is a little hack to solve a few issues in Nuke when you run it while your language bar is set to other then "English US" (IE: Portuguese (Brasil)). Problems like pressing ` to hide the viewers and getting a constant node added to your DAG after your viewer(s) are hidden.
Since it's pretty boring to remember to change that everytime you start Nuke and some of us can't write without ã, õ, â, ô, ç, ü and so on, nor get rid of Windows :) This will set the language bar to English US for you automatically everytime you start Nuke from this script. At least for now while The Foundry doesn't fix this (it's a known issue even tho it seems I'm the only rambling about it).
Go to to "Control Panel > Regional and Language Options > Language" and click "Details"
In the "Settings" tab go to "Preferences" and click "Key Settings..."
Select "Switch to English (United States) - US" and click "Change Key Sequence..."
Check "Enable Key Sequence" and set it to "CTRL + Shift + 1"
Or any other key combo and then change the combination in the script.
Don't forget to add Nuke to your "Path" Environment Variable case it already isn't
You will need Windows Scripting Host, which should be the default for any "newer" releases (>XP)