3ds Max C++ API Reference
Loading...
Searching...
No Matches
keyreduc.h File Reference
#include "coreexp.h"
#include "maxheap.h"
#include "interval.h"

Classes

class  KeyReduceStatus
 

Macros

#define DEFULAT_KEYREDUCE_THRESHOLD   (0.5f)
 

Enumerations

enum  KeyReduceResult : int { KEYREDUCE_ABORT = -1 , KEYREDUCE_STOP = 0 , KEYREDUCE_CONTINUE = 1 }
 

Functions

CoreExport KeyReduceResult ApplyKeyReduction (Control *cont, Interval range, float thresh, TimeValue step, KeyReduceStatus *status)
 Attempts to delete keys that lie within the given time range.
 

Macro Definition Documentation

◆ DEFULAT_KEYREDUCE_THRESHOLD

#define DEFULAT_KEYREDUCE_THRESHOLD   (0.5f)

Enumeration Type Documentation

◆ KeyReduceResult

Enumerator
KEYREDUCE_ABORT 
KEYREDUCE_STOP 
KEYREDUCE_CONTINUE 
26{
27 KEYREDUCE_ABORT = -1, // Stops processing and undoes any key reduction
28 KEYREDUCE_STOP = 0, // Stops processing, but keeps any reduction done so far
29 KEYREDUCE_CONTINUE = 1, // Keeps going.
30};
@ KEYREDUCE_CONTINUE
Definition: keyreduc.h:29
@ KEYREDUCE_ABORT
Definition: keyreduc.h:27
@ KEYREDUCE_STOP
Definition: keyreduc.h:28

Function Documentation

◆ ApplyKeyReduction()

CoreExport KeyReduceResult ApplyKeyReduction ( Control cont,
Interval  range,
float  thresh,
TimeValue  step,
KeyReduceStatus status 
)

Attempts to delete keys that lie within the given time range.

Parameters
contThe controller whose keys are to be reduced.
rangeThe time range within which to delete keys.
threshAfter the key reduction, the controller's values at each step are guaranteed to be within this distance from their original values.
stepThe controller will be sampled in steps of this time increment.
statusThe callback object used to report the key reduction status and control continued processing.