Home Technical Talk

[MAXScript] Unable to assign new quad menu to right-click entry

polycounter lvl 14
Offline / Send Message
Wesley polycounter lvl 14

Hey guys, I posted this over at TheArea, but so far no luck. Thought I'd try here. I am using MAXScript to create a new quad menu for some tools and assign it to a right-click context action.

I have been using this Autodesk documentation page to build this: https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_1374EDCA_CC8B_4B43_81A5_6ED98DBE01...

The first steps of creating it and modifying a setting works; but I've had no luck trying to assign it to a new right-click setting. I've left in the returns here to help demonstrate the issue.

newQuad = menuMan.createQuadMenu "newMenu" "quad1" "quad2" "quad3" "quad4"
<MixinInterface:quadMenu>
menuMan.setShowAllQuads newQuad true
OK
menuMan.setViewportRightClickMenu #shiftAndControlPressed newQuad
true

Despite returning true the new quad menu has no right-click context assigned to it.

I had found some very old documentation saying that the name of the quadMenu needed to be passed (in this case 'newMenu'), but this returns an error.

Is there something I'm missing here?

Thanks


Replies

  • Eric Chadwick
    You might still get an answer here, but have you tried asking on Scriptspot, or on Tech-Artists.org?
  • Wesley
    Offline / Send Message
    Wesley polycounter lvl 14
    Hey Eric, Tech-Artists was my next begging ground. I've not posted there since 2012... hopefully they'll forgive me. :tongue:

    If I find a solution I'll make sure to update this thread.
  • Noors
    Offline / Send Message
    Noors greentooth
    Looks like not much people tried to deal with this. Maybe you have to register menus in some way to avoid conflicts.
    Stepped upon the help files from Max 4 aswell, with the same typos lulz...
    Maybe was it before you could set your quad menu through CUI ? But you can't assign to right click there. Is a hotkey such an issue ? Because it looks easier. You could check MaxStartUI.mnux for some hints maybe.
    Best bet for maxscript is cgtalk imo.

Sign In or Register to comment.