Copy Array Along Path tool...have a look.

Copy Array Along Path tool...have a look.

Postby Click Draw » Sun Nov 01, 2009 6:06 pm

Hi there,

I know I've been posting a lot of questions lately, so seeing as I'm on a roll, here is another. Have a look at the attached and see if you can help. Also, once I can get the proper outcome and know how, I'd like to experiment with changing or replacing the component with another. I think this will come in very useful for creating rope, chain, spine type shapes, etc....A good example would be "Doc Oc" arms in Spiderman. Hope you all know what I mean.

Thanks,

Jeff
4
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby TIG » Sun Nov 01, 2009 9:04 pm

This along awaited update of RickW's tool CopyAlongPath - to rotate as it copies... I'm do some other stuff that will involve an algorithm that could be applied to this - but don't hold your breath...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Sun Nov 01, 2009 9:10 pm

Do you know of a user guide or PDF on the proper settings...if there is a settings guideline.? I would use it more if I knew how to set it up properly.
Jeff
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby Ecuadorian » Sun Nov 01, 2009 10:03 pm

Takeshi Hashimoto wrote a basic, but good explanation:
http://www.pushpullbar.com/forums/ruby- ... post132098

I'm also waiting for a version that can do what you want...
0

Ecuadorian 
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Sun Nov 01, 2009 10:17 pm

Thanks Miguel,

Seems to work fine when the path is 2D by not when 3D. So far I have made a work around using the Radial Bending ruby....just more time consuming.

Cheers,

Jeff
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby Ecuadorian » Sun Nov 01, 2009 10:38 pm

Jeff, I made a request very similar to yours back in March. You might want to check the thread for some ideas people gave:
viewtopic.php?f=180&t=17285

EDIT: Now that I think about it, perhaps a combination of 1001bit's extrude along sloping path + Chris Fullmer's Components to Faces could be the ticket.
0

Ecuadorian 
 

Re: Copy Array Along Path tool...have a look.

Postby Chris Fullmer » Mon Nov 02, 2009 12:11 am

My perpendicular face tools will do it. It just doesn't do it as an array. You have to click where you want each face to be applied. So it could be useful, but also tedious if you need a perfectly spaced array.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Mon Nov 02, 2009 1:54 am

Hi Chris,

Ya...I used it in the sample above but I would for sure be very time consuming. I was wondering, each face is created as a group, could it be possible to have it place a component on a node instead of a circle, square or custom face. Kind of a combo between copy path and perp faces.... what do you think?

Thanks,

Jeff
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby RickW » Mon Nov 02, 2009 6:36 pm

TIG wrote:This along awaited update of RickW's tool CopyAlongPath - to rotate as it copies... I'm do some other stuff that will involve an algorithm that could be applied to this - but don't hold your breath...

2D rotation works for components, but 3D rotation has yet to be implemented.
0

RickW 
 

Re: Copy Array Along Path tool...have a look.

Postby Ecuadorian » Mon Nov 02, 2009 7:30 pm

This will make a nice commercial script, Rick. 8-)
0

Ecuadorian 
 

Re: Copy Array Along Path tool...have a look.

Postby JClements » Mon Nov 02, 2009 9:18 pm

Jeff, I use perpendicular to path as well to do what you showed in your first posting, but it can be a tedious process.

If it could be automated AND combined with scale along a path from one object to a rescaled-copy of itself, it would sure be helpful in producing things such as reduced elbows.

Lets hope ...
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Thu Nov 05, 2009 11:59 pm

TIG wrote:This along awaited update of RickW's tool CopyAlongPath - to rotate as it copies... I'm do some other stuff that will involve an algorithm that could be applied to this - but don't hold your breath...

"This along awaited update of RickW's tool CopyAlongPath" Yes indeed dear Rick, we agree with TIG. We need it! (we want it ;) )

this is my try:


3d_grid.rb


Weld v.3.000 by Rick Wilson


BezierSpline v1.21 by fredo


Perpendicular Face Tools by Chris Fullmer

JClements wrote:If it could be automated AND combined with scale along a path from one object to a rescaled-copy of itself, it would sure be helpful in producing things such as reduced elbows.

Lets hope ...
>>

2 Faces + Path ver. 1.4. by Kirill

Click Draw wrote: I'd like to experiment with changing or replacing the component with another. I think this will come in very useful for creating rope, chain, spine type shapes, etc....
>>



Components onto Faces v1.0 by Chris Fullmer



As Jean lemire always say: "just ideas" :)
simon.
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Sun Nov 08, 2009 12:37 am

Tweaking the process:









*s
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby xrok1 » Sun Nov 08, 2009 5:05 am

love that chain! i'd like to see it rendered with a glass material. ;)
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Sun Nov 08, 2009 10:56 am

Hi Rocky

Please take it and make it at your convenience ;)
(click the pic for Skp)
../sim
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Tue Nov 10, 2009 11:57 pm

Playing with the process..
(easy and fast)





(two components made with the same 60° rotated)
*s
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby Bob James » Wed Nov 11, 2009 12:41 am

simon le bon wrote:(easy and fast)


Is your "easy and fast" the same eight-step process in your previous post or have you come up with a real "easy and fast"?
0
2x Xeon E5-2690, 2x GeForce GTX TITAN 6GB, 64GB Crucial DDR3-1600, 2x Vertex 4 500GB RAID 1, WD Black 8TB RAID 5, SpaceMouse Pro
User avatar
Bob James 
Premium Member
Premium Member
 

Re: Copy Array Along Path tool...have a look.

Postby pav_3j » Wed Nov 11, 2009 12:44 am

simon you are a master of getting the best results using methods most don't think of!

i'm still a little confused by the process, but i'll get there!


pav
0
Just won the 'Who is Least Competitive Championships' where trying to win will make you lose. Trying to lose makes you win which makes you lose. Not trying at all makes you lose which makes you win which makes you lose.

pav_3j 
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Wed Nov 11, 2009 2:41 am

Hi Bob and Pav,

I'm confused because in following my own idea I was sure to have described the process in its simplicity!! Your two comments tell enough I was wrong.

I am going to try to explain better , "pardon pour mon anglais".

I)My main idea is that we need to prepare the curve we intend to be the path along which we want to copy our elements. Because what we need is a curve made of
-a)an exact number of segments
or
-b)a curve divided by segments of a precise length.


1)If we make our "path" using arc tool or/and line tool or/and bezier spline we need to make it first a "clean curve". This is made by the help of "Weld".

2)Once this is accomplish, we are going to convert this curve as a well wanted segmented polyline. this is made with underknown features which go with "BezierSpline" . When you select the curve, you can choose by right-clic context menu :> Convert to: Polyline Divider (if you wish to divide your curve by segments of exact length) or Polyline Segmentor (if you want to divide this curve by a specific number of equals segments.)


II)My second idea is to use "2Faces + Path" plugin in an unusual way. This plug is first intending to drive a transformation from a face to another one. My idea is to use it with no transformation! the first and the last face are the same! So this face is going to be dispatched in one clic all along the path in between the segments.
Re: to simplify the process I use "Perpendicular Face tools" to put in place with a clic those first and last faces, but we can do without it. (in particular when we want to use a complex face)

III)My third idea is to use "Components onto Faces" to replace those faces by the component I want. One more time in just a clic and, as the faces remain selected, I can delete them with one push on "Del" .
Re: if I want to dispatch various components like in the case of my chain, I copy the same number of the path+faces and I delete by hand the faces I don't want to follow the component. And I assemble them at the end.
Re: the main tip is to play foxy with "modify axes" inside components.

In summary:

1)drawing the curve
2)make it clean (weld)
3)make it a divided polyline (BezierSpline: Polyline Divider or Segmentor)
4)put the first an last face (Perpendicular face tools)
5)put a face at each segment intersection (2Faces + Path)
6)replace faces by components.

(I have some others ideas to develop the process, I shall tell latter ;) )

:followme: simon.
0
Last edited by simon le bon on Wed Nov 11, 2009 12:18 pm, edited 1 time in total.
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby pav_3j » Wed Nov 11, 2009 3:37 am

ah i get it now simon, thank you very much for the written explaination.

i think one thing you may have missed out (as i understand it) is that the amount of steps you have to take with the 2 faces and a path tool, must equal the amount you have segmented the curve by, or the faces will not end up on the end point of each line.
correct?

thank you again.

pav
0
Just won the 'Who is Least Competitive Championships' where trying to win will make you lose. Trying to lose makes you win which makes you lose. Not trying at all makes you lose which makes you win which makes you lose.

pav_3j 
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Wed Nov 11, 2009 6:06 am

Very clever Simon....I'll be trying this for sure!

Thanks,

Jeff

