Script Accessible Floats
#1
If I define a script-accessible float in the script operator's Floats rollout, how do I access it in the script? I get the error message, "The name 'float01' does not exist in the current context," when i try to use the variable 'float01' in the script.

I'm on v1.00002.

Thanks!
  Reply
#2
Code:
GetFloat("float01");
//or
GetFloat("float01", frame); //if you want to get the value at a specific frame, assuming you've added animation keys to the spinner

It's all in the API Smile
  Reply
#3
(03-17-2022, 02:18 PM)tyFlow Wrote:
Code:
GetFloat("float01");
//or
GetFloat("float01", frame); //if you want to get the value at a specific frame, assuming you've added animation keys to the spinner

It's all in the API Smile

I thought I tried that. I must have made a mistake somewhere. That does, in fact, work. Haha. 

Thanks again!
  Reply


Forum Jump: