Updated xg 2d curve filter editor to 1.1

This commit is contained in:
2016-09-01 19:20:57 +02:00
parent a4133052f3
commit 3d1855ad8e
2 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
#
# 3DE4.script.name: Adjust 2D Curve Local Filter
#
# 3DE4.script.version: v1.0
# 3DE4.script.version: v1.1
#
# 3DE4.script.comment: Adjustment of 2d Points positions using 1D Fourier filter on different frames ranges
#

View File

@@ -12,7 +12,6 @@ import math
#init
current_value = tde4.getParameterAdjustCurrentValue()
best_value = tde4.getParameterAdjustCurrentValue()
get_custom_data = tde4.getParameterAdjustCustomParameters()
running = tde4.getParameterAdjustPhaseRunningFlag()
@@ -44,7 +43,10 @@ for frame in range (firstframe, lastframe + 1):
else:
points_to_filter.append(selected_point_position[1])
points_filtered = tde4.filter1D(points_to_filter,current_value,"FOURIER_FILTER")
if len(points_to_filter) >= 3 :
points_filtered = tde4.filter1D(points_to_filter,current_value,"FOURIER_FILTER")
else:
points_filtered = points_to_filter
if (running):
#calculating