|
List of mel commands.
Most commands do not take any parameters: they use as input the selected objects
or components.
These commands are mostly used interactively.
Command marked with a * take parameters.
Cloth
syCreateCloth
|
Create a cloth from the selected shape.
Return the name of the cloth node.
|
syGetCollideSelf
|
Select the faces for self-collisions on the selected cloth.
|
sySetCollideSelf
|
Set the selected faces for self-collisions on the cloth.
|
*syAddSelfFaces cloth faces
|
Add the faces to the list of self-collisions faces for the cloth.
faces is an array of integers (ex: {1,6,34}).
|
*syRemoveSelfFaces cloth faces
|
Removes the faces from the list of self-collisions faces for the cloth.
faces is an array of integers (ex: {1,6,34}).
|
Forces
*syCreateForce type
|
Creates a force of the specified type. This command is valid for all
forces and constraints.
|
*syConnectForce force cloth
|
Connect the force to the cloth. This command is valid for all
forces and constraints.
Using this command you can connect a force to another cloth. Be careful:
not all forces can be connected to more than one cloth. Any force that makes
reference to the cloth can't be connected to another cloth. You can connect the
following forces to many clothes:
- Gravity
- Damp
- Wind
- Air
This will work also on the following forces, only if you don't use any faces
or vertices of the cloth:
- Collision
- Magnet
|
*syDisconnectForce force cloth
|
Disconnect the force to the cloth. This command is valid for all
forces and constraints.
|
*syIsConnected force cloth
|
Returns 1 if the force is connected to the cloth. Else returns 0.
This command is valid for all forces and constraints.
|
syMagnetSet
|
Attach the selected cloth vertices to the selected magnet.
|
syMagnetGet
|
Selects the cloth vertices attached to the selected magnet.
|
syCreateSew
|
Creates a new sySew node, from the selected cloth vertices. Opens a dialog
asking for the maximum distance between two points.
|
syCreateSpring
|
Creates a new spring node, from the two selected cloth vertices.
|
Constraints
syCreateNail
|
Creates a new nail node, using the selected cloth vertices.
|
syGetNail
|
Selects the cloth vertices from the selected nail.
|
sySetNail
|
Set in the selected nail, the selected cloth vertices.
|
*syAddNail nail vertex_id x y z
|
Add a new vertex to the nail, at position (x,y,z).
|
*syCreatePin
|
Creates a new pin node, using the selected cloth vertices, and the selected shape.
|
syGetPin
|
Selects the cloth vertices from the selected pin.
|
sySetPin
|
Set in the selected pin, the selected cloth vertices.
|
Collisions
syCreateCollider
|
Creates a new syCollide node from the selected cloth and shape.
|
syGetCollideFaces
|
Select the faces of the selected collider.
|
sySetCollideFaces
|
Set the faces of the selected collider.
|
syGetCollideVtx
|
Select the cloth vertices of the selected collider.
|
sySetCollideVtx
|
Set the cloth vertices of the selected collider.
|
*syAddCollideFaces collide faces
|
Add faces to the collide node.
faces is an array of int (ex: {3,6})
|
*syRemoveCollideFaces collide faces
|
Remove faces from the collide node.
faces is an array of int (ex: {3,6})
|
*syAddCollideVtx collide vertices
|
Add vertices to the collide node.
vertices is an array of int (ex: {3,6})
|
*syRemoveCollideVtx collide vertices
|
Remove vertices to the collide node.
vertices is an array of int.
|
State
syStateSetFlex
|
Set the initial state on the select cloth from its current shape.
|
syStateSetMesh
|
Set the initial state on the select cloth from the selected shape.
|
syStateSetDefaultPosition
|
Reset the initial state to the default position.
|
syStateSetDefaultVelocity
|
Reset the initial state to the default velocity (=0).
|
Planes
*syPlaneAddForce plane force
|
Restrict the force to one side of the plane.
|
*syPlaneRemoveForce plane force
|
Remove the plane restriction on the specified force.
|
Cache
*syCacheWrite shape file
|
Saves the shape vertices in a cache file.
|
*syCacheRead shape file
|
Reads the shape vertices from the cache file.
|
syCacheCreate
|
Creates a new syCache node from the selected shape.
|
Live Mode
syLiveStart
|
Start the simulation on the selected cloth.
|
syLiveStop
Utilities
*getArray node.attribute
|
Returns the content of an array attribute (float or int).
To set the array, use setAttr -type ....
|
.
|