Change the style of Input Connections like Switch SOP does

   217   0   1
User Avatar
Member
14 posts
Joined: March 2022
Offline
I'm developing a custom node featuring multiple inputs, aiming to replicate the input connection behavior of the Switch SOP. This involves visually distinguishing the active connection with a solid line while displaying others with dashed lines. Despite consulting the documentation, I couldn't locate any Python methods offering this functionality. The only hint I found was the "Is Reference" property within the HDA Preferences dialogue, which, when checked, renders the connection dashed. Perhaps there's a way to programmatically set the flags for "Is Reference" to achieve this effect.

Attachments:
2024-05-11_21-07-05.PNG (42.7 KB)
2024-05-11_21-07-41.PNG (100.3 KB)

  • Quick Links