Anim8or Community

General Category => General Anim8or Forum => Topic started by: CodeDmitry on May 24, 2017, 02:30:22 pm

Title: how can I swap objects between frames in a scene?
Post by: CodeDmitry on May 24, 2017, 02:30:22 pm
I have three objects, Sphere 1, Sphere 2, and Sphere 3.

Sphere 1: {color: 0xff0000, x: 0, y: 0, z: 0, diameter: 10}
Sphere 2: {color: 0x00ff00, x: 0, y: 15, z: 0, diameter: 10}
Sphere 3: {color: 0x0000ff, x: 0, y: 44, z: 0, diameter: 10}

I want to make a proof of concept animation with 15 frames where

on frames [0, 4], Sphere 1 is showing.
on frames [5, 9], Sphere 2 is showing.
on frames [10, 14], Sphere 3 is showing.
on frames [15, 19], Sphere 2 is showing.

I want no tweening in between.

Problem 1: when I build>add object into scene mode at frame 5, it also appears on all prior frames, something I do not want.
Problem 2: when I edit>hide a selected object, it disappears on prior frames, something I do not want.
Problem 3: when I edit>delete elements a selected object, is is deleted on prior frames, something I do not want.
Problem 4: when I build>add object, then move an existing object to behind the camera, it tweens to move between the two points, something I do not want(I want it to disappear discretely, not move away at linear velocity).

How can I get this done?

Thanks ahead of time.

PS: I found one way to do it by having every object on every frame, but modifying the visibility on each critical frame:
(https://cdn.discordapp.com/attachments/314681059067559939/316959482141868033/b812bc280dc1e897870c8a8b52a1582a.png)

video: https://cdn.discordapp.com/attachments/314681059067559939/316975837251633154/animcolorball.mp4


Is this the only way to accomplish this? because I imagine having 1000+ objects(number of morphing objects * average number of discrete morph steps of each object, eg 3 balls, 10 variations of each ball means 30 objects in each frame) in each frame be problematic.
Title: Re: how can I swap objects between frames in a scene?
Post by: Steve on May 24, 2017, 04:33:35 pm
Problems 1-2:

You need to use the Visibility controller. Double click on an object and in the properties dialog click the "..." button next to "Visible" in the Other Animated Properties section. Then click "Add Key" set the value to 1 to show the object and 0 to hide it. It will be shown//hidden from this frame until the next frame that a key is set with a different value. You can also edit the controller in the track window.

See the controllers (http://www.anim8or.com/learn/manual/8_animation.html#controllers) section in the manual for more information.

The Edit->Hide command is an editing command that allows you to temporarily hide things that are in the way of your work. The Edit->Delete command deletes things from your project.

Problem 4:

The easiest way to do this is to make two keys in the frames before (i.e. 10) and after (i.e. 11) where you want the object to move. Set them to "Corner" in the key properties dialog, and THEN in frame 11 move the object (with animation enabled).

You can also do this with Step keys but you may need to adjust the entering and exiting directions in the Graph Editor to keep your object stable.