SketchUcation Plugin Store

 

 

[Plugin] GreyscaleMode

[Plugin] GreyscaleMode

Postby Jim » Mon Sep 01, 2008 5:01 pm

Dave R somehow talked me into writing this plugin, so here's a video and a download.

The plugin switches the in-model material colors to grey scale, and back again. The grey color is calculated as an average of the RGB values.

The model can be saved in Grey mode, and the original colors will be preserved upon opening the model again. Color changes made in Grey mode will be kept.

While in Grey mode, right-clicking a face will revert the face's material back to its original color.



GreyScale is available from here
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

Re: [plugin] GreyscaleMode

Postby remus » Mon Sep 01, 2008 6:00 pm

Cheers jim, works like a charm.
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus

Re: [plugin] GreyscaleMode

Postby solo » Mon Sep 01, 2008 6:11 pm

Cool, not sure I will need it but I collect ruby's and this one works great.

My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10774
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] GreyscaleMode

Postby Daniel S » Mon Sep 01, 2008 6:13 pm

Great!!! :ecstatic:
Thank you Jim!!!

Daniel S
Last edited by Daniel S on Tue Sep 02, 2008 12:28 pm, edited 2 times in total.
Daniel S
 
Posts: 349
Joined: Mon Nov 12, 2007 6:06 pm
Location: Mar del Plata, Buenos Aires, Argentina

Re: [plugin] GreyscaleMode

Postby solo » Mon Sep 01, 2008 6:23 pm

Even beter, it renders in grey scale too.



My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10774
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin] GreyscaleMode

Postby Frederik » Mon Sep 01, 2008 6:36 pm

Cool..!! :thumb:
Thanks..!! :D
User avatar
Frederik
Top SketchUcator
 
Posts: 2177
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] GreyscaleMode

Postby Dave R » Mon Sep 01, 2008 7:14 pm

Here's my public thank you to Jim, too.

THANKYOU!


Once I get permission to release them, I'll show some images I used it for.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9011
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby mateo soletic » Mon Sep 01, 2008 7:20 pm

Jim, thanks , great one. :thumb:
mateo soletic
 
Posts: 1184
Joined: Mon Nov 12, 2007 6:04 pm
Location: Dubrovnik,Croatia

Re: [plugin] GreyscaleMode

Postby JuanV.Soler » Mon Sep 01, 2008 7:34 pm

thats is a great plugin Jim.
i would make it in voice too for a better and quicker understanding.
i think.
and thankyou :))
_,_)))_,_
User avatar
JuanV.Soler
 
Posts: 1161
Joined: Tue Nov 13, 2007 8:39 am
Location: Málaga. Spain.
Name: Juan Víctor
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Intermediate

Re: [plugin] GreyscaleMode

Postby urgen » Mon Sep 01, 2008 9:23 pm

...thanks! :thumb: :thumb: :thumb:
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [plugin] GreyscaleMode

Postby utiler » Mon Sep 01, 2008 11:31 pm

First of all I'll echo Dave_R's comments. Jim, you are a generous fella...

For those of you who didn't see how this evolved, see viewtopic.php?f=40&t=12226&p=88778#p88778

Sometime, a schematic presentations seem to be best a little less 'in your face' in grey scale...

I tried it out on a little modular house I designed...

The only problem with it is that it doesn't act like 'face styles' in that changing from one scene to another it doesn't save with styles....

Not complaining though!!! :sketchstatic: Would love to see it included in SU7.0 face styles...
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby Juju » Tue Sep 02, 2008 8:09 am

Thanks Jim.
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
Juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Julian Smith

Re: [plugin] GreyscaleMode

Postby plot-paris » Tue Sep 02, 2008 8:44 am

thanks a lot Jim! this ruby is a nice enhancement for producing stylised output with SketchUp
utiler, you did a perfect example what the script can be used for. :thumb:

@Remus (completely off topic): I really like the reincarnation of your avatar-image. its a bit like Gandalf the Grey / Gandalf the White - I had to look twice, but I did recognice you in your new guise. :D
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] GreyscaleMode

Postby Pixero » Tue Sep 02, 2008 11:54 am

Jim: I see you use the average of r, g and b to get the greyscale color.
A often used and more visually correct way is to use this formula:
Code: Select all
Greyscale = (r * 0.3) + (g * 0.59) + (b * 0.11);
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1289
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby Dave R » Tue Sep 02, 2008 2:02 pm

Coen, I couldn't find a way to do this with existing style settings. I'd be happy to learn it though.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9011
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby OTB Designworks » Tue Sep 02, 2008 2:06 pm

Thanks Jim!
Cheers, Chuck

MY BLOG

Become a fan of OTB Designworks on Facebook, we'd love to have you!

3.2ghz 8 core Mac Pro. 10 gig RAM, 8800 GT GPU, dual monitors
OTB Designworks
 
