Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Single animation controller for multiple material parameters

rpardridge
Participant

Single animation controller for multiple material parameters

rpardridge
Participant
Participant

Edit: I think I figured out how to do this with the Reaction Manager

 

I would like to setup something where I have a single controller that affects multiple material parameters.

 

For example, let's say I have 5 different materials and I want to animate the Emission amount. I can do this by animating all 5 individually but that is a bit time consuming, especially if I want to change it around later.

 

What I am thinking is that I would setup something (I guess via script?) where I can just move a dummy object along the x-axis, and the script links the x-axis position difference to each material's Emission amount. Then I can just work in the curve editor on the dummy object x-axis position animation, and it will propagate to all 5 materials' emission amount.

 

I am guessing I need to do some scripting to make this happen, or maybe there's a simpler solution already available?

 

Any help appreciated thanks!

 

0 Likes
Reply
455 Views
2 Replies
Replies (2)

10DSpace
Advisor
Advisor

@rpardridge 

 

You can do this pretty easily with wire parameters dialog (Animation>Wire Parameters>Wire Parameters Dialog) by wiring the X position of the dummy to the Emission amount of each of the five object's materials.  As you can see below I added a scaling factor of 0.01 to control/expand the range of x position influence on emission amount.  I  also set each material to a different emission color.  You can also set different scaling factors for each material if you want to vary the influence for each material.

 

10DSpace_0-1647059583421.png

 

domo.spaji
Advisor
Advisor

In Slate Mat. Editor open "Controllers" group, "drag" Bezier Float and connect it to all mat. Emission (amount)

 

Or...

 

In Curve Editor copy one material Emission Ctrler and paste it as instance  to others

...

0 Likes