Is it possible to generate variables on the fly from a list?
In my program I am using the following instruction:
for i in re.findall(r"...(?=-)", str(vr_ctrs.getNodeNames())):
tmp_obj = vr_ctrs.getChild(i+"-GEODE")
TMP.append([tmp_obj.getPosition(viz.ABS_GLOBAL)[0],
tmp_obj.getPosition(viz.ABS_GLOBAL)[1],
tmp_obj.getPosition(viz.ABS_GLOBAL)[2]])
which builds me a list on TMP. Would be possible to generate a new variable for each one of the elements that I am appending to TMP?
Thanks