Custom Radial Menu for Geometry Selection Types

   2728   5   3
User Avatar
Member
3 posts
Joined: 5月 2008
Offline
Hello everyone,
I'm trying to create a Custom Radial Menu with the different Geometry Selection Types.
Can someone help me about the code to write in the Script field.
To be clear, the command associated with shortcuts “2” - “3” - “4” - “5”.

Thanks in advance for any reply.

Attachments:
Custom Radial Menu.jpg (38.1 KB)

User Avatar
Member
538 posts
Joined: 12月 2006
Offline
Points mode:
viewer = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.SceneViewer)
viewer.setPickGeometryType(hou.geometryType.Points)
viewer.setSelectionMode(hou.selectionMode.Geometry)
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
538 posts
Joined: 12月 2006
Offline
To activate select state:
viewer.setCurrentState('select')
Edited by Alexey Vanzhula - 2018年4月6日 15:19:13
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
3 posts
Joined: 5月 2008
Offline
Thank you so much VUX, you have just completed my transition from Maya.
User Avatar
Member
19 posts
Joined: 11月 2014
Offline
Hello everyone! How to write this down?
User Avatar
Member
19 posts
Joined: 11月 2014
Offline
I mean how to make the type of radial menu dependent on the type of geometry chosen?
Thanks in advance for any reply.
  • Quick Links