SketchUcation Plugin Store

 

 

[Plugin] Components onto Faces v1.0 (Updated Mar 15th 2009)

[Plugin] Components onto Faces v1.0 (Updated Mar 15th 2009)

Postby Chris Fullmer » Sun Mar 08, 2009 3:03 am

Components onto Faces v1.0 (Chris Fullmer Tools)
Description: Copies a component onto all selected faces
Usage: Select a single component and a series of ungrouped faces. Then run this script. It will copy that component onto all the faces. It will ignore any edges, groups, images, etc that are in the selection set. If more than one component is selected, it will use the first one it encounters.


Chris

New in v1.0
Added components on Face Collections. This solves the problem of terrains that are made up of squares that are actually 2 triangles with the centerline smoothed. This new tool treats a collections of smoothed faces as a single face.
New in v1.1
Added triangle face support. It used to not copy components onto triangle faces very well. Now it correctly finds their centerpoint. New video to go along with it too.
Please, register (free) to access all the attachments on the forums.
Last edited by Chris Fullmer on Mon Mar 16, 2009 12:54 am, edited 5 times in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
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] Components onto Faces v0.1

Postby Ecuadorian » Sun Mar 08, 2009 3:18 am

Impressive. Most impressive.

Chris, did you have any experience with programming before Ruby? I ask because I have yet to find a Ruby guide written for a total beginner like me, with no coding background. Perhaps you could write an e-book!
Ecuadorian
 
Posts: 1621
Joined: Thu Jan 15, 2009 10:20 pm
Location: Ecuador
Name: Miguel
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 3:20 am

that's so great! and i love how you always attach video to your script posts. :D

you help make this place great, thankyou.

PS you're a big part of making my menus and toolbars so cluttered, don't you feel guilty? :lol:
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby Chris Fullmer » Sun Mar 08, 2009 3:35 am

xrok1 wrote:PS you're a big part of making my menus and toolbars so cluttered, don't you feel guilty? :lol:


Actually!, something I didn't announce but did include in this script is a new menu system for my scripts. They will now all be placed under a "Chris Fullmer Tools" submenu. So every new script you download will install itself into that menu automatically. When I get around to it, I'm also going to update my already released scripts so that they will organize themselves into theis menu too. So then all my scripts will be in there. It will be much less clutter. Once I get the scripts updated, I'll start a thread that points to all current downloads so you can re-download everything and get the new organization.

And thanks for the kind words. It's fun to make scipts, but its especially nice when people let you know they appreciate your work. Well, until I start making something I can charge for. Then just cold hard cash will suffice :)

And I have a little bit of script background, but I really mean very little. Coming into Ruby, I sort of understood the basics of what programming is, but thats all. And learning ruby has been a rocky road for me (which Todd, Rick, Thom, Jim will all attest to). They've been very helpful answering my many beginner questions. So if you're gonna learn, this is the place and the time to do it. And I am planning on writing some tutorials. I just keep putting it off thinking I should wait until I know better what I'm talking about :)

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
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] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 3:49 am

thats just sick!
Capture.JPG


BTW good idea with the tool folder, i hope it catches on.
Please, register (free) to access all the attachments on the forums.
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 3:50 am

i guess this solves Ecuadorian's copy on road problem. :D
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby Chris Fullmer » Sun Mar 08, 2009 3:54 am

Though there is no way to orient the components in my script. They just get put however SU decides they should go. So it still might well require that the user rotates each one to get it facing the direction they want. Maybe I could have my script activate the move tool after its done because it has a great built in rotate feature that works based on the components axis, which is just what would be desired in this case.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
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] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 4:07 am

ahh, yes i see what you mean. do the face bounding boxes have an axis you could align with?
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby MALAISE » Sun Mar 08, 2009 9:22 am

Chris, the one who writes ruby script faster than his shadow :D

Cheers

MALAISE
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] Components onto Faces v0.1

Postby kwistenbiebel » Sun Mar 08, 2009 12:57 pm

Great work again Chris!
kwistenbiebel
 
Posts: 2668
Joined: Thu Nov 22, 2007 6:13 pm

Re: [Plugin] Components onto Faces v0.1

Postby Click Draw » Sun Mar 08, 2009 5:29 pm

Hi Chris,

Thanks for this. Your very quick to respond to a request. I have a couple more but will give you some breathing time. Thanks again!!!

Cheers, 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] Components onto Faces v0.1

Postby Ecuadorian » Sun Mar 08, 2009 5:40 pm

Chris Fullmer wrote:And I have a little bit of script background, but I really mean very little.


I hope assigning basic functions (play, stop) to Flash buttons in ActionScript also count as a "little experience", as that's all I have done, and I have already forgotten how it was done...

Anyway, I've found this Ruby interactive tutorial for anyone interested:
http://tryruby.hobix.com/

Hackety Hack also seems to be a good resource, but they're currently updating it:
http://hacketyhack.net/
Ecuadorian
 
Posts: 1621
Joined: Thu Jan 15, 2009 10:20 pm
Location: Ecuador
Name: Miguel
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Components onto Faces v0.1

Postby Click Draw » Sun Mar 08, 2009 5:42 pm

Any way to apply a brick like finish to a wall? Multiple components to face?
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] Components onto Faces v0.1

Postby Free Agent » Sun Mar 08, 2009 7:20 pm

thank you, very handy script!! and good idea for grouping your scripts into one subfolder, everyone should do that, soon the plug-ins menu will be a list of ruby script writers names. :lol:

question: is there another 3d with more plug-ins than sketchup?
User avatar
Free Agent
 
Posts: 273
Joined: Thu Jun 05, 2008 10:00 am
Location: Cape Town, South Africa
Name: Sean

Re: [Plugin] Components onto Faces v0.1

Postby Pilou » Sun Mar 08, 2009 8:14 pm

The inverse of the Spray components by Didier Bur ;)
And totally indispensable for many different uses! :enlight:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10055
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 10:18 pm

Click Draw wrote:Any way to apply a brick like finish to a wall? Multiple components to face?
Jeff

yes, but there are easier ways!
Capture.JPG


PS chris as you can see there is some logic to the alignment, :oops: but i'm sure you know that better than i. ;)
Please, register (free) to access all the attachments on the forums.
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby xrok1 » Sun Mar 08, 2009 11:44 pm

Well, until I start making something I can charge for. Then just cold hard cash will suffice :)


i bet people would pay for a soft selection tool that would function with all the other tools, move, scale...:D

the codes even hanging around in there somewhere (smoove). ;)
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby Click Draw » Mon Mar 09, 2009 12:46 am

Hey xrok1,

I assume you just used copy and paste???

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] Components onto Faces v0.1

Postby xrok1 » Mon Mar 09, 2009 1:23 am

no? i used the script!
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby Click Draw » Mon Mar 09, 2009 1:32 am

Really?....kinda feeling silly now....how did you do it?
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] Components onto Faces v0.1

Postby xrok1 » Mon Mar 09, 2009 1:43 am

well... are you ready for this?

1] use construction grid (ruby) to make a grid
2] use edges from construction lines (ruby) to convert construction lines to lines
3] delete every second vertical line, staggering each row
4] use make faces (ruby) to make faces
5] build a brick and make it a component
6] run Components onto Faces v0.1 (ruby)
:lol:

i told you there were easier ways.
if i had to do it all over again i would just make a rectangle the size of a brick with half a mortar joint. inset the face a little...
you know the rest.
“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
 
Posts: 1966
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky

Re: [Plugin] Components onto Faces v0.1

Postby chango70 » Mon Mar 09, 2009 1:45 am

Amazing Script! Cheers!
chango70
 
Posts: 587
Joined: Tue Mar 25, 2008 3:06 pm
Location: London

Re: [Plugin] Components onto Faces v0.1

Postby ilay7k » Mon Mar 09, 2009 9:46 am

Chris, thank you for such panelization tool!
I attached sample with slightly modified by Fredo's tools
Uhh, need quads for for beautiful visualization for panels
Please, register (free) to access all the attachments on the forums.
ilay7k
 
Posts: 314
Joined: Wed Nov 14, 2007 3:49 pm
Location: Shymkent, Kazakhstan
Name: Ilya Shpilkin

Re: [Plugin] Components onto Faces v0.1

Postby Pilou » Mon Mar 09, 2009 11:24 am

is that normal?
Please, register (free) to access all the attachments on the forums.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10055
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Components onto Faces v0.1

Postby Pilou » Mon Mar 09, 2009 12:48 pm

About your bug of 2 components on a "same face" :enlight:

A tricky thing with your "Select lines by lenght" ;)

Make the Surface with the Sandbox "By scratch"
Explode it
Enable Hidden geometry
Select one little diagonal of a square
your very tricky "Select lines by lenght"
Delete it
"Components onto faces"
Et voilà! :fro:

Edit hum hum works only if the tin stay "flat" :mrgreen:
Maybe use the Smart Drop in addition! By a4architect :enlight:
Soon little tut ;)
Please, register (free) to access all the attachments on the forums.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10055
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Components onto Faces v0.1

Postby Chris Fullmer » Mon Mar 09, 2009 4:25 pm

Wow, great stuff everyone! I really like that paneled wall ilay. Looks great. And thats a cool method using smart-drop Frenchy. Thanks for showing it.

Oh, and the menu is how I made it, but not really for any good reason I guess. I was hoping to have one or two other items in that sub-sub menu too, but I have not got them written yet. So I was planning ahead, but perhaps too early. Hopefully in time I'll get some more ability written into this script. I am currently working on solving the triangulated faces issue. I think I have a solution. I think.

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
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] Components onto Faces v0.1

Postby boofredlay » Tue Mar 10, 2009 2:28 am

Wheels2.jpg
Please, register (free) to access all the attachments on the forums.
User avatar
boofredlay
Global Moderator
 
Posts: 9008
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Components onto Faces v0.1

Postby Chris Fullmer » Tue Mar 10, 2009 2:53 am

You could do some serious off-roading with those tires! Or some serious damage. Either way, they look super cool!

Is each face truly one square face and not 2 triangle faces with the middle line smoothed? If it is 2 triangles, how did you get around that issue where it copies a component to each of the 2 faces?

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
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] Components onto Faces v0.1

Postby boofredlay » Tue Mar 10, 2009 3:46 am

Each is a single face, not 2 triangles.
I used the sphere ruby to create a sphere then used your script to apply the component to a portion of the sphere. Then I deleted the extra and filled in with sidewalls. The bad part is I cannot think of any cool vehicle to place these under :lol:
User avatar
boofredlay
Global Moderator
 
Posts: 9008
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Components onto Faces v0.1

Postby boofredlay » Tue Mar 10, 2009 5:18 am

Ok, so I found something... :D
Please, register (free) to access all the attachments on the forums.
User avatar
boofredlay
Global Moderator
 
Posts: 9008
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: amandaypurnomo, Ceiras, kapanga, rodman100, sanderson, viniciusteles, Wolfman69, zeleniy and 19 guests