First release. All scripts in v1.

This commit is contained in:
2016-08-28 04:42:41 +02:00
commit d08693c64c
38 changed files with 1975 additions and 0 deletions

27
xg_ui_adj_tests.py Normal file
View File

@@ -0,0 +1,27 @@
#
#
# 3DE4.script.hide: true
# 3DE4.script.startup: false
#
# Giovanni Di Grezia 2016
# http://www.xgiovio.com
#
#init
current_value = tde4.getParameterAdjustCurrentValue()
best_value = tde4.getParameterAdjustCurrentValue()
get_custom_data = tde4.getParameterAdjustCustomParameters()
running = tde4.getParameterAdjustPhaseRunningFlag()
# script specific
camera_id = get_custom_data
lens_id = tde4.getCameraLens(camera_id)
if (running):
#calculating
tde4.applyParameterAdjustDataModification("@" + lens_id + ".focal_length_cm",current_value / 10)
else:
#transfer_to_3de
tde4.setLensFocalLength(lens_id,best_value / 10)