png format) depicting the screenshot that you just captured. That folder will contain an image file (in. Note: The Print Screen key is usually labeled either PrtScn, PrntScrn or Print Scr, depending on the keyboard.Ģ – Press the Windows+ E key combination to open “File Explorer”, then navigate to the Pictures> Screenshots folder. Here’s how:ġ – Press the Windows key and the Print Screen key at the same time. If you don’t need to edit the image before saving it to your hard drive, you can easily take the screenshot and save it directly as an image file simply by pressing a special key combination. From there you can make changes to the image and then save it to your computer as an image file.Īs luck would have it, Windows 10 gives you another very handy option for handling your screenshots… Once it is on the Clipboard your screenshot image can be pasted into your favorite image editing program.
#Shortcut to save image windows
This process is commonly known as “taking a screenshot”, and it’s one of the most useful features in all of Windows for many users.
#Shortcut to save image how to
I tried with this method to get the engine name,īut don't know how to slice tk-nuke from this string.Click here to sign up for my free Rick’s Tech Tips Newsletter!Īs you probably know, tapping your Windows PC’s Print Screen key will place a “snapshot” of the current screen contents onto the Windows Clipboard. TankError: Failed to change work area - No engine is currently running! Run start_engine instead. Raise TankError("Failed to change work area - %s" % e) Failed to change the work area to Shot Shot_01!įile "Y:\_PLUGINGS\Shotgun\TheKillTeam\install\app_store\tk-multi-workfiles2\v0.9.9\python\tk_multi_workfiles\actions\open_file_action.py", line 115, in _do_copy_and_openįile "Y:\_PLUGINGS\Shotgun\TheKillTeam\install\app_store\tk-multi-workfiles2\v0.9.9\python\tk_multi_workfiles\actions\file_action.py", line 123, in change_context
TankError: No engine is currently running! Run start_engine instead. I am trying your example but I am doing something wrong, I think just at the begging when doing the if engine.name = 'tk-nuke': Hope this makes your artists happier and less allergic! Comment actions
If you'd like to learn more about how these work, there's more info about Core Hooks in our docs. Sg_write_node_item = nu('Nodes').findItem("Shotgun/Mono Dpx ")Įngine.log_debug("Set hot key for SG write node") # add new hot key for Shotgun Mono Dpx Write Node Write_node_item = nu('Nodes').findItem("Image/Write")Įngine.log_debug("removed default hot key for node Image/Write.") Sg_save_as_tShortcut("Ctrl+Shift+S")Įngine.log_debug("Set hot key for SG Save As.") Sg_save_as_item = sg_menu.findItem("Shotgun Save As.") # add new hot key for Shotgun > Shotgun Save As. Save_as_item = file_menu.findItem("Save As.")Įngine.log_debug("removed default hot key for File > Save As.") # NOTE: Nuke 9 renamed this menu to "Save Comp As." :/įile_menu = nu("Nuke").findItem("File") # remove default hotkey from File > Save As. # not running in interactive mode so don't have menus or shortcuts! Override various shortcut keys in Nuke to run our own commands :param engine: The current engine being initialisedĭef _override_nuke_shortcuts(self, engine): Gets executed when a Toolkit engine has fully initialized.Īt this point, all applications and frameworks have been loaded, In the execute() method, we'll need to first check that the Nuke engine is the one calling this hook, and if so, we can proceed with our code. $ cp /path/to/sgtk/software/shotgun/studio/install/core/hooks/engine_init.py /path/to/sgtk/software/shotgun//core/hooks/engine_init.py
#Shortcut to save image install
To customize it, copy the default hook from your studio install directory to your project core hooks directory which will look something like this: The engine_init core hook is run every time any engine is done initializing. But if you know a hotkey already exists for something and you want to re-assign it, you can do that fairly easily. You should ensure the hotkey isn't currently being used for another menu item (which can cause weirdness and instability). And yes, you can use the engine_init core hook to add shortcuts to the Shotgun Toolkit menu items in Nuke. It's great to make your artists' lives easier.