Skip to content

Commit eb83cd2

Browse files
mmAnimCurveSimplify - Remove "return result" TODO
This feature was implemented already, so there's no reason to keep the TODO around.
1 parent f5909aa commit eb83cd2

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

src/mmSolver/cmd/MMAnimCurveSimplifyCmd.cpp

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,6 @@
3333
* interpolation="linear",
3434
* )
3535
*
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])
6136
*/
6237

6338
#include "MMAnimCurveSimplifyCmd.h"
@@ -113,7 +88,9 @@
11388
#define INTERPOLATION_VALUE_CUBIC_NUBS "cubic_nubs"
11489
#define INTERPOLATION_VALUE_CUBIC_SPLINE "cubic_spline"
11590

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.
11794
#define RETURN_RESULT_ONLY_FLAG_SHORT "-rro"
11895
#define RETURN_RESULT_ONLY_FLAG_LONG "-returnResultOnly"
11996

0 commit comments

Comments
 (0)