Changing Model axis?
-
I wanted to create a plugin which would change the model axis to match the active component. The purpose for this is when modelling building with different axis.
What I have used to do is make some Scenes which stores only the axis location. But I wanted to make a plugin that would change the model axis when I edit some components.
But I can not find any ways to set the model axis. Is this the same as Component Axis? A no-go?
-
@thomthom said:
I wanted to create a plugin which would change the model axis to match the active component. The purpose for this is when modelling building with different axis.
What I have used to do is make some Scenes which stores only the axis location. But I wanted to make a plugin that would change the model axis when I edit some components.
But I can not find any ways to set the model axis. Is this the same as Component Axis? A no-go?
You can not interact with axis from ruby. I had this problem once and I got this solution from CPhillips http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13660#p101752 Adapt it to what you want. Only way to change axis orientation for an object is to redraw all its faces on the new orientation.
For rotation of axis it might be possible to get inside a component, select everithing inside and rotate around origin, then exit from component and rotate reverse the component with the same value. -
hm.. that's what I thought of doing for making a Change Group Axis plugin.
But for this plugin I want to change the model axis, and I don't want to shift all the geometry around to fake it as that will cause other problems, with scenes for examples...
Advertisement