script (MEL) |
Only available in
MEL |
createMotionField
|
In categories: Effects, Fluids |
Go to: Synopsis. Return value. MEL
examples.
createMotionField
This command creates a force that pushes a fluid based on the
motion of an object. One selects the objects that one wishes to
push the fluid with and the fluids one wishes to affect. At least
one fluid and one non-fluid must be selected. One will not see an
effect until the object is animated. CreateMotionField creates a
drag field for each object and sizes the volume boundary of the
force to be a bit larger than the object. The drag field has
inheritVelocity enabled, which causes it to drag relative to the
movement of the field. Adjusting the scale and volume shape of the
drag field can help to achieve the best effect. If one collides the
fluid with the object,then it may be good to increase the drag
field size, as the colliding voxels have all velocity damped out.
None
Variable Name |
Variable Type |
Description |
|
|
None. |
// Create a fluid with emitter
Create2DContainerEmitter;
// Create an animated sphere
sphere;
move -r 3 3 0;
setKeyframe;
currentTime 100;
move -r -6 -6 0;
setKeyframe;
select -r fluidShape1 nurbsSphere1;
createMotionField;