|
33 | 33 | * interpolation="linear", |
34 | 34 | * ) |
35 | 35 | * |
36 | | - * TODO: Add a "return result" flag, that will not modify the actual |
37 | | - * animation curves, but will instead output the computed result |
38 | | - * in the command's return value. This allows us to analyse the |
39 | | - * anim curve but process the output in Python. |
40 | | - * |
41 | | - * Example usage (Python): |
42 | | - * result = maya.cmds.mmAnimCurveSimplify( |
43 | | - * "outputAnimCurve", |
44 | | - * returnResult=True, |
45 | | - * controlPointCount=5, |
46 | | - * distribution="uniform", |
47 | | - * interpolation="linear", |
48 | | - * ) or [] |
49 | | - * keyframe_count = len(result) / 2 |
50 | | - * |
51 | | - * # Get X axis values from result. |
52 | | - * values_x = [] |
53 | | - * for i in range(keyframe_count + 1): |
54 | | - * values_x.append(result[i]) |
55 | | - * |
56 | | - * # Get Y axis values from result. |
57 | | - * values_y = [] |
58 | | - * for i in range(keyframe_count + 1): |
59 | | - * index = keyframe_count + i |
60 | | - * values_y.append(result[index]) |
61 | 36 | */ |
62 | 37 |
|
63 | 38 | #include "MMAnimCurveSimplifyCmd.h" |
|
113 | 88 | #define INTERPOLATION_VALUE_CUBIC_NUBS "cubic_nubs" |
114 | 89 | #define INTERPOLATION_VALUE_CUBIC_SPLINE "cubic_spline" |
115 | 90 |
|
116 | | -// When true, don't modify the animCurve, just return the results. |
| 91 | +// When true, don't modify the animCurve, just return the |
| 92 | +// results. This allows users to analyse the anim curve but process |
| 93 | +// the output in Python. |
117 | 94 | #define RETURN_RESULT_ONLY_FLAG_SHORT "-rro" |
118 | 95 | #define RETURN_RESULT_ONLY_FLAG_LONG "-returnResultOnly" |
119 | 96 |
|
|
0 commit comments