Search - User list
Full Version: How to set default value for transform parameter?
Root » Technical Discussion » How to set default value for transform parameter?
jerry7
Hi,

I noticed that the Light Object has a non-trivial default transform parameter value.
How to make it in my Object HDA?

Thanks!
tamte
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
jerry7
I saw the Light Object HDA's transform parameters are greyed out and can't be edited.
How does it set the expression?
ubietyworld
jerry7
I saw the Light Object HDA's transform parameters are greyed out and can't be edited.
How does it set the expression?

Did you end up figuring this out? I'm running into the same issue.
ubietyworld
Ended up just using the OnCreate script to inject the default values every time the node is created. No idea why the locked down tx ty tz and rx ry rz so that you can't just create defaults like any other parameter.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB