How to set default value for transform parameter?
1092
2
0
jerry7
Member
645 posts
Joined: Nov. 2013
Offline
May 20, 2023 7:10 p.m.
Hi, I noticed that the Light Object has a non-trivial default transform parameter value. How to make it in my Object HDA? Thanks!
Edited by jerry7 - May 20, 2023 19:11:26
Attachments:
lock.png (19.0 KB)
tamte
Member
8768 posts
Joined: July 2007
Offline
May 20, 2023 7:57 p.m.
similarly to storing the literal default value, just change from Literal to Hscript in this case, or optionally Python if you want it to default to Python expression
Attachments:
hscript_default_value.gif (32.8 KB)
Tomas Slancik FX Supervisor Method Studios, NY
jerry7
Member
645 posts
Joined: Nov. 2013
Offline
May 22, 2023 12:13 a.m.
I saw the Light Object HDA's transform parameters are greyed out and can't be edited. How does it set the expression?
Attachments:
light.png (83.2 KB)