[Plugin] Color by Z (Updated August 27th, 2009)

Re: [Plugin] Color by Z

Postby xrok1 » Sun Feb 15, 2009 4:51 am

Daniel S wrote:SU7 has an option called Combine Textures (The Combine Textures menu item combines separate textures on adjacent co-planar faces into a single larger texture. This feature also, optionally, removes edges between co-planar faces to reduce the polygon count for the model as a whole. Context-click on multiple selected parallel faces, with at least one face having a texture, and select Combine Textures to create a texture which is unique to that set of faces.)
This is a great tool, but it will be more usefull if it`s extended into curved surfaces. This Color by Z or the Tools On Surface are examples of plugins that will be benefit.

Daniel S



how can you get to this tool? i can't find it, tried RC menu?
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] Color by Z

Postby Chris Fullmer » Sun Feb 15, 2009 5:09 am

Here's a video on using combine textures.



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] Color by Z

Postby xrok1 » Sun Feb 15, 2009 5:25 am

thats sweet. thank you very much for that. coincidentally you just answer a another question, i was trying to figure out how to make a painted wall texture for skindigo, but i couldn't figure out how get SK to UV map surfaces with just white material on it so i could apply displacement. now after watching your vid i figure i can just make unique my material then it should be uv'ed. :berserk:

thank you
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] Color by Z

Postby linea » Sun Feb 15, 2009 8:20 am

Good idea Chris, thanks
0

linea 
 

Re: [Plugin] Color by Z

Postby urgen » Sun Feb 15, 2009 6:10 pm

...nice idea Chris! :thumb: :D
0
--pupil forever...------
User avatar
urgen 
 

Re: [Plugin] Color by Z

Postby solo » Sun Feb 15, 2009 7:01 pm

Cool and thanks, this should come in handy.

0
http://www.solos-art.com

If you see a toilet in your dreams do not use it.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Color by Z

Postby Chris Fullmer » Mon Feb 16, 2009 3:36 am

Solo, was that made with the plugin or with the image gradient method?

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] Color by Z

Postby Gaieus » Mon Feb 16, 2009 3:05 pm

Hi Chris and all,

I haven't been able to drop by the Ruby Dept for days so I might be a bit late... Do you know however Didier's "paint_altitude_faces.rb" by any chance? It works kind of similar (only with the gradients of the same colour):
http://www.crai.archi.fr/RubyLibraryDep ... n_page.htm
There's also a demonstration video supplied.

All in all, yours is a very cool plugin with this texture gradient! :thumb:
0
User avatar
Gaieus 
 

Re: [Plugin] Color by Z

Postby Chris Fullmer » Mon Feb 16, 2009 7:29 pm

Yeah, I have a tendency to not look around to see if similar scripts exist before starting one (I think there were already about 4 version of a random pushpull script before I wrote mine, for example). Mostly because I'm still just writing these for the experience and they each teach me a new little portion of the Ruby SketchUp API. But I definitely need to watch out for that before I embark on any seriously large and in-depth projects I suppose!

So I tried to check his out, and its only painting black faces on my model regardless of what color I select. I suppose it might be a units thing? but I changed my model units to metric with no luck. Also the avi file wouldn't play for me so I couldn't see it in action. I even tried playing it with mPlayer, which generally plays anything you throw at it. But that didn't work. It came out all garbled.

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] Color by Z

Postby thomthom » Mon Feb 16, 2009 10:09 pm

Chris Fullmer wrote:So I tried to check his out, and its only painting black faces on my model regardless of what color I select. I suppose it might be a units thing? but I changed my model units to metric with no luck. Also the avi file wouldn't play for me so I couldn't see it in action.

Ditto.
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: [Plugin] Color by Z

Postby Gaieus » Tue Feb 17, 2009 12:15 pm

Okay guys, don't ask me. I just remembered seeing the ruby in the list about two ears ago (never tried). Maybe it has problems with SU 6+? The video plays to me and Didier uses a blue colour for the demo.
0
User avatar
Gaieus 
 

Re: [Plugin] Color by Z - Sketchup as GIS urban analysis tool?

Postby chan » Fri Feb 20, 2009 3:47 am

This is just great Chris. Thank you so much.
I deal with many diffrent urban projects and
I clearly see that Skechup with smart programmers like yourself
has great potential in evolving into sth not only for visual outcomes but
for urban analysis.
Color by Z is already a great start isn't it?
Could this kind of approach broadens to....
- analyze daytime shadow coverage ratio
- density analysis(maybe by comparing # of lines certain area contains)
- open view condition by z

and so on and so on...

If anyone is interested, I would love to discuss about it(just can't program it ;( ).
Thanks again Chris.
Untitled.jpg
0

chan 
 

Re: [Plugin] Color by Z

Postby Chris Fullmer » Fri Feb 20, 2009 6:18 am

"analyze daytime shadow coverage ratio"

That is one that has been on my mind lately. I just can't figure out how to figure out the percentage calculations because there is no easy way to get that data out of SU I think. So I would essentially have to find get the location data from the model, and evaluate each face myself using the sun angles every 15 minutes or something and run that on each face etc. I'm really not sure how that would go or if its even feasible. It would be cool if it was.

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] Color by Z (Updated August 27th, 2009)

Postby rinaldo » Sat Oct 10, 2009 4:27 pm

Erro ao carregar o arquivo clf_color_by_z.rb
No such file to load -- progressbar.rb
0

rinaldo 
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby TIG » Sat Oct 10, 2009 4:59 pm

rinaldo wrote:Erro ao carregar o arquivo clf_color_by_z.rb
No such file to load -- progressbar.rb

Download progressbar.rb free from SMustard...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby snorky » Sun Feb 28, 2010 10:11 am

doesn't work for me.
Code: Select all
Error: #<ArgumentError: comparison of Float with nil failed>
(eval):44:in `>'
(eval):44:in `update'
0

snorky 
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby Chris Fullmer » Sun Feb 28, 2010 5:27 pm

You need to have progressbar from http://www.smustard.com installed also. Go install the plugin and then see if the plugin works after that,

Chris

PS - thanks for posting the error!
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] Color by Z (Updated August 27th, 2009)

Postby snorky » Sun Feb 28, 2010 7:03 pm

Chris Fullmer wrote:You need to have progressbar from http://www.smustard.com installed also. Go install the plugin and then see if the plugin works after that,

Chris

PS - thanks for posting the error!
I have it...
sorry for uncompleted quoting, this is right error:
Code: Select all
Error: #<ArgumentError: comparison of Float with nil failed>
(eval):44:in `>'
(eval):44:in `update'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/clf_color_by_z.rb:140:in `colorbyz'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/clf_color_by_z.rb:138:in `each'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/clf_color_by_z.rb:138:in `colorbyz'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/clf_color_by_z.rb:174
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/clf_color_by_z.rb:174:in `call'

