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?
$\begingroup$
$\endgroup$
4
-
$\begingroup$ Does it have to be animation nodes to animate the shader or could it be also an animated shader? $\endgroup$– ChrisCommented 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$– MartinCommented 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$– MartinCommented 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$– ChrisCommented Jun 30, 2021 at 19:17
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
2
UPDATE
ok, i tried and i think i have a solution for you.
The node setup is this:
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:
result after baking with deleted AN-tree:
-
$\begingroup$ Thank you very much, Chris! Your solution works! $\endgroup$– MartinCommented Jul 1, 2021 at 15:55
-