SketchUcation Premium Membership

 

 

[Plugin] Component Stringer UPDATED May 23, 2013

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby thomthom » Mon Nov 16, 2009 12:08 pm

simon le bon wrote:You just need to enter one of the components, select all the geometry, and scale it ;)

Ah! ofcourse - you open up the component! doh! I was thinking it scaled each instance. :knockout:
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17915
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Pilou » Mon Nov 16, 2009 12:54 pm

Suggestion: a vertical rotation of each component in the same time between them
vertical.jpg


Another thing actualy plug works fine with path welded or not :enlight:
but not with curves "disconnected" : is that normal :?:
yes_no.jpg
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Mon Nov 16, 2009 2:12 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10219
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby c.plassais » Mon Nov 16, 2009 2:04 pm

Hi Chris,

Perfect as always

Christophe
c.plassais
 
Posts: 71
Joined: Mon Jul 20, 2009 8:11 pm

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby plot-paris » Mon Nov 16, 2009 2:30 pm

fantastic plugin, Chris. there are going to be a lot of funny spine images in the gallery section now...

just two minor suggestion/question: when running your script it asks you whether start and end of the curve are right. then it lets you define the parameters. that means you will always have to perform at least two clicks, even if the curve direction is correct.

therefore my question: is it possible to go straight to the dialog box, while labeling start and end of the curve and having a check-box for 'reverse curve'?
ideally the 'start' and 'end' labels would dynamically change, when ticking/unticking the check-box.

and secondly: could you make the script remember former input during a SketchUp session? (except for the 'reverse curve' check-box of course). that might speed up workflow as well.
User avatar
plot-paris
 
Posts: 1559
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Ecuadorian » Mon Nov 16, 2009 2:53 pm

I certainly hope Chris and other Ruby geniuses get hired by the Google SketchUp team. SU might be a dead end if you want NURBS, but there's still a lot to be done with polygonal faces. :thumb:
Ecuadorian
 
Posts: 1626
Joined: Thu Jan 15, 2009 10:20 pm
Location: Ecuador
Name: Miguel
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Click Draw » Mon Nov 16, 2009 4:59 pm

Hey Chris,

This is awesome! Thank you so much. I'm glad to see the PayPal link as well. You deserve it. I also love the crickets sound effects on your tutorials. Your obviously up late at night doing these. Thank you....

Jeff
Have I mentioned how much of a laugh I get out of some of the Signatures on here!
Click Draw
 
Posts: 392
Joined: Fri Sep 26, 2008 3:50 am
Location: Vancouver, BC, Canada
Name: Click Draw
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Pilou » Mon Nov 16, 2009 5:00 pm

And you can after use the Shape Bender! ;)
Not here :roll:


Here yes, each link itself is now curvated after the general Shape bender ;)
So a double curvature :)
sbender.jpg
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Mon Nov 16, 2009 5:37 pm, edited 3 times in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10219
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby EscapeArtist » Mon Nov 16, 2009 5:17 pm

Chris, that is amazing. Thank you so much for the quick response to the ideas everyone posted.

Another fantastic plugin. Thanks!!
User avatar
EscapeArtist
Top SketchUcator
 
Posts: 1308
Joined: Sun Aug 03, 2008 7:36 pm
Location: Northeast US
Name: Jeff
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: hobby
Level of SketchUp: Intermediate

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Bob James » Mon Nov 16, 2009 7:30 pm

Simply fantastic, Chris. Thank you so much for all your hard work: what would SU be without guys like you???
Again, thank you. :sketchstatic:
I've reduced my experience level to intermediate because how can I possibly be "advanced" if Solo lists himself as intermediate!!
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 619
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby utiler » Tue Nov 17, 2009 12:17 am

Pilou wrote:Suggestion: a vertical rotation of each component in the same time between them
vertical.jpg


Another thing actualy plug works fine with path welded or not :enlight:
but not with curves "disconnected" : is that normal :?:
yes_no.jpg