and sorry for my poor enghish
0

snorky 
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby Chris Fullmer » Sun Feb 28, 2010 7:25 pm

Try removing component spray from you plugins, then try my script. See if that is the problem.

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] Color by Z (Updated August 27th, 2009)

Postby snorky » Mon Mar 01, 2010 12:05 am

Chris Fullmer wrote:Try removing component spray from you plugins, then try my script. See if that is the problem.

Chris
yeeeeeeeeeeeees!
but... if you know that... can you solve it? component spray is very usefull for me :)

...by the way... yours is a good script!
0

snorky 
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby thomthom » Mon Mar 01, 2010 12:16 am

snorky wrote:
Chris Fullmer wrote:Try removing component spray from you plugins, then try my script. See if that is the problem.

Chris
yeeeeeeeeeeeees!
but... if you know that... can you solve it? component spray is very usefull for me :)

...by the way... yours is a good script!

Update to the latest version of Component Spray. The old Component Spray caused problems.
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: [Plugin] Color by Z (Updated August 27th, 2009)

Postby snorky » Mon Mar 01, 2010 2:09 pm

thomthom wrote:Update to the latest version of Component Spray. The old Component Spray caused problems.
:oops:
works fine now...

EDIT!!!

sorry, doesn't work!
I remove old component spray tool and forgot to put new!
now I try with new compo-spray.rb but error is still there
0

snorky 
 

Re: [Plugin] Color by Z (Updated August 27th, 2009)

Postby Chris Fullmer » Mon Mar 01, 2010 4:02 pm

That is the second error report in the last 2 days that component spray is not fixed. But it was fixed a while ago, so I'm not sure what happened. Maybe Didier updated it and re-broke it? :evil:
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] Color by Z (Updated August 27th, 2009)

Postby yvani » Mon Oct 29, 2012 5:16 pm

hello Chris,
My first post on this great site, and many thanks for this very useful script!
Another great implementation would be to give as well possibility to have a gradient of transparency (I am thinking now of cloud generation....)
0

yvani 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: CronusEX, KimixArt, Mikesc3 and 11 guests

Visit our sponsors: