Is there a way to custom-color parameter backgrounds?

   428   3   0
User Avatar
Member
16 posts
Joined: 10月 2021
Offline
I'm making a HDA that has a top-level parameter that dynamically updates based on some changes that the user does. This parameter is merely used as a visualizer and not meant to be used be the end-user (although nothing breaks even if the user touches it).

Purely for beauty's sake, I want to make this parameter more obvious that it is only meant to be used as a visualizer, for example color it with the green background like it is a channel reference. I didn't find anything in the python API that deals with this kind of parameter styling. I tried making a hidden parm that the "visualizer" parameter references but I guess the top-level channel referencing is not saved with with the HDA.

Any help?

Thanks
User Avatar
Member
4858 posts
Joined: 2月 2012
Offline
Hi,

You can lock the parameters and the background will use the locked parameter color which can be customized for all locked parameters.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
9127 posts
Joined: 7月 2007
Online
chilby
I tried making a hidden parm that the "visualizer" parameter references but I guess the top-level channel referencing is not saved with with the HDA.
parameter's default value in HDA can be value, Hscript or Python expression
you can configure it in Channels tab of Type Properties after you select your parameter
in this way your visualizer can be green Hscript or purple Python, in my experience users usually don't touch default expressions so I personally don't lock them, locking prevents them from being updated if the default value or expression changes
Edited by tamte - 2025年2月21日 22:30:36

Attachments:
parameter_default_expression.gif (48.1 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
16 posts
Joined: 10月 2021
Offline
Spectacular, thanks Tomas (& animatrix).
  • Quick Links