by Aerilius » Sat Aug 29, 2009 10:31 pm
I found something about painting no two adjacent regions with the same color. I twas used in the past for maps when printing techniques did not allow a large color diversity. http://en.wikipedia.org/wiki/Four_color_theoremI think the script would need to check each face's neighbouring faces.
-
Aerilius
- Top SketchUcator
-
- Posts: 1178
- Joined: Tue Dec 23, 2008 11:00 pm
- Location: Kaiserslautern
- Name: Aerilius
by kwistenbiebel » Sun Aug 30, 2009 7:40 am
Wow, great work there chris! Indeed much easier to use than the randomize color plugin, which already was great by the way.
This is the first step to having Procedural texturing in Sketchup. Fantastic!
Thanks!
-
kwistenbiebel
-
- Posts: 2681
- Joined: Thu Nov 22, 2007 6:13 pm
by EarthMover » Sun Aug 30, 2009 2:39 pm
Chris Fullmer wrote:Yeah, that is something I would like to add. My question is hsould the script only sample materials applied to the outside of groups? Or should it search all the geometry insde of groups and use all materials found?
Should it then apply materials to the geometry inside groups, or should it just apply materials to the outside of groups?
I'd imagine applying to the outside would be much easier to code. That would work for me. Vray for Sketchup hates materials applied to the outside of groups, but I usually run Matt666's Remove CG Materials script to transfer those materials to the inside of the group before using VfSU anyway. The web dialog sounds promising. In Max, there is a material by element modifier that I use to do this task. It gives you a dialog with two options.....either Random Distribution, or By Frequency. The By Frequency option lists the materials according to their material ID # and lets you adjust a percentage number for each material to determine how frequently it shows up in the assigned mesh. You can also set the material ID # of each element (group) within a mesh and assure that that element will only get one material, while the others get random. In the example of bricks, the mortar joint would be set to an ID # that get's 100% frequency, while the bricks may get an ID set to 4 different textures distributed at 25% of each.
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller Some of my 3D crap
-

EarthMover
- Top SketchUcator
-
- Posts: 1792
- Joined: Fri Sep 12, 2008 9:06 pm
- Location: Eastern Pennsylvania
- Name: Adam Hails
by Jim » Tue Sep 01, 2009 4:25 pm
- Code: Select all
require 'Sketchup.rb'
Come on, Chris! 
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Chris Fullmer » Tue Sep 01, 2009 4:51 pm
Jim wrote:- Code: Select all
require 'Sketchup.rb'
Come on, Chris! 
I'll try a little Jedi mind trick like ThomThom... You saw nothing wrong Jim. Redownload the script, you'll see there is no sloppy bad-coder typo there. There is nothing to see. Chris -fixed and reuploaded, thanks Jim! That fixed a menu bug I was experiencing too....  Man I am bad at this programming stuff, and I think I'm getting worse!
-

Chris Fullmer
- SketchUp Team
-
- Posts: 6758
- 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
-
by dominion » Mon Jan 17, 2011 11:03 pm
Chris this plugin rocks however not being able to use it on components is causing me some serious difficulty if I explode all my component blocks to the outside edge in the render then the textures are no longer tiled correctly for some reason, any idea of a work around?
Please, register (free) to access all the attachments on the forums.
-
dominion
-
- Posts: 12
- Joined: Wed Jun 02, 2010 5:24 pm
- Name: Steven Hill
by Chris Fullmer » Tue Jan 18, 2011 12:00 am
Hmm, could you upload a model that is not working right? I'm sure I could get it to work for you.
-

Chris Fullmer
- SketchUp Team
-
- Posts: 6758
- 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
-
by dominion » Tue Jan 18, 2011 10:36 am
Hi mate sorry it wont let me upload the model says its to big (5mb)
can i email it to you?
-
dominion
-
- Posts: 12
- Joined: Wed Jun 02, 2010 5:24 pm
- Name: Steven Hill
by simon le bon » Tue Jan 18, 2011 4:27 pm
Hi Chris, Excellent tool! simon PS: Hum! I hadn't once again noticed the date: "by Chris Fullmer on Thu Aug 27, 2009 8:46 am" This is a tool I hadn't discovered before, I'm sorry. 
Last edited by simon le bon on Tue Jan 18, 2011 8:21 pm, edited 1 time in total.
-

simon le bon
-
- Posts: 1077
- Joined: Sat Jan 26, 2008 10:22 am
- Location: Chouy/ Picardie/ France
- Name: Simon Bonnet
by jarynzlesa » Sat Jan 22, 2011 1:14 pm
-

jarynzlesa
-
- Posts: 280
- Joined: Wed Jan 27, 2010 10:23 pm
- Location: Czech Republic
- Name: Jaryn Zlesa
- Operating system: Windows
- SketchUp version: 7
- License type: Free/Make
- SketchUp use: woodworking
- Level of SketchUp: Beginner
-
by Skeletor » Wed Apr 03, 2013 8:56 am
Sooo close to have this work for me, but not having the ability to apply the random colors to components/groups is disheartening. Basically I have a building model with >24000 of the same components making up a facade element on a building I'm designing (student) I tried a workaround with a vray material utilizing a material made of up the bars of colors that make up the facade, but the low resolution, and the large size of the material made that a no go. Is there anything out there that could possibly take that color palate, and randomly apply (weighted or not) the colors to all like components? I really don't want to go through and apply each color separately as I can see that taking at the very least 4 hours to get it right. Anyway, thank you for the plugins you have made, I use several of yours along with a collection a others I've found here it's a wonderful resource!
-
Skeletor
-
- Posts: 2
- Joined: Wed Apr 27, 2011 9:45 am
by iordirequena » Mon Apr 29, 2013 4:09 pm
YEAAH freakin' thank you bro! really
-
iordirequena
-
- Posts: 1
- Joined: Thu Dec 06, 2012 8:21 pm
- Name: Iordi Requena
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|