SketchUcation Premium Membership

 

 

[Plugin] Component Spray Tool 1.3.

[Plugin] Component Spray Tool 1.3.

Postby Didier Bur » Sun Aug 03, 2008 3:06 pm

COMPO SPRAY 1.3 is now obsolete.
DOWNLOAD version 1.4 (Jan, 2nd 2011) here: http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=76


New thread on SketchUcation here: http://forums.sketchucation.com/viewtopic.php?f=323&t=33908

Hi all,
Here is an update of the component spray tool (updated PDF doc included).

What's new in 1.3.:
New "shape" option to drop component at each vertex of selected faces.
Bug fix when loading the script on Mac.
Bux fix that froze the script when no destination layer were specified.
Enjoy !

EDIT:
Last version posted 03.09.10 (no more progressbar conflict, not an rbs)
Last edited by Didier Bur on Tue Jan 04, 2011 3:57 pm, edited 6 times in total.
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby CadFather » Sun Aug 03, 2008 3:29 pm

thanks!
Quarr-IT - SketchUp Training from the Master.. . ;) .
User avatar
CadFather
 
Posts: 789
Joined: Fri Nov 16, 2007 11:03 am
Location: London, Milano, Sicily
Name: Max Coppoletta

Re: [Plugin] Component Spray Tool 1.3.

Postby ilay7k » Sun Aug 03, 2008 4:07 pm

Thank you :thumb:
Have good time at holidays! :family:
ilay7k
 
Posts: 308
Joined: Wed Nov 14, 2007 3:49 pm
Location: Shymkent, Kazakhstan
Name: Ilya Shpilkin

Re: [Plugin] Component Spray Tool 1.3.

Postby remus » Sun Aug 03, 2008 5:39 pm

What a treat, cheers didier.
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus

Re: [Plugin] Component Spray Tool 1.3.

Postby Frederik » Sun Aug 03, 2008 6:59 pm

Thanks, Didier..!! :D
This is just so GREAT..!! :berserk:
User avatar
Frederik
Top SketchUcator
 
Posts: 2168
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby Jon » Sun Aug 03, 2008 7:38 pm

Thanks a LOT! :berserk:
Jon
KT Team member
Jon
 
Posts: 269
Joined: Fri Nov 16, 2007 12:56 pm
Location: Ontario, Canada

Re: [Plugin] Component Spray Tool 1.3.

Postby Dylan » Sun Aug 03, 2008 9:27 pm

Thanks Didier......enjoy the holiday
Dylan
 
Posts: 1932
Joined: Mon Oct 22, 2007 1:41 pm
Location: Royston (Herts), UK
Name: Dylan Morton

Re: [Plugin] Component Spray Tool 1.3.

Postby chango70 » Sun Aug 03, 2008 11:29 pm

:ecstatic:
chango70
 
Posts: 587
Joined: Tue Mar 25, 2008 3:06 pm
Location: London

Re: [Plugin] Component Spray Tool 1.3.

Postby wq418 » Mon Aug 04, 2008 2:46 am

Thanks a lot!
you are great!
wq418
 
Posts: 14
Joined: Tue Apr 08, 2008 8:23 am

Re: [Plugin] Component Spray Tool 1.3.

Postby rv1974 » Mon Aug 04, 2008 8:08 am

Didier thanks for your efforts!
One can get interesting things with new vertice mode.

[URL=http://g.imageshack.us/g.php?h=212&i=screenshot060qi3.jpg][IMG]http://img212.imag
But there's bug in vertex+no to keep vertical . It's not working (see lonely cylinder over mesh, in all other cases components stay vertical)
To "keep vertical" unchecked will result the component to be placed vertical to mesh, it'll work this way, right?
P.S. I'm not programmer (my wife is- it's enough for one family) but you're one step from "spray along vertices of curve" ? ;)
P.P.S. Do you shine in ruby field only or there are some lisp routins of yours?
Last edited by rv1974 on Mon Aug 04, 2008 8:42 am, edited 1 time in total.
rv1974
 
Posts: 512
Joined: Tue Nov 13, 2007 11:38 am
Name: rv1974
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby plot-paris » Mon Aug 04, 2008 8:26 am

what a great enhancement, Didier!

the vertex spray function is very neat. would have come in handy for a project I had to finish on frieday :D