Another wish of mine, Pilou. see viewtopic.php?f=180&t=19204
The plugin in is getting sooooo close to a suggestion i had a while back; thanks again, Chris!!!!

Would be great to have the option of rotation around all 3 axis and the order of rotation as well as with TIG's GROW plugin.....
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1936
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Pilou » Tue Nov 17, 2009 2:08 am

Yes! :D
Scripters are amazing people :enlight:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10219
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby leixing » Tue Nov 17, 2009 8:31 am

Thank you Chris
itis wonderful!
i find a little bug.if the compoents only have one face -- that means the componet is a 2d ojb ,then run the plu and nothing start. the ruby console said "Error: #<NoMethodError: undefined method `position' for nil:NilClass>"
a very little bug ,just make a uimessage to tell people they must have a 3d components.
thank you again!!
leixing
 
Posts: 27
Joined: Fri Apr 11, 2008 9:24 am

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby massimo » Tue Nov 17, 2009 8:42 am

Thank you Chris. Tried this on SU6 free but i had some problems. The try was made with "scaling>uniform" and "0" rotation.
Please, register (free) to access all the attachments on the forums.
User avatar
massimo
Global Moderator
 
Posts: 1372
Joined: Thu Mar 19, 2009 10:52 am
Location: Italy
Name: Massimo Siracusa
Operating system: Windows
SketchUp version: 7
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Ken » Wed Nov 18, 2009 1:20 am

Chris, thanks for this plugin. I am almost on the way to making anchor chains of any length or curvature. However, I notice that on curves, it is still hard to get the links to stay the same size, as the different curves connected together will have different section lengths.

So, I was wondering, how hard it would be to add a plugin called "Draw Line by Set Length". So I could pick this plugin, input the length of line I wish to draw. Say I inputted a line of 12" and all lines drawn would be 12" in length. So I could a draw a series of connected lines, they all would be 12" in length and curve to any direction. Than when I apply component stringer, my chain link's length would all be the same length along this many segmented line.

Again, thanks for the plugin.

Ken
Government rushes to help the irresponsible and does little for the responsible.
User avatar
Ken
Premium Member
Premium Member
 
Posts: 747
Joined: Thu Nov 15, 2007 1:38 pm
Location: Fort Mill, SC
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Wed Nov 18, 2009 9:49 pm

Chris Fullmer wrote:Great comments and feedback. I agree there are lots of great possibilities on this one. The main things I would like to tackle first are:

Major to do list
  • Make it work with closed loops!
  • Also it can crash if you select edges that are connected to other edges that are not selected - fix that!
  • The scale is messed up if the component axis is set in the middle of the component - fix that.
After that
  • Add multiple component support - random and ordered placement
  • Rotation - overall rotation and each component rotation settings.
  • Branching edges support
  • Edges that are not connected support
  • Add some pre-made dinosaur bones to the plugin folder for Thom :)

Those are the main things that come to mind and that I've seen suggested that I think are good suggestions. I think that covers most things?

So I should probably go write this instead of sitting here on the forum.

Chris


I think that covers most things?


Hi Chris,

Here is my (first) wish! important one for many I guess!
I wish it were possible to drive a component in an invariable direction along the path like those stakes of the fence:







Important remark:

I have found no solution to make the flat stakes to follow the path while they are planted vertically (=invariable direction+ following direction) :?: :?:



(PS: I'm thinking about your PayPal link ;) )
*simon
Last edited by simon le bon on Thu Nov 19, 2009 2:32 pm, edited 1 time in total.
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby TIG » Wed Nov 18, 2009 11:47 pm

The major to do's - like loops and connected curves - are pretty much sorted in my ExtrudeEdgesToEdges... for the upcoming version I have borrowed some of the sorting edge-vertices code etc from Chris's script (which Chris probably borrowed from RickW [or my borrow of it?]!!!). Chris should then be able to transpose these fixes back into his script? My updated script will be out shortly...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14310
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Thu Nov 19, 2009 11:36 pm

Some help to produce the component to copy along a path.

I)Put the good axes:

If it is for you like for me :oops: , positionning axes of the component I want to copy along a path is not so evident.
So, make a cube, make it as a component, and......


II)How to conceive a chain link:
Using one or other method to produce a chain, necklace and many others fences and so on, you will need to think about the shape of the links.
Here is my tip. Just think to draw a portion of curve with the smallest radius you think you are going to use for your path...


:freehand: :arc: ;) simon
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Tue Nov 24, 2009 2:16 am

Hi Chris, Hi SketchY fellows,
I'm following Component Stringer Study.

Chains are now so easy to produce :thumb: :thumb: ;)

>>"Component rotation" = 90° ; Fredoscale by Center


Helical study:

See Http for some explanation:
A PoorFlatEllipsoidIndian Bowl



The joints are not welding perfectly, but if we need a good welding, we can use this one as a gauge..
>>"Scaling Uniform"; "Component Rotation" 15°


Double use of Component Stringer ;) :lol:
(With a smart use of "Total Rotation" 15°




+++Making a straight line as it was a curve in order to use it as the "path" to copy components on.
>> 1) a reverse line is added to our line (or else, our line is right clic and divided by minimum two) in order to apply "Weld" because Weld need at least two elements to be applied..

2)This welded line is now (Bezier curves installed) right clic converted to segmented polyline.
3)Now apply "Component Stringer" on this "straight curve" :lol: "Scaling Stretch" ; "Component Rotation" 15° (in case -15° :!: )


Same action on a Bezier Curve


*simon
Last edited by simon le bon on Fri Nov 27, 2009 4:01 pm, edited 2 times in total.
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Tue Nov 24, 2009 9:41 pm

:oops: :oops: :oops:
As usual I am tiring everybody with my extensions. I promise that this is the last one. You know , when I begin something I go on surrounds until I can think I have finished. May be those studies will brought some help to someone in some future :lol:

../VARIATIONS on Helical matter\..









The main point to obtain a good result is to work firmly on the curve, in order to give it the real number of segments: individual in orientation and indentical in length





Another variation: Triple use! of Component Stringer :lol:






The result isn't so beautiful 8-) Well, it is just for example


:circle: :arc: simon
Last edited by simon le bon on Fri Nov 27, 2009 1:42 pm, edited 2 times in total.
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby thomthom » Tue Nov 24, 2009 9:45 pm

Wow! Very cool Simon.

I've been tracking this thread and I like all the shapes being produces. About time I actually read how it's done.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17915
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Wed Nov 25, 2009 12:03 am

Hi Thomas,

thanks for this nice word good to me..
I haven't enough time as I would like to study this way every great plugin you and other cheerful authors offer to us day after day.

I'm secondly very pleased for you to come , 'cause I was just intending to ask you something as the better specialist in this place about selecting matters.

I haven't the first knowledge of if it is possible or not, and if it is, if it is complicated or not, but a great tool which I have found is missing would be a tool which give a number to a face or a component along a path and then give the choice to select elements in an incremental way or into an array of data.
This way for example to give a redundant place to some type of pillar along a long fence or barricade; organize a driveway pavers etc...


:?: ;) simon
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Chris Fullmer » Wed Nov 25, 2009 1:35 am

I'm not quite sure what you're asking for on that one Simon. But here's a guess.

You would likt to be able to automatically select every 10th pillar in that image for example? Or every 5th pillar? Is that the idea?

That could be built into my tool, but it would only work with components placed using my tool. But it would be do-able.

Chris

PS. I'm doing more work on this plugin. I have it set so it works with edges that are not connected - more than one spline. Or even just a large of amount of single edges. Hopefully a few more surprises before I release the next round.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6762
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby EscapeArtist » Wed Nov 25, 2009 5:19 am

Just for fun, a little "DNA":
Please, register (free) to access all the attachments on the forums.
User avatar
EscapeArtist
Top SketchUcator
 
Posts: 1308
Joined: Sun Aug 03, 2008 7:36 pm
Location: Northeast US
Name: Jeff
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: hobby
Level of SketchUp: Intermediate

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Jeff Hammond » Wed Nov 25, 2009 5:58 am

ha Simon..
i love the stuff you come up with using some of the scripts that pop up.
dotdotdot
User avatar
Jeff Hammond
Global Moderator
 
Posts: 4396
Joined: Thu Jan 24, 2008 11:16 pm
Location: newyorkcity
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby kostas_designer » Wed Nov 25, 2009 9:56 am

Great plugin Chris!

I was trying it while working on an industrial component, i kind of chain.
Problem is that i cannot edit the single component because ita has a *given* dimension.
So, arraying straight segments is not a problem as i can use the Copy Array Groups or Components plugin, but when it comes to follow a curve things get tough (at least for me! :? )
I agree that having the control of sthe spacing would be best for many applications.

See some screenshots for explanation:
Please, register (free) to access all the attachments on the forums.
kostas_designer
 
Posts: 55
Joined: Tue Jul 14, 2009 1:08 pm
Location: Venice, Italy
Name: kostas_designer

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby plot-paris » Wed Nov 25, 2009 12:33 pm

kostas_designer wrote:...having the control of the spacing would be best for many applications.
+1

Simon, I love your stuff. keep it coming. these show off nicely, what the plugin can do...
User avatar
plot-paris
 
Posts: 1559
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Thu Nov 26, 2009 11:50 am

Hi jeff and Jakob, Thanks for nice words.. So I can be restful: I am not that sort of bat vampirising the threads I sometime feel I am :? (my small paranoia I'm afraid.)


Hi Kostas!
I'm sorry, I don't understand your problem (I can't see the details of your pictures!).
Mercy for us, get a real print screen and make close ups ;)
having the control of sthe spacing would be best for many applications.
For me the spacing in a chain is invariant so..
May be you want to do something like that:


If it is the case , you can apply this solution:
Copy Array Along Path tool...have a look.

Hi Chris,
Chris Fullmer wrote:You would like to be able to automatically select every 10th pillar in that image for example? Or every 5th pillar? Is that the idea?

Yes You've got it!
But I would like be able to do many other various things: may be in this exemple above > put 3 components in place of pillars every 10 pillars...
This is the reason why I think what we need is mainly a special selecting tool with an incremental feature, (but also an array to select freely into it, and also may be a feature of aleatory choice)
And very important to be able to do the reverse selection.


this way we can -do a first pass, delete what we want to change,
- Do another pass with the other component and delete everything but the previous holes
and put the two passes together.
This way we can do the number of passes we want.
We can also mix variant and invariant (in direction) components....

That could be built into my tool, but it would only work with components placed using my tool. But it would be do-able.

But this special feature would be simply top cool ;)

:ugeek: simon
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby plot-paris » Thu Nov 26, 2009 12:37 pm

actually, that may be a good idea for a different ruby request... a selection tool, that automatically recognizes component arrays (whether distributed on an even grid or along a path...) and then lets you do various selection scenarios. ideally a dialog would pop up that let you change your selections dynamically (or, at least have an update butten, that lets you change selections without closing the dialog)...
User avatar
plot-paris
 
Posts: 1559
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby Gaieus » Thu Nov 26, 2009 12:46 pm

Simon,

I absolutely love the way you fully exploit these different (and of course, wonderful) tools and model things probably even the author didn't even dream about!

Cheers and keep posting, please! :thumb:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27730
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Component Stringer UPDATED Nov. 16, 2009

Postby simon le bon » Fri Nov 27, 2009 2:10 pm

Dear Gaieus


Your so kind words :oops: me!! :)

plot-paris_Jakob wrote:and then lets you do various selection scenarios. ideally a dialog would pop up that let you change your selections dynamically
+1

EscapeArtist (Jeff) shows with his Dna


A very cool other use of what I have in mind with this possible selecting tool:
Using sequences of the same component colored differently. In the particular case of a dna, the possibility of selecting elements into an array of data would be probably the most useful..

simon
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: chris_vinicio, hebh123, maneazul, sambricole, sridhar, wel5323 and 9 guests