PS: I wonder if it would be possible to have a ruby called "Replace segment with Component"...nah....I doubt that could be written ;)
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby Chris Fullmer » Wed Nov 11, 2009 7:09 am

Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component? Something about that sounds familiar...

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Wed Nov 11, 2009 7:26 am

I sure hope someone is working on something like that. That would be an awesome ruby. What you could model and the time saved would be great! My eyes will be glued to this thread...
Cheers....
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: Copy Array Along Path tool...have a look.

Postby Rich O Brien » Wed Nov 11, 2009 1:04 pm

Chris Fullmer wrote:Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component? Something about that sounds familiar...

Chris


Hi Chris,

This "Replace with Component" idea is extremely exciting. Do you think Fredo's 'GhostComp' could hold some clues on implementing this? I know zero about Ruby Scripting but use Fredo's alot to help keep things running smoothly.

I realise it needs a component to create various versions of that component and hide the original. But could this be reversed to reference a component from a simple line?
0
User avatar
Rich O Brien 
Administrator
 

Re: Copy Array Along Path tool...have a look.

Postby pilou » Wed Nov 11, 2009 1:28 pm

a ruby called "Replace segment with Component"

If your segment is a component you don't need a ruby ;)
I believe exist a ruby that transform a selection of elements in Components ;)
So select your elements (here segments)
transform them in components
Replace your component by any other component you want
Et voila :fro:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Wed Nov 11, 2009 3:21 pm

some few more details of explanation:

>> When I need
-b)a curve divided by segments of a precise length.
. For I have to dispatch elements with a definite length along the path, it is going to remain an under sized segment from "Polyline Division". I delete this extra one before go further.

>> When I use "Perpendicular Face Tools" to put a face at each end of the curve, those faces are grouped. I ungroupe them in order to make them as available faces with "2Faces + Path".

(
pav_3j wrote:ah i get it now simon, thank you very much for the written explaination.
pav
thank you pav)

>>
pav_3j wrote:i think one thing you may have missed out (as i understand it) is that the amount of steps you have to take with the 2 faces and a path tool, must equal the amount you have segmented the curve by, or the faces will not end up on the end point of each line.
correct?

"2Faces + Path" dispatch automatically the faces at each intersection in one pass. This is the very good point!!
It dispatches exactly (n+1) faces: a face at each intersection + a face at two endpoints of the curve.

>> So we have to delete the two previous faces we have put to initialize "2Faces + Path" process.

important remark: "Perpendicular Face Tools" and "2Faces + Path" doing the same, are dispatching the faces oriented at the mid angle between each two segments, and in a perpendicular angle for end lines..


>> another very interesting feature is the ability of this plug to dispatch faces as they are aligned to path or not aligned to path. I will show in another post how it can be interesting to mix invariant oriented elements with elements following the path like in a barrier, a suspension bridge...




(
Click Draw wrote:Very clever Simon....I'll be trying this for sure!
thank you man! ;) )

Click Draw wrote:PS: I wonder if it would be possible to have a ruby called "Replace segment with Component"...nah....I doubt that could be written ;)

Chris Fullmer wrote:Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component?

In this case I think that orienting a face is an easiest way than orienting a line !?

*simon
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby thomthom » Wed Nov 11, 2009 3:25 pm

Should try that with Remus' catenary curve...
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: Copy Array Along Path tool...have a look.

Postby Bob James » Wed Nov 11, 2009 7:53 pm

Thank you Simon: I can really understand the process now.

However, you and I have a different definition of "fast and easy". :lol:
0
2x Xeon E5-2690, 2x GeForce GTX TITAN 6GB, 64GB Crucial DDR3-1600, 2x Vertex 4 500GB RAID 1, WD Black 8TB RAID 5, SpaceMouse Pro
User avatar
Bob James 
Premium Member
Premium Member
 

Re: Copy Array Along Path tool...have a look.

Postby simon le bon » Thu Nov 12, 2009 12:44 am

thomthom wrote:Should try that with Remus' catenary curve...


[plugin]Simple Catenary Curve
../ this is done.
(I will explain latter-- 'm tired)




Have a good night SCF fellows *s
0
User avatar
simon le bon 
 

Re: Copy Array Along Path tool...have a look.

Postby Click Draw » Thu Nov 12, 2009 5:45 pm

Anyone care to figure out what I am doing wrong. Not quite sure the proper setting for the axis on the component...See attached.

Thanks,

Jeff
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Developers' Forum

Who is online

Users browsing this forum: randriatiana and 3 guests

Visit our sponsors: