Switching of Multi Object Working Axis for Move Tools
-
Hi,
For Move tools(or rotation tool or scale toll), when multiple objects are selected, the axis of the tool can be switched by clicking on it. Can this be achieved through a Python script to switch to the axis of a certain object instead of manually selecting itThanks for any help!
-
Hello @chuanzhen,
Thank you for reaching out to us. An axis as a directly manipulatable entity does not exist in the API. Objects have coordinate systems which are reflected as axis to users. We have talked many times about this subject on the forum, for example here. There is also the Python code example operation_transfer_axis_s26.py which I once added to cover this very common question.
But to give here a short answer: No, there is no API feature which would allow you to snap the axis of one object to another. You must do that manually as for example shown in
operation_transfer_axis_s26
.Cheers,
Ferdinand -
@ferdinand Thanks for reply. Perhaps not expressed clearly. For changing the axis of an object, it is not a problem. What I want to ask is whether the manual operation step of selecting the axis before the Move tool works can be implemented using a script.