How to set default value for transform parameter?

   1092   2   0
User Avatar
Member
645 posts
Joined: Nov. 2013
Offline
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)

User Avatar
Member
8768 posts
Joined: July 2007
Offline
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
User Avatar
Member
645 posts
Joined: Nov. 2013
Offline
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)

  • Quick Links