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

@@ -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