Go to: Return value. Related commands. Flags. Examples.

Synopsis

cpPanel [flags]

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.

Return value

The panel transform and shape names. If a stitcher node is created, the stither name will also be returned.

Related commands

cpButton, cpSolver, cpCollision, cpProperty, cpTool, cpConstraint, cpSeam

Flags

clothName, clothShape, curveVertices, facets, name, newStitcher, property, query, resolutionFactor, stitcherName, stitcherResolution

Long name (short name)[argument types]Properties
-clothShape (-c) query
This option requires a panel to be selected and returns the name of the cloth shape which contains the panel.
-clothName (-cn) create
This option uses the given name to name the newly created cloth shape and is only used with the -newStitcher option.
-curveVertices (-cv) query
Returns the vertex ids of the cloth mesh that corresponds to the selected curve. Return type is int array.
-facets (-f) query
This option requires a panel to be selected and returns the list of facets that compose the panel.
-name (-n) stringcreate
This option uses the given name when creating a panel.
-newStitcher (-ns) create
This option creates a new panel and also creates a new stitcher. The new panel is connected to the new stitcher. This is how one creates a new garment.
-property (-p) query
This option requires a panel to be selected and returns the name of the property that is currently assigned to the panel.
-query (-q) query
This option requires a panel to be selected and specifies that the command is a query.
-resolutionFactor (-rf) floatcreate
This option assigns the given resolution factor to the panel when it is created.
-stitcherName (-sn) stringcreate
This option uses the given name when creating a stitcher and is only used with the -newStitcher option.
-stitcherResolution (-sr) floatcreate
This option assigns the given resolution as the base resolution of the stitcher when it is created. This option is only used with the -newStitcher option.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

Examples

 // 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;