Skip to content

Commit

Permalink
Fix "Screen-Space Transform Bake" tool
Browse files Browse the repository at this point in the history
'range()' is considered a different type to lists or tuples, and failed
the type checking in
'mmSolver.utils.animcurve.create_anim_curve_node_apione'.
  • Loading branch information
david-cattermole committed Apr 6, 2023
1 parent eb59a31 commit e136e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/mmSolver/tools/screenspacetransform/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main():
return

start_frame, end_frame = utils_time.get_maya_timeline_range_inner()
times = range(start_frame, end_frame + 1)
times = list(range(start_frame, end_frame + 1))

created_loc_tfms = []
for node in nodes:
Expand All @@ -83,13 +83,13 @@ def main():
step = 3

plug = loc_tfm + '.translateX'
values_x = values[0:stop:step]
values_x = list(values[0:stop:step])
animfn_x = anim_utils.create_anim_curve_node_apione(
times, values_x, node_attr=plug
)

plug = loc_tfm + '.translateY'
values_y = values[1:stop:step]
values_y = list(values[1:stop:step])
animfn_y = anim_utils.create_anim_curve_node_apione(
times, values_y, node_attr=plug
)
Expand Down

0 comments on commit e136e5d

Please sign in to comment.