On 09/05/2018 at 16:52, xxxxxxxx wrote:
Hi folks,
usually there are different ways to perform a task and sometimes I'm unsure which one to prefer.
E.g. like these two ways to transfer the rotation from one object to another in Python.
Way 1:
obj_2.SetRelRot(obj_1.GetRelRot())
Way 2:
obj_2[c4d.ID_BASEOBJECT_REL_ROTATION] = obj_1[c4d.ID_BASEOBJECT_REL_ROTATION]
The outcome is the same here but is one way better than the other and why (e.g. performance-wise)?
I'd intuitionally tend to the first method but I'm not absolutely sure if it is really superior to way 2.
Any hints?
Kind regards,
Tom