Updated xg 2d curve filter editor to 1.1
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 3DE4.script.name: Adjust 2D Curve Local Filter
|
# 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
|
# 3DE4.script.comment: Adjustment of 2d Points positions using 1D Fourier filter on different frames ranges
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import math
|
|||||||
|
|
||||||
#init
|
#init
|
||||||
current_value = tde4.getParameterAdjustCurrentValue()
|
current_value = tde4.getParameterAdjustCurrentValue()
|
||||||
best_value = tde4.getParameterAdjustCurrentValue()
|
|
||||||
get_custom_data = tde4.getParameterAdjustCustomParameters()
|
get_custom_data = tde4.getParameterAdjustCustomParameters()
|
||||||
running = tde4.getParameterAdjustPhaseRunningFlag()
|
running = tde4.getParameterAdjustPhaseRunningFlag()
|
||||||
|
|
||||||
@@ -44,7 +43,10 @@ for frame in range (firstframe, lastframe + 1):
|
|||||||
else:
|
else:
|
||||||
points_to_filter.append(selected_point_position[1])
|
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):
|
if (running):
|
||||||
#calculating
|
#calculating
|
||||||
|
|||||||
Reference in New Issue
Block a user