Go to: Synopsis. Return value. Keywords. Python examples.
truncateHairCache()
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
truncateHairCache is undoable, queryable, and editable.
This command sets the end time of a hair cache to the current time. If the current time is less than the end time of the cache, the cache is truncated so that only the portion of the cache up to and including the current time is preserved.None
In query mode, return type is based on queried flag.
import maya.cmds as cmds # Truncate a hair cache that has a start time of 1 # and an end time of 25 so that only the first 10 # frames are preserved and the end time of the # cache is set to 10. # cmds.currentTime( 10 ) cmds.truncateHairCache()