nomadmicro.blogg.se

Maya assign hotkey to shelf button
Maya assign hotkey to shelf button






maya assign hotkey to shelf button

You could also create new cameras for each orientation -if they don't exists already- and switch back and forth between the default and non-default ones. You can then call those commands with a viewport in focus, and it will automatically switch to the specified camera. Launch IPR Session : Selects 3Delight as the current renderer and begins an Interactive Photorealistic Rendering session using the Render Pass selected in the Render Settings window. It can be user re-assigned through Mayas HotKey Editor. You can setup a new shelf with 'Options / Customize UI / Shelves'. You can put your favourite functions, MEL-scripts., into your own shelf. The shelf is a fast access to important functions.

maya assign hotkey to shelf button

Rotate = cmds.getAttr(cam + '.rotate' + orient)Ĭmds.setAttr(cam + '.translate', *translate, type='double3')Ĭmds.setAttr(cam + '.rotate' + orient, rotate)Ĭmds.modelPanel(viewport, edit=True, camera=cam) # Set the camera to the active viewport The Shelf contains buttons to access most of 3Delight for Maya functionalities through a single mouse click. There are four important things to know: shelves, Menu set pop-up, context-sensitve marking menus and view panels. Translate = cmds.getAttr(cam + '.translate') If cmds.getPanel(typeOf=panel) = 'modelPanel': Try the hotkeyed marking menu in a 3D view panel. After youve finished assigning those hotkeys, click the Save button at the bottom of the Hotkey Editor, and then click the Close button. Under Current Hotkeys, you should see the Ctrl+f hotkey combination. The Maya Layout Tools resource page is a centralized location for all things related to LayoutTools LayoutTools is a toolset that is widely used for basic layout and assembly of objects within a. """Return the active 3D viewport if any""" Hi, If its a few items you want to assign hotkeys to, you can create simple template script in Python, drag this onto the shelf, and assign a hotkey to each of these items which could be limited to a pane like the network editor if desired, or invoked globally. Click the Yes button in the message box to have Maya set both press and release hotkeys. and add 180 degrees to the corresponding axis for each camera you want. I want the script to check something when saving the scene and give a heads up to. It is actually quite simple, I don't really like to play with the default Maya cameras, but I don't think that is a problem here.Īll you have to do is multiply by -1 the translate coordinates. Hello, I'm wondering if there is any way to run a Python (or MEL) command every time that the user saves a scene.








Maya assign hotkey to shelf button