execution based on Selection type. ( scripting )


#1

how do you execute something based on selection ( scripting wise. ) like if i have a “polygon” selected, do this… if its a vertex… do this…if edge…do this… etc.

im trying to make a mirai context menu for fun, thats why im asking. i want to be able to use one hotkey to bring up one of 3 ( or 4 ) menus based on your selection, or no selection. this way you would get a menu with all tools that are able to execute in that particular mode.

only thing im missing is this, and the ability to customize the mouse buttons for the menu. like if i left click i will get so and so option… if i right click i will get something else… if i press ctrl+lmb i will get something else still. oh. and the ability to have the menu dissapear right after i press a button. so i dont have to enable a tool… go out of the menu… and then use the tool in the viewport ( sometimes i still have to activate the tool after the menu ). not the most intuitive process.

any help is appreciated.


#2

I wish I could help with this… I was just wondering how this was coming.


#3

LOL, Ive been wondering that myself too :wink:


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.