You can use MEL commands to automate routine grooming task or customize the way you handle interactive grooming splines in your production pipeline.
xgmSplineQuery
- -listSplineDescriptions;
- Lists all the descriptions, the result would be: description1 description2.
- -listSplineDescriptions -long;
- Lists the long name of all the descriptions, the result would be: |description1 |description2.
- -isSplineDescription descriptionNode;
-
Determines if the node is a spline description.
- -splineCount descriptionNode;
- Gets the spline count of the specified description.
- -videoMemoryDedicated;
- Gets the total available GPU memory.
- -videoMemoryUsed;
- Get the GPU memory which is used by all the descriptions in scene.
- -videoMemoryAvailable;
- Gets total GPU memory used by the selected description(s).
xgmSplineSelect
- - convertToFreeze
- Freezes hairs in the selected description.
- - replaceBySelectedFaces
- Replaces currently bound faces with the selected faces.
xgmSplineApplyRenderOverride descriptionNode
Overrides the XGen rendering in the viewport to use different density from end renderer.
xgmExportSplineDataInternal
Lets you export all the description data, which is stored in the Out Render Data attribute of the xgmSplineDescription node, to a specified file using the
-output flag. For example:
xgmExportSplineDataInternal -output "D:/XGenAPI/test.txt" description1_Shape.outRenderData;