script (MEL) |
Only available in
MEL |
nClothVertexEditor
|
In categories: Effects, nDynamics |
Go to: Synopsis. Return value. MEL
examples.
nClothVertexEditor
This opens an editor that allows one to easily edit per vertex
nCloth values by selecting vertices and editing values directly
with a slider, rather than by using the paint tool. After running
this a small window should appear. Select vertices on an nCloth
then set the desired vertex attribute in the window. The slider
will show the current value for those vertices which you can then
change. If desired one can also randomize the values using the
randomization slider. Tip: drag the string "nClothVertexEditor"
onto the shelf so that in future you can simply click on the shelf
button to bring up the editor. Example Use: Create a poly plane,
make it nCloth, then type nClothVertexEditor. Select a couple of
cvs, set the attribute to "inputAttract" and the value to 1.0. The
cloth should fall except for the selected cvs, which are now
attracting to input mesh. This is similar to a transform
constraint. Select some more cvs, make the attribute "wrinkle" and
edit the slider value to displace the rest position of the cvs.
Note how with wrinkle selected the slider range goes from -1 to 1.
This makes it possible to displace on both sides of the surface.
You can select a large block of cvs and increase the randomization
to make the surface lumpy. Note that depending on the size of you
mesh you may need to also adjust the wrinkleMapScale on the nCloth
node to set the min/max wrinkle displacement. The values one can
set range from 0-1 for all attributes except wrinkle, which goes
from -1 to 1. The per vertex values are multipliers of the same
named attributes on the nCloth node. Thus for more stretch
resistance per vertex than 1.0 increase the stretchResistance
attribute on the nCloth node.
None
Variable Name |
Variable Type |
Description |
|
|
None. |
nClothVertexEditor;