Unable to convert: [] to type: Float
Hi, I'm really new to 3DSMax scripting and I have a real beginner question. My problem is that I can't figure out how to convert a value into a Float. In my example I created a 2 lines ms script:
x = [0.5,0.5,0.5]
x as Float
That's all.
When running the script 3DSMax shows the following message error:
--Unable to convert [0.5,0.5,0.5] to type: Float
Does anyone have an idea what I'm doing wrong?
Many thanks in advance,
Ewok
Comments
How you will write
How you will write [0.5,0.5,0.5] as float?
x[1] as float will return 0.5
x[2] as float will return 0.5
x[3] as float will return 0.5
but, you can't convert [0.5,0.5,0.5] to float because there are 3 numbers, not one.
Also, x[1] = 0.5 is a float and there is no need to convert it to float.
Tools and Scripts for Autodesk 3dsMax