Go to: Synopsis. Flags. Return value. Related. MEL examples.
cpPanel [-clothName] [-clothShape] [-curveVertices] [-facets] [-name string] [-newStitcher] [-property] [-query] [-resolutionFactor float] [-stitcherName string] [-stitcherResolution float]
cpPanel is undoable, queryable, and editable.
This command creates a panel node from a set of closed curves and optionally creates a new garment (stitcher node) for it. If a panel node is being created, the selection must contain a set of nurbs curves that form a planar closed loop. The curves are not required to be in any order. If a new garment is to be created, the selection can either contain a panel to go into the garment or a set of nurbs curves to form the first panel for the garment.Long name (short name) | [argument types] | Properties | ||
---|---|---|---|---|
-clothShape(-c)
|
|
![]() |
||
|
||||
-clothName(-cn)
|
|
![]() |
||
|
||||
-curveVertices(-cv)
|
|
![]() |
||
|
||||
-facets(-f)
|
|
![]() |
||
|
||||
-name(-n)
|
string
|
![]() |
||
|
||||
-newStitcher(-ns)
|
|
![]() |
||
|
||||
-property(-p)
|
|
![]() |
||
|
||||
-query(-q)
|
|
![]() |
||
|
||||
-resolutionFactor(-rf)
|
float
|
![]() |
||
|
||||
-stitcherName(-sn)
|
string
|
![]() |
||
|
||||
-stitcherResolution(-sr)
|
float
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create a new panel from selection. cpPanel; // Create a new panel from named object (closed curve group). cpPanel nurbsSquare; // Return vertex indices of the cloth that is on panel curve. cpPanel -q -curveVertices; // Return property assigned to selected panel. cpPanel -q -property; // Return name of cloth shape that contains selected panel. cpPanel -q -clothShape; // Return list of facets (indices) that are in panel. cpPanel -q -facets;