Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

dogma
Topic Author
Posts: 2
Joined: Sun May 18, 2008 12:32 pm

### Distribute Layers on a spiral

Hi all,
this is my first message here and first approach to english forum, therefore forgive me some error, please!
Iâ€™d like to know how I can make a card movement in a spiral path as in a video that Iâ€™ve seen here
http://www.lobo.cx/
Itâ€™s the 6th video â€œstone of the kingdomâ€ at 00.56 minutes.
Thanks a lot!

lloydalvarez
Enhancement master
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

### Re: Distribute Layers on a spiral

Hey Dogma,

You can make a layer move in a spiral by moving x on a sine wave, y on a cosine wave and z in time:

``x=Math.sin(time*10)*20;y=Math.cos(time*10)*20;z=time*100;[x,y,z]``

You can adjust the values are you see fit. In x and y the value that is multiplied * time is the frequency and the second value is amplitude.

-Lloyd

Atomic
Posts: 157
Joined: Mon Apr 30, 2007 5:55 am
Location: United States, Ohio

### Re: Distribute Layers on a spiral

To simulate what is in the video you mention, remember to move the layer's achor point to the bottom of the card.
"Up And Atom

No...No

Up And At Them!"

dogma
Topic Author
Posts: 2
Joined: Sun May 18, 2008 12:32 pm

### Re: Distribute Layers on a spiral

Whoaaa! ...it works!!!
but the rotation of layers and the animation of the other cards seem difficult to perform..
mmm.. I'll make some tests in these days
every other information is pleasant
Thank you!! Hvala lepa

### Who is online

Users browsing this forum: No registered users and 4 guests