Moving object in steps
-
Let's say if first move an object (by translation) by 3 according to the z-axis (so 3 metres higher)
Later on I want to move it to 5. In a translation that would be a move of 2Is it possible to set the position in z instead of doing translations?
Or can i reset/remove the previous translation and do a new translation?
Hope this makes sense.
Regards
-
some extra info:
it's a section plane i try to move -
Is all done in one operation?
"object" - you mean any Entity or a Group or ComponentInstance? With Groups and ComponentInstances you can get and set the transformation matrix,
.transformation
and.transformation=
where you could manipulate the Z position if you like. -
You're transforming it with transform_by_vector, right?
-
Thomthom, different operations
So there can be other commands in between.
With the object I mean a section plane
So I'll need to use transform_entities or transform_by_vector -
i got it, will post solution later
Advertisement