[Plugin] JointSU (in drafting)

[Plugin] JointSU (in drafting)

Postby MarcioAB » Sun Nov 23, 2008 9:21 pm

This is a draft plugin to handle JOINTS in SketchUP components.



Add some "joints" (see below how) in standard components to make then "joint-enabled" and:

1. Select 1st "joint-enabled" component.
2. Select 2nd "joint-enabled" component.
3. Shift-click in one of them. This one will remain fix and the other will align Joint-Joint.

To make any component "joint-enabled", just include one or more joint-components ("JointSU") in it.

Use the menu to create the "JointSU" component or create one by yourself.
Nothing special with this component. Just the name that must be "JointSU". The transformations use the default axis of the component. The proposed geometry has 2 faces to easy positioning.

obs:

1: If the "joint-enabled" component has more than one joint, click the component to select the next joint.
2: After the move, click on any component to rotate the moved component 90 degress in X or Shift-click to rotate it 90 degrees in Z.
3. Menu Plugins/JointSU:
3.1 - Create the JointSU component ("Create JointSU component")
3.2 - Hide/Unhide the joints ("Hide all JointSU" or "Visible all JointSU")

JointSU.zip


Comments and suggestions are welcome.

Regards
Marcio
0

MarcioAB 
 

Re: [Plugin] JointSU (in drafting)

Postby bianhai » Mon Nov 24, 2008 12:45 am

Very good! :thumb:
0

bianhai 
Banned
 

Re: [Plugin] JointSU (in drafting)

Postby yannleo » Tue Nov 25, 2008 8:14 am

The ideal of using component as a "joint" to line up objects is promising.
I tried.Amazing! not easy to control the orientation up to now.
0

yannleo 
 

Re: [Plugin] JointSU (in drafting)

Postby MarcioAB » Thu Nov 27, 2008 1:30 pm

yannleo wrote:not easy to control the orientation up to now.

Yes. That's why the proposed "JointSU" now has the shape below:

Image1.png
With these 3 planes, it's easier to use the :rotate: tool to position the joints. I also included a panel to define the size of the JointSU.

yannleo wrote:The ideal of using component as a "joint" to line up objects is promising.

Yes. The idea is to create an "hierarchical component browser" to view/handle how components/joints are structured. Working on that ...

Regards
Marcio
0

MarcioAB 
 

Re: [Plugin] JointSU (in drafting)

Postby yannleo » Fri Nov 28, 2008 7:17 am

it's a convincing plugin by any means.i'll try using triangle "joint" like you did. This plugin is a little similar to the alignment tool in 3ds max but more useful.it's good starting.Thanks for your wonderful staff!
0

yannleo 
 

Re: [Plugin] JointSU (in drafting)

Postby DanCharron » Fri Dec 12, 2008 8:27 pm

Very neat Plugin. I was trying to create my own, but your implementation is better. The only thing I have to do now is learn Portugese to interpret some the Ruby script comments. Please keep us informed if you upgrade it.
0

DanCharron 
 

Re: [Plugin] JointSU (in drafting)

Postby MarcioAB » Fri Dec 12, 2008 10:06 pm

Thank you.

1. The comments for now are in Portuguese, but I will translate them to bad-English (the most spoken language in the world!) as soon as I have a less draft-code version.

2. The idea to publish an early-draft was to get some inputs/suggestions on how a Joints-oriented modeling should be (but the draft-code is now so messed up that I can not even upload the improvements made since this early draft).

3. These JointSU must work 100% in companion with the Model Structure ( or OUTLINER ... strange name for something so important ). Working on that now.

4. Two things are blocking me to advance these days: (1) my full time job and (2) I can not find a way to OPEN a component. The Sketchup::Model.open method is there but it's private (and not public). Example:

Code: Select all
p Sketchup.active_model.open
Error: #<NoMethodError: private method `open' called for #<Sketchup::Model:0x4a28e70>>

Any help on that will be very welcome.

Regards
Marcio
0

MarcioAB 
 

Re: [Plugin] JointSU (in drafting)

Postby Ross Macintosh » Fri Dec 26, 2008 1:37 pm

Thanks Marcio for developing this plugin. Looks to have great potential. I wonder if it might work to have some form of 'dynamic component' joints that could do things like rotate the jointed pieces after the assembly using the little dynamic component 'finger'.

Regards, Ross
0

Ross Macintosh 
 

Re: [Plugin] JointSU (in drafting)

Postby azuby » Fri Dec 26, 2008 4:38 pm

In most of the cases developers declare their methods being private, there is a good reason for that. But you can try for your own whether this method does what you want by using send:
Code: Select all
Sketchup.active_model.send :open
With Sketchup 6 the result is:
Code: Select all
Sketchup.active_model.send :open
Error: #<ArgumentError: (eval):1619:in `initialize': wrong number of arguments (0 for 1)>
(eval):1619
OK, the methods needs an argument. I tried with a path:
Code: Select all
Sketchup.active_model.send :open, "C:/bla.skp"
#<File:C:/bla.skp>

azuby
0
error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory* | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

Bad English? PM me, correct me. :)

azuby 
 

Re: [Plugin] JointSU (in drafting)

Postby Yanman » Mon Jan 05, 2009 2:59 am

Wow Very good :fecstatic: :fecstatic:
0

Yanman 
 

Re: [Plugin] JointSU (in drafting)

Postby thomthom » Mon Jan 05, 2009 8:36 am

Virtual LEGO building! :D
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] JointSU (in drafting)

Postby MarcioAB » Mon Jan 26, 2009 11:31 pm

Finally I have version 1.0

Now it's highly dependent of the product structure (or OUTLINER), but seems to work well ... I will post it in a NEW thread. Enjoy and lets see how to improve this ...




Regards
Marcio
0

MarcioAB 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Google Bot, zul6041 and 21 guests

Visit our sponsors: