0
$\begingroup$

Am learning animation nodes.

Within animation nodes, I would like to use keyframes to animate the value of a float number, but the keyframes are not having any effect.

To try this I right click on the float value and first 'add to keying set' then 'add keyframe'

it seems to work because no errors are reported and the value changes color.

But when I play the animation the keyframe seems to have no effect. Screenshot below shows the nodes and my attempt to enter the keyframe. (the idea is the float number then is used to place an object at a location).

Any suggestions to make the keyframe actually work are most welcome.

thanks, Matt

nodes

$\endgroup$
2
  • 1
    $\begingroup$ Hm. Not sure if you can animate values INSIDE of Animation Nodes. You could just add an empty to your scene, then keyframe the empty X location (a float), then use AN object transform input to use the value from the empty $\endgroup$
    – zippy
    Commented May 8, 2020 at 23:41
  • 1
    $\begingroup$ Thanks that worked!! I had the idea you could animate inside the nodes because it seems to be available to do that on the right-click menu, and the color changes after you add the keyframe, and so thought maybe there was way. But the keyframe markers never appeared on the timeline. The method you suggested is a great solution! $\endgroup$
    – MattG
    Commented May 9, 2020 at 18:42

1 Answer 1

1
$\begingroup$

You can use Delay Time and Animate Float node in this case.

enter image description here

Another Method:

Create an custom property to a object(in this example Cube) and keyframe the value. then access it's value inside AN. You can use Object Attribute Input node to do this.

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Can you detail why this works? $\endgroup$
    – Kirbinator
    Commented May 9, 2020 at 19:16
  • $\begingroup$ thanks and that is a good suggestion - I tried delay time and animate float - and yes it works but, unless i'm missing some options, i wasn't able to design enough control into the system to do what I wanted. I need to animate a float variable to increase and decrease in various profiles - which are well suited for keyframes - but with the blocks available within AN i could only add a delay offset and choose among a few monotonic profiles (eg linear, segments of sines, etc). $\endgroup$
    – MattG
    Commented May 9, 2020 at 20:27
  • $\begingroup$ @MattG I have added another method. $\endgroup$ Commented May 10, 2020 at 6:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .