Home Technical Talk

[Maya] Hotkeying Shading -> Wireframe on Shaded

polycounter lvl 19
Offline / Send Message
SideEffect polycounter lvl 19
Hi guys,

I'm learning Maya coming from Max right now.
I've been trying to set hotkeys that are more familiar to me.

I can't seem to find this Wireframe on Shaded command anywhere in the hotkey editor.
Is it in there somewhere or is that something you just have to script?

Also is there an easier way to search for specific commands in the hotkey editor?
I tried the Search button in there but it doesn't seem to really work or maybe it's just expecting exact keywords.

Thanks!

Replies

  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    mel command (to copy in the script editor):

    wireframe "ON" = setWireframeOnShadedOption true modelPanel4;

    wireframe "OFF"= setWireframeOnShadedOption false modelPanel4;

    or under shading tab:

    wireframeshaded.jpg
  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    One more thing for people that are learning Maya:

    Windows>Settings / Preferences>Display>View>Wireframe on shaded> Full/Reduced/None.

    wireframeshaded_2.jpg
  • SideEffect
    Options
    Offline / Send Message
    SideEffect polycounter lvl 19
    Ah okay. That's kind of lame that functionality isn't in there by default.

    Here's a toggle script I made if anyone else is looking to add this.
    string $selectedPanel = `getPanel -wf`;
    int $shadedWireState = `modelEditor -q -wos $selectedPanel`;
    if(`modelEditor -ex $selectedPanel`)
    {
        setWireframeOnShadedOption (!$shadedWireState) $selectedPanel;
    }
    
    You can just create a new User hotkey in the Hotkey editor and paste that in there.
  • SideEffect
    Options
    Offline / Send Message
    SideEffect polycounter lvl 19
    Oh that's also a cool tip thanks peanut!
  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    SideEffect wrote: »
    Oh that's also a cool tip thanks peanut!

    Welcome mate, my pleasure.

    And don't forget to use X-Ray for modeling (paste command on Alt-X like in Max)

    X-Ray>
    string $panel = `getPanel -wf`;
    if ( `modelEditor -ex $panel` )
    modelEditor -e -xray ( !`modelEditor -q -xray $panel` ) $panel;
  • SideEffect
    Options
    Offline / Send Message
    SideEffect polycounter lvl 19
    Sweet going to need that one too.

    Here's another one
    Toggle between wireframe and shaded:
    string $selectedPanel = `getPanel -wf`;
    string $wireframeState = `modelEditor -q -displayAppearance $selectedPanel`;
    if(`modelEditor -ex $selectedPanel`)
    {
        if($wireframeState == "wireframe")
        {
            modelEditor -edit -displayAppearance smoothShaded -activeOnly false $selectedPanel;
        }
        else
        {
            modelEditor -edit -displayAppearance wireframe -activeOnly false $selectedPanel;
        }
    }
    
  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    It's always nice to see fellow 3dsmaxer having a go in Maya and already fluidly playing around the script editor.

    Good one!
  • SideEffect
    Options
    Offline / Send Message
    SideEffect polycounter lvl 19
    ^^
    Thanks!

    Is there a simple way to save/load hotkeys?

    I'm going to be sharing Maya with others at this new office.
    I want to be able to ninja my abominable ways so I don't get burned at the stake every time someone comes over to use Maya.
  • peanut™
    Options
    Offline / Send Message
    peanut™ polycounter lvl 19
    SideEffect wrote: »
    Is there a simple way to save/load hotkeys?

    Well yes absolutely, just go under C:/Users\***youruserID***\Documents\maya and *.zip everything in this folder. To reload it unpack it at the same exact location and order you picked it at first.

    Hotkeys file is located in the pref folder and is named "userHotkeys.mel"
  • SideEffect
    Options
    Offline / Send Message
    SideEffect polycounter lvl 19
    Awesome thank you so much peanut!
  • BolognaGenocide
    Options
    Offline / Send Message
    BolognaGenocide polycounter lvl 8
    I tried the scripts listed in here in MAYA 2017 and they don't seem to work.  // Error: line 2: modelEditor: Object 'scriptEditorPanel1' not found

  • BolognaGenocide
    Options
    Offline / Send Message
    BolognaGenocide polycounter lvl 8
    fml.  Drinking and learning MAYA + MEL script don't go well together.  I just noticed that because I was attempting to run it through the script editor that it was grabbing that as the selected pane.  It works just fine when its set up as its own command bound to a hotkey.
Sign In or Register to comment.