• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[Plugin] GreyscaleMode

Scheduled Pinned Locked Moved Plugins
133 Posts 56 Posters 146.4k Views 56 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    juju
    last edited by 2 Sept 2008, 07:09

    Thanks Jim.

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

    1 Reply Last reply Reply Quote 0
    • P Offline
      plot-paris
      last edited by 2 Sept 2008, 07:44

      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. πŸ‘

      @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. πŸ˜„

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pixero
        last edited by 2 Sept 2008, 10:54

        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:

        Greyscale = (r * 0.3) + (g * 0.59) + (b * 0.11);
        
        1 Reply Last reply Reply Quote 0
        • D Offline
          Daniel S
          last edited by 2 Sept 2008, 11:28

          Great!!! 😍
          Thank you Jim!!!

          Daniel S

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dave R
            last edited by 2 Sept 2008, 13:02

            Coen, I couldn't find a way to do this with existing style settings. I'd be happy to learn it though.

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • O Offline
              otb designworks
              last edited by 2 Sept 2008, 13:06

              Thanks Jim!

              Cheers, Chuck

              OTB Designworks is on Youtube

              6 core nMP, 32 gig RAM, (2) D700 GPU's, dual monitors

              1 Reply Last reply Reply Quote 0
              • D Offline
                drewpoeppel
                last edited by 2 Sept 2008, 15:07

                Thanks a ton this is VERY helpful.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gaucho
                  last edited by 2 Sept 2008, 16:48

                  Good stuff Jim, thanks!

                  "eat well, stay fit, die anyway..."

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sepo
                    last edited by 2 Sept 2008, 17:58

                    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 ....

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dave R
                      last edited by 2 Sept 2008, 18:02

                      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. πŸ˜‰

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sepo
                        last edited by 2 Sept 2008, 18:06

                        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.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Dave R
                          last edited by 2 Sept 2008, 18:12

                          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.

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sepo
                            last edited by 2 Sept 2008, 18:19

                            Actually I think you are correct ... discard the last bit πŸ˜‰

                            1 Reply Last reply Reply Quote 0
                            • U Offline
                              utiler
                              last edited by 3 Sept 2008, 00:04

                              @unknownuser said:

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

                              1 Reply Last reply Reply Quote 0
                              • Z Offline
                                zed252000
                                last edited by 3 Sept 2008, 03:31

                                TY " You're Good !!"

                                Whatever we IMAGINE....

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Jim
                                  last edited by 3 Sept 2008, 09:28

                                  @utiler said:

                                  @unknownuser said:

                                  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...

                                  Hi

                                  1 Reply Last reply Reply Quote 0
                                  • U Offline
                                    utiler
                                    last edited by 3 Sept 2008, 10:25

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

                                    1 Reply Last reply Reply Quote 0
                                    • Z Offline
                                      zed252000
                                      last edited by 5 Sept 2008, 15:50

                                      πŸ‘Š
                                      this is just Awesomely Good.
                                      Thanks!

                                      Whatever we IMAGINE....

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        Jim
                                        last edited by 8 Sept 2008, 00:22

                                        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.

                                        Hi

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          Dave R
                                          last edited by 8 Sept 2008, 01:05

                                          Jim,

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

                                          Dave

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 1 / 7
                                          1 / 7
                                          • First post
                                            20/133
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement