How to show parameter value in Network editor?
4160 12 4- raincole
- Member
- 447 posts
- Joined: Aug. 2019
- Offline
- tamte
- Member
- 8579 posts
- Joined: July 2007
- Offline
raincolethat text shows content of descriptive parameter
Can I have my own HDA to do the same?
in HDA you can set which parm value will show there by setting its path in Type Properties/Nodes/Descriptive Parm
for more complex info showing multiple values or custom formatting you can use hidden string parameter whose text is generated by expression as a descriptive parm
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- raincole
- Member
- 447 posts
- Joined: Aug. 2019
- Offline
tamteraincolethat text shows content of descriptive parameter
Can I have my own HDA to do the same?
in HDA you can set which parm value will show there by setting its path in Type Properties/Nodes/Descriptive Parm
for more complex info showing multiple values or custom formatting you can use hidden string parameter whose text is generated by expression as a descriptive parm
Thank you very much! I can finally see which color space I'm converting to without digging into the subnet.
Edited by raincole - Jan. 8, 2022 12:20:48
- BabaJ
- Member
- 2042 posts
- Joined: Sept. 2015
- Offline
- animatrix_
- Member
- 4521 posts
- Joined: Feb. 2012
- Offline
@BabaJ: I use it in many of my OTLs. For example:
then in Python module:
hou.phm().summary()
then in Python module:
def summary(): this = hou.pwd() return this.evalParm("attributes")
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- raincole
- Member
- 447 posts
- Joined: Aug. 2019
- Offline
BabaJ
@raincole
Would you care to show the python syntax used in the Descritpive Parm field that gets it to show up on the hda node?
I've tryied doing a search and did come across a few examples that touched on the topic, but I can't seem to get it to work for myself.
Sure:
In the "Defaults" field:
ch('fromspace') + '\n' + ch('tospace')
Obviously, @animatrix_ 's method is more generic.
Edited by raincole - Jan. 9, 2022 12:03:57
- BabaJ
- Member
- 2042 posts
- Joined: Sept. 2015
- Offline
Thanks animatrix and raincole.
I haven't tried animatrix's solution yet because I was interested in what Tamte had said, so am trying to do raincoles method.
I still can't seem to get it. The first puzzle to me is your parm you used. I've circled the icon red. There is no icon like that in my drop down parm list. So I am guessing the icon changes to that once it is assigned as a descriptive parm.
That took me to Tamte's comment and I've underlined in red where from what I guess should be the reference to the node and parm that is going to be used - placed here. But I can't seem to enter anything that makes this work.
I haven't tried animatrix's solution yet because I was interested in what Tamte had said, so am trying to do raincoles method.
I still can't seem to get it. The first puzzle to me is your parm you used. I've circled the icon red. There is no icon like that in my drop down parm list. So I am guessing the icon changes to that once it is assigned as a descriptive parm.
That took me to Tamte's comment and I've underlined in red where from what I guess should be the reference to the node and parm that is going to be used - placed here. But I can't seem to enter anything that makes this work.
- tamte
- Member
- 8579 posts
- Joined: July 2007
- Offline
BabaJIt's just the parm name so putting _description in there should work
That took me to Tamte's comment and I've underlined in red where from what I guess should be the reference to the node and parm that is going to be used - placed here. But I can't seem to enter anything that makes this work.
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- raincole
- Member
- 447 posts
- Joined: Aug. 2019
- Offline
I still can't seem to get it. The first puzzle to me is your parm you used. I've circled the icon red. There is no icon like that in my drop down parm list. So I am guessing the icon changes to that once it is assigned as a descriptive parm.
The icon changes if you set it to invisible. It doesn't really matter tho, you can leave it visible. I set it to invisible so the Parameter panel looks cleaner.
- BabaJ
- Member
- 2042 posts
- Joined: Sept. 2015
- Offline
- HristoVelev
- Member
- 59 posts
- Joined: Nov. 2017
- Offline
- BabaJ
- Member
- 2042 posts
- Joined: Sept. 2015
- Offline
HristoVelevFor what I was trying, my 'problem' was that the parameter was invisible. As soon as I changed that, it worked.
I can't seem to get it to work either - it doesn't evaluate the expression - I see the expression and not the result. That even after I change from literal to hscript/python in the channels tab.
- HristoVelev
- Member
- 59 posts
- Joined: Nov. 2017
- Offline
-
- Quick Links