[Plugin] Components onto Faces v1.2.0 UPDATE May 23, 2013

[Plugin] Components onto Faces v1.2.0 UPDATE May 23, 2013

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.


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.

1.2.0 2013-23-2013
  • Extension Class Compatibility

Chris
2220
1
Last edited by Chris Fullmer on Thu May 23, 2013 11:01 pm, edited 6 times in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

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!
0

Ecuadorian 
 

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:
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: [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
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: [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.
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: [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
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: [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.
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: [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?
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: [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
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: [Plugin] Components onto Faces v0.1

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

Great work again Chris!
0

kwistenbiebel 
 

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
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

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/
0

Ecuadorian 
 

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
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

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?
0
User avatar
free agent 
 

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:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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. ;)
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: [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). ;)
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: [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
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

Re: [Plugin] Components onto Faces v0.1

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

no? i used the script!
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: [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?
0
Have I mentioned how much of a laugh I get out of some of the Signatures on here!

Click Draw 
 

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

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

Amazing Script! Cheers!
0

chango70 
 

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
0

ilay7k 
 

Re: [Plugin] Components onto Faces v0.1

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

is that normal?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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 ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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

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

Wheels2.jpg
0
User avatar
boofredlay 
Global Moderator
 

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
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: [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:
0
User avatar
boofredlay 
Global Moderator
 

Re: [Plugin] Components onto Faces v0.1

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

Ok, so I found something... :D
0
User avatar
boofredlay 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 25 guests

Visit our sponsors: