[Plugin] Axes Tools
-
The way I view axis:
The way that SketchUp, and most other 3d modelling apps, display the workspace with axis in default scenes.@utiler said:
I just don't see how you can nominate left or right of a red axis unless the red axis is vertically aligned; which it isn't....
How can something vertical be considered left/right?
-
I see. I get it.
I guess I was thinking in orthogonal [plan view] rather than the 3D environment. In plan the green axis would be vertical and hence anything to the right of it would be 'right and visa versa.....
I won't argue your understanding of SU or any other program.... I'm happy with your explanation.
cheers,
-
-
Good idea.
Is that just a visual mock-up - or you got such a code working? -
It's not a mock-up, but it's not working either. More like a hack-up.
Another option could be to modify your Pivot Gizmo to be able to use an axis of any of a selection of Instances.
The Pivot Gizmo, along with a Rest Rotations would make posing much easier than currently.
-
Yea - I've wanted a plugin that allows you to set custom joints and would also moved linked instances when moved.
Weren't you working on such a system? Or am I confusing it with the concept you showed where things snapped to each other? -
Pretty cool plugin!!... If I could add anything, it would be a 4th option: (Front, Back, Center, or leave it unchanged)
Lets say I'm working on a component like a window... and I modified the window to be twice as long in the red axis. I want to center the red axis, but I don't want to change the green axis (it has a cutting plane and it's not located either Front, Back, or Center).
thanks!
-
Another good idea!
-
Excuse me, how can I create a button with
"cmd = UI::Command.new () {}", for this tool? -
@dem said:
Excuse me, how can I create a button with
"cmd = UI::Command.new () {}", for this tool?<span class="syntaxdefault"><br />cmd </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set Insertion Point'</span><span class="syntaxkeyword">) {<br /> </span><span class="syntaxdefault">self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br /> </span><span class="syntaxdefault"></span>
-
@thomthom said:
<span class="syntaxdefault"><br />cmd </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set Insertion Point'</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault"> self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault"> </span>
I just tried the same way, but did not work
<span class="syntaxdefault"><br />cmd </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set Insertion Point'</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault"> self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">small_icon </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"ICONS/axisC_sm.png"<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">large_icon </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"ICONS/axisC_lg.png"<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">tooltip </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"Set Insertion Point"<br /></span><span class="syntaxdefault">toolbar </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> toolbar</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">add_item cmd<br /></span>
Excuse me, but what I do wrong?
-
Does the toolbar appear?
Do you get any error messages?
Did you put the code inside the
TT::Plugins::AxesTools
module? If not, then you must useTT::Plugins::AxesTools.set_insertion_point
-
Oh. Thanks!!! Very useful plugin, that saves a lot of time!
-
ThomThom, I have been trying to redefine, from a plugin, the axes of a component instance that has been rotated and made unique to the default left,front,bottom location without any luck. This is an easy manual modification but seemingly impossible from code. Any suggestions would be greatly appreciated.
-
@sdmitch said:
ThomThom, I have been trying to redefine, from a plugin, the axes of a component instance that has been rotated and made unique to the default left,front,bottom location without any luck. This is an easy manual modification but seemingly impossible from code. Any suggestions would be greatly appreciated.
This plugin won't do it???
-
@thomthom said:
This plugin wonæt do it???
I can't seem to come up with any combination that makes it work. I want to be able to copy and rotate a component around one or two axes then make it unique so, when I place it again, it maintains that orientation. Now when the the new component is selected for placement it returns to the orientation that it originally was. Using your Axis Tool doesn't change that no matter where I define the insertion point. Right clicking on the component and doing a Change Axes is the only thing that works but how do you code that?
-
It's exactly what this plugin is suppose to be doing... ...but testing a simple cube now, and there seem to be a bug here...
-
...and when I try it again - everything works fine...
got a sample model? because I cannot reproduce it again..
-
The attached model contains two not so "simple cubes". The one at the origin is the original cube. The one on the right is a copy which has been made unique and rotated 90 degrees. When the copy is selected, Change Axes show the insertion point of the copy at the back right corner as you would expect. Using your Axis Tool and choosing right,front,bottom does move the insertion point but the axes orientation is un-changed so, when it selected for placement, it appears un-rotated.
-
Thom, I've got an idea to add.
see here:
http://forums.sketchucation.com/viewtopic.php?f=15&t=43404&p=387027#p387027Would be nice to be able to context click on a group or component and reset the Axes orientation to global.....
I'd be interested to see if it is possible.
Cheers,
Andrew
Advertisement