10.04.2017, 18:06
How can I optimize this script and extend it to all objects?
actual_value = grp.getvalue('3/0/..')
start_month = grp.getvalue('3/1/..')
current_month = grp.getvalue('3/2/..')
current_month = actual_value - start_month
grp.write('3/2/..', current_month)
actual_value = grp.getvalue('3/0/..')
start_month = grp.getvalue('3/1/..')
current_month = grp.getvalue('3/2/..')
current_month = actual_value - start_month
grp.write('3/2/..', current_month)