How do I use one expression to control multiple objects?

How do I use one expression to control multiple objects?

Anonymous
Not applicable
1,915 Views
1 Reply
Message 1 of 2

How do I use one expression to control multiple objects?

Anonymous
Not applicable

I'm looking for guidance to do something I somehow thought would be easy. 

 

I'm modeling a piece of machinery, one of those loading deck conveyors made of rollers. Mine is semi-circular. So I created a pipe object, duplicated it 80 times with a Y rotation offset, and now have my conveyor bed. What I want is to have each roller roll. I selected one of the rollers and created a Z rotation expression, time*100, and that works fine. But I can't figure out -- short of recreating the expression 79 more times -- how to get the other rollers to move in unison around their own horizontal axes. I'd give in and copy the expression if I thought I could then modify it down the line as the model gets closer to completion. What I want is one controller with an attribute that tells all the rollers to roll and at what speed. (I'm pretty new to Maya and if this involves a script, be gentle.) 

 

Thanks for any advice.

0 Likes
1,916 Views
1 Reply
Reply (1)
Message 2 of 2

mspeer
Consultant
Consultant

Hi!

 

A) Use Node Editor to connect the same utility node to rotation of all objects. Then apply expression to utility node.

 

B) Use MASH to create and control all objects.

0 Likes