this fantastic new feature gives me the idea of a "selected face spray tool" - basically a combination of this new vertex-spray option and the spray-pressure variable. you select the faces of the terrain, where you want trees and choose the density (like 70%). now the plugin sprays only on the selected faces of the terrain, but regardless of the vertex distribution (because the density of vertexes can be very irregular in my terrains, unless i use the terrain-reshaper ;) )

but first enjoy your holiday!
and thanks again for the update :ecstatic:
User avatar
plot-paris
 
Posts: 1553
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 Spray Tool 1.3.

Postby MALAISE » Mon Aug 04, 2008 9:38 am

Thanks Didier, faboulous tool

MALAISE :D
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

Re: [Plugin] Component Spray Tool 1.3.

Postby plot-paris » Mon Aug 04, 2008 9:53 am

it is really great.with this new vertex-function the component-spray tool goes far beyond a mere tool for creation of random assemblies of components. you can now use it to accurately place entities, like in the following short example:

create a rastered face (with the sanbox tool) and create a component (of a column for example (Gaieus, don't be mad with me because of the colum's base shape - it's not ment to be historically accurate :D )


then delete all the faces arround a shape you want the columns to be placed along and select the remaining faces


now use the new vertex mode of the component spray tool (make sure, that random rotation is inactive), and you can easily get some nice architectural assemblies


great, Didier - I love this new tool!!! :ecstatic:


PS: it is even easy to place components along rounded shapes...
User avatar
plot-paris
 
Posts: 1553
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 Spray Tool 1.3.

Postby kwistenbiebel » Mon Aug 04, 2008 9:56 am

:berserk: Didier is da man !

Great work! I'll be trying it this week as soon as I find the time.
The vertices mode sounds like a very useful option.
kwistenbiebel
 
Posts: 2666
Joined: Thu Nov 22, 2007 6:13 pm

Re: [Plugin] Component Spray Tool 1.3.

Postby marcosrodrigues » Mon Aug 04, 2008 12:54 pm

Thank you, Sir!
| menos é mais
marcosrodrigues
 
Posts: 54
Joined: Tue Jun 10, 2008 2:14 am
Location: Salvador, Brasil
Name: Marcos

Re: [Plugin] Component Spray Tool 1.3.

Postby sepo » Mon Aug 04, 2008 1:02 pm

Wow... This is a very good news.
sepo
 
Posts: 1559
Joined: Wed Nov 14, 2007 1:19 pm
Location: Northampton UK
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby Fletch » Tue Aug 05, 2008 7:59 pm

plot-paris... I haven't used this tool yet. :oops: but I've read the 'manual'... and I think you can already select faces and spray only on the faces... like your wish you mention below...
Fletch
Twilight Render
 
Posts: 760
Joined: Wed Nov 14, 2007 1:02 am
Location: Milwaukee, WI USA / Rovinj, Croatia

Re: [Plugin] Component Spray Tool 1.3.

Postby wyatt » Tue Aug 05, 2008 8:17 pm

Thanks for the update. I love this script!
Wyatt
wyatt
 
Posts: 338
Joined: Wed May 28, 2008 3:41 pm
Location: Manhattan, Kansas
Name: Wyatt
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Intermediate

Re: [Plugin] Component Spray Tool 1.3.

Postby Gaieus » Thu Aug 07, 2008 3:46 pm

That's a nice one Jacob, indeed! And thanks Didier for the script of course! :thumb:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27604
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby plot-paris » Thu Aug 07, 2008 4:47 pm

thanks Gaieus.

oh, and Fletch, you are right. it is already possible. it even automatically chooses the "spray on selection" option, when some faces are selected - so cool! :thumb:
User avatar
plot-paris
 
Posts: 1553
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 Spray Tool 1.3.

Postby majid » Sat Aug 09, 2008 10:40 am

tanx tanx tanx and a word : tanx Didier
درصورتيكه به مساله اي برخورديد(مثل وارد نشدن به سايت، فراموش كردن پسورد و غیره با ما تماس بگیریدhttp://sketchucation.com/contact
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Component Spray Tool 1.3.

Postby jiegou » Sat Aug 09, 2008 1:17 pm

thanks. :berserk:
jiegou
 
Posts: 2
Joined: Mon Dec 24, 2007 4:39 am

Re: [Plugin] Component Spray Tool 1.3.

Postby sbthomas » Thu Aug 21, 2008 10:51 pm

I am trying to use the component spray tool to place trees on terrain from google earth. The trees intersect the ground fine on the hills but in the valley they are hovering above the surface. What am I doing wrong??

Thank you guys
sbthomas
 
Posts: 4
Joined: Thu Aug 21, 2008 10:12 pm

Re: [Plugin] Component Spray Tool 1.3.

Postby plot-paris » Fri Aug 22, 2008 7:38 am

do you have any geometry on a hidden layer in that valley (buildings for example). because the Component Spray Tool does regard hidden layers as well.

@Didier,

is it possible to change that, so that only active layers are taken into consideration? that would be awesome.
User avatar
plot-paris
 
Posts: 1553
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 Spray Tool 1.3.

Postby Didier Bur » Fri Aug 22, 2008 3:02 pm

is it possible to change that, so that only active layers are taken into consideration? that would be awesome


No, because the raycast ruby method does not support hidden entities or inactive layer :(
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby sbthomas » Fri Aug 22, 2008 7:10 pm

I have not added anything to the su file but the image/terrain from GE and the bilboard style tree that I'm trying to multiply. When you import the tree it will fall on the surface on the hilltops or in the valley, but when you try to spray the tree (even with the point style) the tree doesn't want to drop to the ground in the valleys. Is the Z placement limited to the zero elevation(I see negative and positive elevation limits in the spray dialog box)?

Thanks for trying to help.

STAN
sbthomas
 
Posts: 4
Joined: Thu Aug 21, 2008 10:12 pm

Re: [Plugin] Component Spray Tool 1.3.

Postby Chris Fullmer » Sat Aug 23, 2008 6:03 am

Hi Didier, I have some requests that I wouldn't mind seeing in a script like this. I'll list them below and if any are interesting to your or easy to incorporate, I'd be thrilled! Ok, so I mostly like to use 2d faceme components, so I think my ideas might be more useful for 2d faceme plants/trees and people.

1. The ability to create pre made lists of components. So currently you have 6 slots to set the components. But editable lists would be cool. So I could make a large list of all my 2d faceme people, then a different list of all my 2d faceme sillhouette people. Both of these lists are much larger than 6 components, so it would be cool if there was something of a component group editor. So instead of selecting the components one by one, I could choose from my lists I had previously put together. This is probably my #1 request if you want to add it :)

2. Skip this one, it was random size. I got it work - excellent!

3. The point and click method should be random (I think). So it doesn't just go in the order of the list. Or maybe a radio tickbox allowing for random order, or following the list order.

4. Perhaps being able to save different default profiles. So I can set up a default spray for people, then a default for large forrest trees, one for small bushes, etc. This might not be the most important thing to implement, but could be interesting?

I think that is it for now. I had put a lot of thought into a similar script a while ago, but I can't rememebr everything. So if I think of anything more, I'll be sure to add it to this thread :)

Again, awesome work Didier. I plan on using this regularly.

Chris Fullmer
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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 Spray Tool 1.3.

Postby Gaieus » Sat Aug 23, 2008 10:14 am

Stan,

Can it be the case that your terrain valleys are under the ground level in SU (I mean they have negative values on the z axis)?
Because if so, the GE Snapshot (which is a horizontal face on 0 z axis) would stop the trees falling under it.
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27604
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby Didier Bur » Sat Aug 23, 2008 7:21 pm

Hi,
Spray tool doesn't mind if there are negative coordinates. This must be something else that prevents the trees to land on the terrain...
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Component Spray Tool 1.3.

Postby sbthomas » Sun Aug 24, 2008 1:33 am

Gaieus; I think you are right. The GE snapshot seems to be limiting the z placement of trees even if I toggle terrain on. I'll break the GE snapshots up to smaller sections to see if I can get around the problem for now. If there is a way to adjust the axis of the snapshot to make this work better let me know.

Thanks
STAN
sbthomas
 
Posts: 4
Joined: Thu Aug 21, 2008 10:12 pm

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

Next

Return to Plugins

Who is online

Users browsing this forum: cdauscher, Dave R, erom, Google Bot, jpalm32, lllPrince, MSN Bot, salleex, zimpa and 10 guests