Script a spiral
Posted: Fri Dec 05, 2008 10:40 pm
Jv, this thread is actually directed to you as aerodynamics- and maths-wiz, I think you're the perfect person to help me.
I'd like to decorate a christmas-tree (it's the time of year!) but for that I would need to individually place all lights at the right place on the tree. But the script needs to be dynamic, so I give the values, the script does the rest.
I know it's something with the cosine and the sine but I suck at maths to much too know what. I feel that these days they don't teach you the full use of certain math functions or methods. These things can be very useful!
I can get the measurements of the tree (and input/calc those because it's needs to be dynamic)
Top height: 440.00
Base height: 140
Base width: 120
Top width: 20
Origin: local.tree.origin or ( 228 -341 0 )
I can calculate those measurements if the scale of the tree changes no problem. But how do you make 1 / 2 spirals (would be a sine one and a cosine one).
I have your math functions script, I think the latest and complete version (5 kb).
I'd like to decorate a christmas-tree (it's the time of year!) but for that I would need to individually place all lights at the right place on the tree. But the script needs to be dynamic, so I give the values, the script does the rest.
I know it's something with the cosine and the sine but I suck at maths to much too know what. I feel that these days they don't teach you the full use of certain math functions or methods. These things can be very useful!
I can get the measurements of the tree (and input/calc those because it's needs to be dynamic)
Top height: 440.00
Base height: 140
Base width: 120
Top width: 20
Origin: local.tree.origin or ( 228 -341 0 )
I can calculate those measurements if the scale of the tree changes no problem. But how do you make 1 / 2 spirals (would be a sine one and a cosine one).
I have your math functions script, I think the latest and complete version (5 kb).
