Cloth FAQ

To be able to create Apex files, you will need to install the Nvidia Physx DCC plugin. The plugin for various Maya versions can be found here and is now maintained by Golaem. Please get in touch with our support if your Maya version is not listed here. Notice that within Linux, you may have various errors when the plugin is loaded / unloaded in Maya: this is expected and does not have any impact on the cloth configuration.

Notice: in order to install the Physx plugin, you need to set one environment variable for Windows (MAYA_MODULE_PATH) and two for Linux (MAYA_MODULE_PATH and LD_LIBRARY_PATH) as below:

  • MAYA_MODULE_PATH=[PhysxPluginDir]
  • LD_LIBRARY_PATH=[PhysxPluginDir]/ContentCore:[PhysxPluginDir]/ContentCore/PhysX_3.X:${LD_LIBRARY_PATH}
It usually means that one of your bone has a scale on it. Please check if it's the case.

Here is the mel script to make sure no scale is applied on any bone:

string $joints[] = `ls -type "joint" -long`;
print $joints[0]; //the first joint
* loop through all objects */
string $joint;
for ( $joint in $joints ) {
setAttr ($joint + ".scaleX") 1;
setAttr ($joint + ".scaleY") 1;
setAttr ($joint + ".scaleZ") 1;

When loading / unloading the Physx For Maya plugin under Linux, you may end up with cryptic error messages in the Script Editor such as

// Error: ...source "/apps/Linux.x86_64/physX-3.4/PhysXForMaya2020/plug-ins/ // // Error: Line 1.170: Syntax error //

Noticed that those errors can be ignored and do not have any incidence on the plugin usage

Due to hardware limitations, Apex only supports up to 4 bone skinning influences per vertex for its cloth deformation. If more than 4 influences are used in your model, you usually get the following warning message when creating a Apex Cloth within the PhysX plugin:

// Warning: Some vertex use 6 bones for weight (|pPlane1|pPlaneShape1). PhysX only supports 4 at most.

Notice that, this warning does not prevent to save the apx file and use it within Golaem but keep in mind it will only recall the 4 biggest weighting influences when cloth simulation will be computed. This does not affect the vertices which are not cloth simulated.

If both the Physx for Maya plugin and the Golaem plugins are loaded within the same Maya session under Linux, you will experience some crashes. This is due to some conflicts between Golaem embedded version of Physx and the Physx plugin. We are looking into fixing this asap but in the mean time, please load the plugins in two different Maya sessions as a workaround.