"Scaled array"

"Scaled array"

Postby museummaker » Sat Jun 27, 2009 6:53 pm

I was working on a model and found myself drawing (for lack of a better name) a scaled array. Where a component repeats but linearly gets smaller each time it copies.

Attached is a simplified picture, you see this type of construction in cranes, etc.


I ended up doing it manually but I wondered if a ruby existed that could do a copy / scale / array type action?
0

museummaker 
 

Re: "Scaled array"

Postby mitcorb » Sat Jun 27, 2009 7:07 pm

Check out Grow by TIG. The examples I have seen from Pilou in this forum appear to be similar. However, I do not currently have this plugin, so I don't know if it will "ungrow".
This is based on the premise that you want to keep the data as components.
Don't worry someone else will have your answer directly.
mitcorb
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Sat Jun 27, 2009 11:14 pm

Grow by TIG makes maybe not that you want but another thing ;)

Seems you can make something also with Protrude by Jim Foltz
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Sun Jun 28, 2009 12:09 am

Grow makes the trick but you must add another plug for align drop objects! Align by Didier Bur
After the Scale
x = 0.8
y = 0.8
z = 0.8
because the Z Spacing don't accept a coefficient but just a value in cm :o

Maybe Tig can make something ;)
Another plug must be created "Drop" on an existing object
Seems Didier Bur has a drop inside Spray tool but... :roll:

:o
align.jpg
0
Last edited by pilou on Sun Jun 28, 2009 2:50 am, edited 4 times in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby museummaker » Sun Jun 28, 2009 1:15 am

Thank you for the tips.

I have been experiementing and quite get the perfect results.

It is helpful and faster than doing it by hand but still end up tweaking things.

I will continue to explore what these great rubys can do. Always things to learn. :ugeek:
0

museummaker 
 

Re: "Scaled array"

Postby TIG » Sun Jun 28, 2009 1:38 pm

Try changing the order of operations - scale then move then rotate, move then scale then rotate etc... This will produce differing results
0
TIG
User avatar
TIG 
Global Moderator
 

Re: "Scaled array"

Postby pilou » Sun Jun 28, 2009 5:32 pm

How change order as all is in the same dialog box???
Sorry but seems impossible or I miss something for the Duh thread :oops:

Seems that the Zspacing accepting a % will be very cool?

I have the 1.0 20070207
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array" Grow.rb

Postby TIG » Sun Jun 28, 2009 6:39 pm

There is a separate dialog at the end asking for 'order of operations'...

The latest version of 'Grow' is now available for download here viewtopic.php?p=324331#p324331
0
TIG
User avatar
TIG 
Global Moderator
 

Re: "Scaled array"

Postby pilou » Sun Jun 28, 2009 7:04 pm

Indeed that is a big Duhduh :oops: :oops: :oops:
I had a very old version! :lol:
So I must learn your new opus :enlight:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Sun Jun 28, 2009 10:31 pm

Ok that works like a charm :fro:
except that we must find first the "Growth point"!!!
the "bottom point base" of the troncated crossing edges top Pyramid! :o

Maybe this can be automatic because in this case its' easy to find it but in case of complex form?
Or biggest volume?

Mr TIG it's your turn :D
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Thu Jul 02, 2009 7:20 am

Gee, I'm glad i stumbled on this; I like Pilou had an old version....TIG, is this only relatively new? I just went to http://www.crai.archi.fr/RubyLibraryDep ... i_page.htm and the old one still downloads.....

TIG, Have you produced a instructions sheet with this latest version? I am having trouble executing what i want to do. I seem to be confused as the the 'X' and 'Y' planes....
I assume 'X' is red direction; left and right,
'Y' is green direction; up and down the screen,
and
'Z' is obvious.

When I rotate a vertical ['Z' plane] object around what i think is the RED direction it actually rotates it around the GREEN...['Y']

Also, TIG, can you give a little detailed explanation of the order of parameters...?
I have been getting an awful lot of Bugspats!!!!

Don't get me wrong, I think once I get the concept of it I will have found my new favourite plugin!!!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Thu Jul 02, 2009 7:59 am

@Utiler
Z Is not obvious, with it your model goes in the 3D space up & down! ;)
there is a little help text inside the code plug! Open it ;)

When I rotate a vertical ['Z' plane] object around what i think is the RED direction it actually rotates it around the GREEN...['Y']

It's around the BLUE AXIS ;)

Order gives you the natural order of transformations ;)

About the first problem seems you can't oblige to have 80% for have perfect fit if you don't know the other X,Y,Z measures!
it's depending of the measure of the first start volume!
See my example above! I have 50% for this one (of course with my start measures volume)


My regulates and don't forget the Growth point position (see image above)
nb copy 3
X spacing = 0
Y spacing = 0
Z spacing = 100 cm
Scaling = Yes

Xspacing scaling = 1
Yspacing scaling = 1
Zspacing scaling = 0.5

Xcopy scaling = 0.5
Ycopy scaling = 0.5
Zcopy scaling = 0.5

(all exponential+ by default)

