This command sets the end time of a fluid 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. In query mode, return type is based on queried flag.
Derived from mel command maya.cmds.truncateFluidCache
import pymel.core as pm # Truncate a fluid 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. # pm.currentTime( 10 ) # Result: 10.0 # pm.truncateFluidCache()