Previous topicNext topic

Animating Path for an object ?

Questions, comments, feedback, etc.
Post Reply
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Animating Path for an object ?

Post by Slavi »

Hi Team,

I am in a bit of a pickle (RICK!) ;) and I was hoping that someone can help me.

I need to make an "energy effect", that travels around the wall and I need to animate it so it goes from Possition1 to Possion2 to Possition3:
Magic.jpg
Magic.jpg (26.75 KiB) Viewed 6460 times
The trick here is that I will know the coordinates (X1:Y1,X2:Y2,X3:Y3) just before the event statrs, so I need to have it pre-made somehow ?

I have the energy effect ready and I guess I need to use Traslate in some Magic-al ;) way... Any suggestions ? Also, IF possible I want to avoid linear travel between the possitions, so it seem more natural...

Any advise would be highly appreaciated!

Regards,
S.
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Animating Path for an object ?

Post by Sadler »

You could try recording midi somehow that would include the path and easing you require and use that to control the position. I couldn't find any way to convert a spline to midi.

But, perhaps Iannix might be able to do it: https://www.iannix.org/en/whatisiannix/

Finally, if you have a list of x values and a list of y values you could use these in an Expression modifier I think to iterate over a Vector (array). I've so far only had success with simpler constructs.
https://github.com/ArashPartow/exprtk/b ... readme.txt

I'm not 100% sure about any of these but if you have any success, please report back to the forum.

So another option I thought of after looking at your image again is using a simpler Expression with just three data points and Smooth between them.
Here's a comp to demonstrate:
translation_coords.magic
(2.4 KiB) Downloaded 383 times
You can adjust the three positions using Globals.
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Re: Animating Path for an object ?

Post by Slavi »

So another option I thought of after looking at your image again is using a simpler Expression with just three data points and Smooth between them.
Here's a comp to demonstrate:
translation_coords.magic
Sadler you are a rock star! Thank you!!!

That's exactly what I needed!

My project has to be ready in a couple of days. I will post the results here.

Thank you once again!

Regards,
S.
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Animating Path for an object ?

Post by Sadler »

My project has to be ready in a couple of days. I will post the results here.
So, how did it go? Curious to know how you used the technique.
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Re: Animating Path for an object ?

Post by Slavi »

Hi Sadler,

Sorry for the delay. The event video just came out yesterday :) .

I did what I called "art mapping" where we made an exibition of mandala paintings in a gallery. The paintings were possitioned on X1:Y1, X2:Y2, etc. On top of the original mandala paintings I would project a digital version of the mandalas + maginifying sharder.
My goal (that I've managed to do thanks to your precious help!!!) was to have each digital mandala on top of the real ones and the magnifying shader to jump between them.
Here is the full video:
https://www.youtube.com/watch?v=Kz7erzp ... e=youtu.be

At exactly this moment https://youtu.be/Kz7erzp83TQ?t=30 you can see the set up. I hope I get some more footage from the cameraman so I can make my own video soon.

On top of everything we had live music synced with the show :).

Thank you once again for the fast and on point help!!!
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Re: Animating Path for an object ?

Post by Slavi »

Sadler wrote:
My project has to be ready in a couple of days. I will post the results here.
So, how did it go? Curious to know how you used the technique.
There you go. It's raw footage by still you get the idea:
https://www.youtube.com/watch?v=OBCJTd1 ... e=youtu.be

Thank you one again! I wouldn't have made it without your help. I need to buy you a drink :)
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Animating Path for an object ?

Post by Sadler »

That sounds like a hang drum. Thanks for posting the footage, it was good to see what you did with it. Your efforts are heading towards projection mapping albeit simple and still on a 2d canvas. There's plenty of creative scope for your next creation.
Post Reply