Target info¶
API reference¶
Returns skinCluster if provided node name represents skinned mesh. Returns true for shapes that have skinCLuster in their deformation stack, or it’s a skinCluster node itself.
For invalid targets, returns None
- Returns
ngSkinTools data node name for this target
- ngSkinTools2.api.target_info.list_influences(target)[source]¶
List influences in the given skin cluster as InfluenceInfo objects
- Parameters
target (str) – target mesh or skin cluster
- Return type
list[InfluenceInfo]
- ngSkinTools2.api.target_info.add_influences(influences, target)[source]¶
A shortcut for adding additional influences to a skincluster, without impacting existing weights
- Parameters
influences (list[str]) – list of influence paths
target (str) – target mesh or skin cluster
- ngSkinTools2.api.target_info.is_slow_mode_skin_cluster(target)[source]¶
returns true, if ngSkinTools chose to use slow ngSkinTools api for this target. Right now this only happens when skinCluster has non-transform nodes as influences (e.g. inverseMatrix node).
- Parameters
target (str) – target mesh or skin cluster