Notifications
Clear all

[Closed] Script: Nonuniform rotate array ?

First I am using Max 3.1
Second I looked thru the search and found only a little bit.
How can I rotate an object like an array to create tick marks like a watch face BUT have them increase in the rotate by an exponential amount? So that it is not uniform.
Thanks for the help

15 Replies

A quick way to do this is to use a spline and the spacing tool:

Draw an helix spline with no height so that you have the exponential form
then create your reference object go to tools->spacing tool and then pick the spline as path.

even on Max3.1 it should work

When I try this it still spaces the ticks evenly over the spline.
I want something that will increase the degrees a little more each time there is another tick.
ie (all ticks have their point of rotation in the middle of the dial) first tick rotates 1 degree
then the next one rotates 1.5
then the next one rotates 3
then 6
then 10
then 20 etc.
here is an example for you

Is there anyone out there who knows how to do this?
I have tried taking a mel type of idea and I am getting no where.

I’ve an idea, I’ll try this week-end

Thanks orpheo.
I would really appreciate any help.

I’d love a script that did this btw

Just thought I would say that

I can do this, but I need more information.

  1. You say exponential, but in your example it’s more like doubling the value. What shall it be? Is there some specific formula that should be used to determine the rotation factor?

  2. Are the rotation amounts you’re referring to supposed to be absolute or cumulative? In other words, is it 1.5 degrees from the original object, then 3 degrees from the original object, etc., or is it 1.5 degrees from the original object, then 3 degrees from there, etc.?

  3. How do you wish to define the center of the circle? For instance, you could use an object, or you could pick a point on the grid, or enter a radius and allow the center to be chosen arbitrarily. There are any number of ways that this could be done, and I wouldn’t want to have to account for all of them;)

  4. Does it only need to array around the world Z-axis? Or would you prefer that it always be around the axis perpendicular to the active viewport?

  5. Does it need to be strictly circular, or will you require/desire the ability to make a spiral formation?

  6. Should the array stop at 360 degrees? This relates closely to question #5, since a strictly circular array will get messy if you go greater than 360 degrees, whereas a spiral is best achieved with greater than 360.

If I have the answers to these questions, then this should be a relatively simple thing to script. Let me know:thumbsup:

RH

yes

This might sound stupid but can’t you just build all of that into the script and then just give the user options?

That doesn’t sound stupid at all, visualboo. It’s just that that’s a lot more trouble than I’m willing to go to at this time. I was thinking more along the lines of a one-off script so that rgbman could do whatever it is that he needs to do. It could be developed into something more general purpose later on.

RH

Page 1 / 2