Posts: 495
Joined: Mon Nov 12, 2007 3:13 pm
Location: Northwest US
Name: chuck

Re: [plugin] GreyscaleMode

Postby drewpoeppel » Tue Sep 02, 2008 4:07 pm

Thanks a ton this is VERY helpful.
drewpoeppel
 
Posts: 73
Joined: Thu Feb 21, 2008 8:49 pm
Location: Milwaukee, WI

Re: [plugin] GreyscaleMode

Postby gaucho » Tue Sep 02, 2008 5:48 pm

Good stuff Jim, thanks!
"eat well, stay fit, die anyway..."
gaucho
 
Posts: 73
Joined: Wed Jan 30, 2008 4:14 pm
Location: London
Name: Giovani Cervo

Re: [plugin] GreyscaleMode

Postby sepo » Tue Sep 02, 2008 6:58 pm

Nice ...It renders black and white in Podium but keeps the colour of the sky ( i presume ground as well)
It would be nice to be able to choose say one colour which could stay as colour ...
Thanks Jim ....
sepo
 
Posts: 1562
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] GreyscaleMode

Postby Dave R » Tue Sep 02, 2008 7:02 pm

Sepo, after making the model all grey, right click on a face containing the color you wish to show. Choose Revert color from the menu. ;)
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9011
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby sepo » Tue Sep 02, 2008 7:06 pm

Aha...cheers Dave did not pick that up...Cool. Any chance to actually have more than 10 shades of grey. That would make renders nicer.
sepo
 
Posts: 1562
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] GreyscaleMode

Postby Dave R » Tue Sep 02, 2008 7:12 pm

As I understand it, Jim's method of creating the gray values is to average the RGB values and apply that number to all of the RGB settings. I don't think we're limited to 10 steps as was discussed in the other thread.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9011
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby sepo » Tue Sep 02, 2008 7:19 pm

Actually I think you are correct ... discard the last bit ;)
sepo
 
Posts: 1562
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] GreyscaleMode

Postby utiler » Wed Sep 03, 2008 1:04 am

Coen Naninck wrote:I like it and thanks, but can't this be done using a Style?


I agree, Coen. A face style. That way we could save it to styles and scenes.....

It wound allow us to 'revert color' in a style / scene though I wouldn't think..... Jim?
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby zed252000 » Wed Sep 03, 2008 4:31 am

:berserk: TY " You're Good !!"
Whatever we IMAGINE....
zed252000
 
Posts: 17
Joined: Fri Feb 22, 2008 1:17 pm
Location: Manila, Philippines
Name: Cyrus

Re: [plugin] GreyscaleMode

Postby Jim » Wed Sep 03, 2008 10:28 am

utiler wrote:
Coen Naninck wrote:I like it and thanks, but can't this be done using a Style?


I agree, Coen. A face style. That way we could save it to styles and scenes.....

It wound allow us to 'revert color' in a style / scene though I wouldn't think..... Jim?


Thanks and you're welcome, everyone.

Having it work as a Face Style would be nice. Face Styles can be selected in Ruby by setting an option called the RenderMode. There is just not a way to create a new Face Style that I can see.

Like Dave said, I don't think a Style is an option either. There is no control over individual colors in a Style.

The idea of saving material changes between Scenes is a completely separate plugin...
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

Re: [plugin] GreyscaleMode

Postby utiler » Wed Sep 03, 2008 11:25 am

You're right Jim, that's the only thing that restricts it from being a 'face style' option. It would be nice to be able to "update scene" individually rather than a ruby that effects the model period....but that takes away from the "reverse color" option....

I guess if this was a face style and we wanted to 'spot color' an element, we could set up diferent components and scenes then import into Layout and overlay scenes.....a round about way of doing things though and getting into another topic, 'more than one style in a drawing / file'.

Five Star, Jim.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] GreyscaleMode

Postby zed252000 » Fri Sep 05, 2008 4:50 pm

:knockout:
this is just Awesomely Good.
Thanks!
Whatever we IMAGINE....
zed252000
 
Posts: 17
Joined: Fri Feb 22, 2008 1:17 pm
Location: Manila, Philippines
Name: Cyrus

Re: [plugin] GreyscaleMode

Postby Jim » Mon Sep 08, 2008 1:22 am

Hi Guys,

A word of caution; utiler has reported he was not able to get the right-click "revert" color option using this plugin. I'm not sure why, but it may mean that the script could "forget" your original material colors. I'm looking into it.

EDIT: There is no danger of loosing the original colors. The error was caused because the default color returns nil when asked for its material.
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

Re: [plugin] GreyscaleMode

Postby Dave R » Mon Sep 08, 2008 2:05 am

Jim,

Thanks for the warning. I haven't seen that problem but I'll keep my eyes open and let you know.

Dave
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9011
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], chavinskee, chris87, IAho, Jazelle3, pinturasurealista, yingning and 13 guests