Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Maya Dynamics
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya dynamics topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fluid emitter controlled emission?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
328 Views, 1 Reply

Fluid emitter controlled emission?

Is there any way to control fluid emitter emission rate like:
If something is greater than the height of other person then emission rate is 200 else 0.
I am trying to control emission rate on basis of height of locater.

 

till now i am trying:


vector $position=nurbsSphereShape1.worldPosition ;
if ($position.y > locator1.translateY)
fluidEmitter.rate = 200;
else
fluidEmitter.rate = 0;

 

Where emitter is used as surface emission from sphere

Tags (1)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

first for the objects you dont have something called worldPosition as you mentinoed in your expression..

it would be like this

 

vector $sphPos = <<sphere.tx, sphere.ty, sphere.tz>>;

 

if ($sphPos.y > locator1.translateY)
fluidEmitter.rate = 200;
else
fluidEmitter.rate = 0;

 

that is the correct way to write your expression dude. but for the rest i didn't get the idea yet of what you are trying to do.. sorry

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report