Move Scale Rotate order (or Move Rotate Scale as the is no rotation in this one)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Fri Jul 03, 2009 2:42 am

Thanks Pilou,
I believe Z is always vertical [blue axis in SU]. If the ground plane is the ground then it makes sence to me that Z [blue axis is vertical....

See the simple Palm tree attached.
GrowTest01.png

Say I want to rotate copy and move the palm fron as noted on the attached image. Still getting weird outcomes when I try to do so...

thanks in advance.
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Fri Jul 03, 2009 9:40 am

Something like this?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Sat Jul 04, 2009 4:48 am

No, Pilou. As a Palm fron grows [pardon the pun], it faces the sky with it's flat side facing up. Sometimes, slightly rotated but for the purpose of the exersice, lets keep it simple....
This is what i mean.
GrowTest02.png

Then copy and rotate various frons to thicken up the folage...
GrowTest03.png

Then do a little 'Fredo' bending....
GrowTest04.png


So thats what i want to do with grow, however I just did this example manually...
Skippy attached FYI...
Thanks for your help with this idea, Pilou, much appreciated!! :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Sat Jul 04, 2009 1:03 pm

Ok I see :)
Maybe monday a result :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Sun Jul 05, 2009 1:04 am

Thanks Pilou, look forward to your reply..
:thumb: :thumb: :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Sun Jul 05, 2009 2:06 am

Maybe this :)
But in fact all gives cool results just try different little variations
Palm's pull up is given by negative value ;)
Here with these regulates (click image)

palm1.jpg
Palm2.jpg
0
Last edited by pilou on Mon Jul 06, 2009 3:18 am, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Mon Jul 06, 2009 1:52 am

Pilou, My Grow dialouge Box looks a little different.... older or newer?
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Mon Jul 06, 2009 2:23 am

Still not working.... :evil:
Not getting the same result as you even though I am imputting the same data...

Ready to un-install.
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby pilou » Mon Jul 06, 2009 3:15 am

You have an older version! ;)
The last version were in this same thread always by TIG ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Mon Jul 06, 2009 4:55 am

Damn!
I hate it when i feel amateurish... :oops:
Thanks Pilou, I think I am on the right track now. I will post some updates later.

Thank you kindly for your persistence.
:ecstatic:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby utiler » Mon Jul 06, 2009 5:52 am

Ok, I have loaded the new 2.1 version...

Did a little axis directions text [see attached.] It eems that the X axis directions are back to front. I would have thought that the postive directions would have been forward and the negative direction would be backwards....
Grow_-_AxisDirections1.png

Also, rotations around the Z axis are anti-clockwise. I thought it makes sense to have postive rotations clockwise and negative rotations anticlockwise.... [see also attached]

TIG, is there any reason for this?

Eitherway, I think i have it worked out. :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: "Scaled array"

Postby hsjzyangbin » Fri Dec 18, 2009 10:22 am

HI,TIG,i wish the picture just like show
0

hsjzyangbin 
 

Re: "Scaled array"

Postby TIG » Fri Dec 18, 2009 10:37 am

hsjzyangbin wrote:HI,TIG,i wish the picture just like show

You need to experiment with the 'Growth Point' origin in different places ? :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: "Scaled array"

Postby thomthom » Fri Dec 18, 2009 10:59 am

hsjzyangbin wrote:HI,TIG,i wish the picture just like show

hm... I wonder if there is a copy+rotate plugin out here already...
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: "Scaled array"

Postby TIG » Fri Dec 18, 2009 11:06 am

My Grow.rb already does this - there is an example of how to make a helical staircase in its threads...
0
Last edited by TIG on Fri Dec 18, 2009 11:15 am, edited 1 time in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: "Scaled array"

Postby thomthom » Fri Dec 18, 2009 11:10 am

TIG wrote:My Grow.rb already does this - there is an example of how to make a helical staircase in its thread...

I'm not finding it easy to find it - is it this? viewtopic.php?f=180&t=20195&p=168380&hilit=+grow#p168380

It'd be best if it was in a thread by itself and not buried inside another thread.
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: "Scaled array"

Postby TIG » Fri Dec 18, 2009 11:15 am

Grow.rb is a pretty old thing - probably predates the Forum !
It's available from Didier's Depot and if you search by author [TIG] and 'Grow' there are several threads about it where I uploaded a version for convenience, there are also examples in some threads...
Perhaps we could start a new thread to resurrect it - next week ?
0
Last edited by TIG on Fri Dec 18, 2009 11:27 am, edited 1 time in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: "Scaled array"

Postby thomthom » Fri Dec 18, 2009 11:26 am

TIG wrote:Perhaps we could start a new thread to resurrect it - next week ?

That would be good.
Didier and Fredo had/has some old versions laying around as well. I noticed the last week several users seemed to have been downloading them instead of the new versions - despite noticed about newer versions. So I wanted to do a sweep of the plugin section and remove old versions and lock old obsolete threads. With the permission of the authors - in case they deliberately left them out there for legacy reasons.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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: No registered users and 5 guests

Visit our sponsors: