Hi,
I’m trying to incorporate a curve script attribute into one of my scripts.
I’ve been trying to find documentation about how to set default values for a curve, but I can’t seem to find any info or figure it out…
MyScript.attributes.add('somecurve', { type: 'curve', curves: ["TheCurve"], title: "The Curve" });
how can I add a default value of -5 at time stamp 0 and 5 at time stamp 1?
Hi, thanks I know how to use the console.
I also know the values I want to set and I also read the documentation, so I’ve seen the function “add”.
This is not my question, my question is how to set keys as default values when declaring a curve script attribute.
Hi @Dinkelborg_At_C4Real, I’m afraid you can’t set default values on a curve set attribute at this time although it is something that is on our list todo. Sorry
It seems to work for me. It looks like there is a little bug where if you have the Entity selected and you change the names of the curves in your script and reparse the script, the names in the UI don’t change until you re-select the Entity. Is that what happens for you? (reminder that you need to reparse the script if you make changes to its attributes).