2
$\begingroup$

I have a simple scene with a cube going upwards. The cube has emission material that changes colour (blinks) based on the cube's z-location (this is done through animation nodes). I would like to bake the blinking effect into the material, but I was unable to figure it out so far. I'm using the "Set Keyframes" nodes with custom property set to emission color data path but I get "Could not set keyframe" error in the Set keyframes node. Is it possible to bake such animation with AN? enter image description here

$\endgroup$
4
  • $\begingroup$ Does it have to be animation nodes to animate the shader or could it be also an animated shader? $\endgroup$
    – Chris
    Commented Jun 30, 2021 at 17:45
  • $\begingroup$ @Chris it has to be done through animation nodes as this is just an example of a more complicated effect. $\endgroup$
    – Martin
    Commented Jun 30, 2021 at 18:48
  • $\begingroup$ @Gorgious thanks for the suggestion, but the value you proposed also leads to the "could not set keyframe" error $\endgroup$
    – Martin
    Commented Jun 30, 2021 at 18:48
  • $\begingroup$ and an animated color in AN won't help? Can you tell us why do you need this baked to keyframes? $\endgroup$
    – Chris
    Commented Jun 30, 2021 at 19:17

1 Answer 1

2
$\begingroup$

UPDATE

ok, i tried and i think i have a solution for you.

The node setup is this:

enter image description here

Of course you have to update this to "your" material in the expression nodes, but then it works. I deleted the animation nodes tree and the baked animation changes z-Position and changes the material.

result baking:

enter image description here

result after baking with deleted AN-tree:

enter image description here

$\endgroup$
2
  • $\begingroup$ Thank you very much, Chris! Your solution works! $\endgroup$
    – Martin
    Commented Jul 1, 2021 at 15:55
  • $\begingroup$ You are welcome! $\endgroup$
    – Chris
    Commented Jul 1, 2021 at 15:59

You must log in to answer this question.

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