Help me please
Published on May 10, 2007 By thermalsensor In DesktopX
Hi, i have a problem, i'm doing a clock(just for fun), and i need ti make an entire group rotate respect a point, i mean, i have a circule and some other objects in the edge, i want that all objects rotate around the center of the circule.

I hope somebody can help me.
Comments (Page 1)
2 Pages1 2 
on May 11, 2007
like this? K-Clock
on May 11, 2007
yeah kind of, but in this clock just rotates 2 objects, i want to make something like this but the numbers will be labels, not just one object
on May 11, 2007
aaahhh..... i got nuthin
on May 11, 2007
Thnx anyway.

Somebody please!!!
on May 11, 2007
maybe something here to get you started?
on May 11, 2007
yeah it helps, i think i'm going to do for the hard way!!!

if somebody know how, i'll be gratefull.
on May 11, 2007
Here's a quick basic script that should point you in the right direction. It's based on the Orbit Effectlet for AveDesk.

http://www.sendspace.com/file/bqrkpb
on May 11, 2007
Not sure what you have in mind but DX has a built in script to rotate hours,minutes and seconds. It's called analog clock 3
on May 11, 2007
Not sure what you have in mind but DX has a built in script to rotate hours,minutes and seconds. It's called analog clock 3


Yeah, if the objects are specifically time related then Murex's suggestion is by far the easiest way to go.
on May 11, 2007
The orbs is just what i need!!!!

Thnx SirSmiley
on May 11, 2007
mmmm in a second thought, after analize the code, is similar to a code that i tried
but i need that the object rotate at the same velocity and thats a problem
on May 12, 2007
When you say 'velocity' do you mean specifically related to an actual clock function? eg. hours, minutes, seconds.

If not then what you need to do is adjust the rotation timer. The higher the number will slow it down.

As I played around with this some more, I'm not sure if I made any substantial changes. Anyhoo you can get two new versions. The second one is an example of using multiple objects in the rotation.

Download here --->>>> http://www.sendspace.com/file/5mgia4
on May 12, 2007
When you say 'velocity' do you mean specifically related to an actual clock function? eg. hours, minutes, seconds.

If not then what you need to do is adjust the rotation timer. The higher the number will slow it down.

As I played around with this some more, I'm not sure if I made any substantial changes. Anyhoo you can get two new versions. The second one is an example of using multiple objects in the rotation.

Download here --->>>> http://www.sendspace.com/file/5mgia4

Edit: To adjust the speed also change line 16 under the 'Default Preferences
Code: vbscript
  1. AngularResolution = 60 '180 default
on May 14, 2007
No, i don't mean that.

After mi final exams i'm gonna work in this, i don't have time right now jeje.
on May 17, 2007
Finally!!!!
After finish my final exam of math, i figure out how and here is the function, just are missing some adjustments for displace objects in a same trayectory:

'x = center from left
'y = center from top
'wd = frequency
'r = radius
't = incrementant constant
Function wheel(x,y,wd,r,t)
Dim vp,w
Object.Top=y-r*Cos(wd*t)
Object.Left=x+r*Sin(wd*t)
vp = Sqr(((r*wd*Sin(wd*t))^2)+((r*wd*Cos(wd*t))^2))
w = (vp/r)*(180/3.141592654)
Object.Rotation = (w*t)
End Function
2 Pages1 2