• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Gradientator v1.21

Scheduled Pinned Locked Moved Plugins
54 Posts 24 Posters 45.7k Views 24 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.
  • T Offline
    thomthom
    last edited by 18 Jul 2012, 15:36

    @stuartmitch said:

    Have loaded gradientator v 1.2. When using, only the first colour is applied to the face, not all three.

    Any ideas?

    Cheers....Scotty

    You selected only one face? It doesn't do a gradient over a single face, but apply plain colours to a set of faces based on their distance from each other.

    Thomas Thomassen β€” SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 Reply Last reply Reply Quote 0
    • S Offline
      stuartmitch
      last edited by 19 Jul 2012, 01:15

      Thanks Thom Thom, is there anything you don't know about???

      I have tried it with adjoining and separate faces and it still doesn't seem to provide a Gradient of colors. Rather, it simply adds color 1 to the first face, color 2 to the second face and so on. Do I need to stipulate the degree of gradient somewhere?

      Cheers....Scotty


      Gradient.jpg

      1 Reply Last reply Reply Quote 0
      • G Offline
        gring
        last edited by 24 Jul 2012, 10:46

        thank you for sharing it!

        1 Reply Last reply Reply Quote 0
        • S Offline
          steve r
          last edited by 24 Jul 2012, 16:38

          @stuartmitch said:

          Thanks Thom Thom, is there anything you don't know about???

          I have tried it with adjoining and separate faces and it still doesn't seem to provide a Gradient of colors. Rather, it simply adds color 1 to the first face, color 2 to the second face and so on. Do I need to stipulate the degree of gradient somewhere?

          Cheers....Scotty

          It seems like the issue you might be having is with the number of faces. This plugin only applies one color to one face at a time, and doesn't sub-divide them. In the picture you've provided, it looks like you've got two different applications of the plugin, but each time it's to only three faces. So, Gradientator sees that you've got three faces selected, and just applies the three colors; no gradient needed. However, with more than three faces, it will begin to gradient to greater degrees. So, trying to replicate your image with more faces:


          http://i.imgur.com/MpHENl.png

          As you can see, it's still applying those three colors, but the "in-between" faces are getting the gradient colors, or colors that are in-between those main colors. So, the amount of gradientating you'll get is dependent on the number of faces you select at one time. Does that help?

          1 Reply Last reply Reply Quote 0
          • S Offline
            stuartmitch
            last edited by 30 Jul 2012, 03:12

            @steve r said:

            It seems like the issue you might be having is with the number of faces. This plugin only applies one color to one face at a time, and doesn't sub-divide them. In the picture you've provided, it looks like you've got two different applications of the plugin, but each time it's to only three faces. So, Gradientator sees that you've got three faces selected, and just applies the three colors; no gradient needed. However, with more than three faces, it will begin to gradient to greater degrees. So, trying to replicate your image with more faces:


            http://i.imgur.com/MpHENl.png

            As you can see, it's still applying those three colors, but the "in-between" faces are getting the gradient colors, or colors that are in-between those main colors. So, the amount of gradientating you'll get is dependent on the number of faces you select at one time. Does that help?

            Steve,

            many thanks for clarifying that for me. I had missed the point that I needed more than three faces. From the initial illustrations it had looked like only 1 face was having colours gradiented (no such word??) across it.

            I've got it now. Just needed to be belted on the head a couple of times!

            Cheers...>Scotty

            1 Reply Last reply Reply Quote 0
            • C Offline
              chuzhuo
              last edited by 19 Aug 2013, 14:47

              its so cool!

              1 Reply Last reply Reply Quote 0
              • L Offline
                leefordjudes
                last edited by 19 Oct 2014, 06:26

                It shows an error on sketchup 2014

                Error Loading File gradientator.rb
                Error: #<SyntaxError: C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/gradientator.rb:79: formal argument cannot be an instance variable
                ...ck("get_data") do |@grad_dialog,action_name|

                ... ^>

                how to

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdmitch
                  last edited by 19 Oct 2014, 14:54

                  @leefordjudes said:

                  It shows an error on sketchup 2014

                  Error Loading File gradientator.rb
                  Error: #<SyntaxError: C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/gradientator.rb:79: formal argument cannot be an instance variable
                  ...ck("get_data") do |@grad_dialog,action_name|

                  ... ^>

                  how to

                  Using Notepad or similar text editor, simply remove the '@' in |@grad_dialog,action_name| in line 79 to this

                  @grad_dialog.add_action_callback("get_data") do |grad_dialog,action_name|
                  

                  Nothing is worthless, it can always be used as a bad example.

                  http://sdmitch.blogspot.com/

                  1 Reply Last reply Reply Quote 0
                  • BoxB Offline
                    Box
                    last edited by 19 Oct 2014, 16:35

                    That works, Cheers Sd. πŸ‘

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dtrarch
                      last edited by 1 Nov 2014, 02:16

                      Thx a bunch Mitch.
                      Just plain fun to mess with. πŸ‘Ž πŸ‘Ž
                      Works too β˜€

                      dtr

                      1 Reply Last reply Reply Quote 0
                      • bomastudioB Offline
                        bomastudio
                        last edited by 17 Aug 2015, 10:08

                        In SketchUp 2015 I get the following error after the install:

                        Error: #<SyntaxError: C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/gradientator.rb:79: formal argument cannot be an instance variable
                        ...ck("get_data") do |@grad_dialog, action_name|

                        ... ^>
                        C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:144:in load' C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:144:in rt_load'
                        C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:190:in block in <module:RubyToolbar>' SketchUp:1:in call'

                        I solved changing row 79 to the end of the do block in this way

                        @grad_dialog.add_action_callback("get_data") do |grad_dialog, action_name|
                        			if action_name == "begin_gradientating"
                        				@grad_dialog = grad_dialog
                        				@coloronename = @grad_dialog.get_element_value("color_one_name")
                        				@colortwoname = @grad_dialog.get_element_value("color_two_name")
                        				@colorthreename = @grad_dialog.get_element_value("color_three_name")
                        				@grad_dialog.close
                        				gradientate(@coloronename,@colortwoname,@colorthreename,@faces,@model)
                        			end
                        			if action_name == "close_this_window"
                        				@grad_dialog.close
                        			end
                        		end
                        
                        1 Reply Last reply Reply Quote 0
                        • utilerU Offline
                          utiler
                          last edited by 13 Nov 2015, 03:34

                          So do I. Would love to try this plugin....


                          2015-11-13_1316.png

                          purpose/expression/purpose/....

                          1 Reply Last reply Reply Quote 0
                          • Dave RD Offline
                            Dave R
                            last edited by 13 Nov 2015, 10:46

                            @utiler said:

                            So do I. Would love to try this plugin....

                            Andrew, did you try the solution offered by sdmitch? I just tried it and that makes it work in SU2015.
                            Screenshot - 11_13_2015 , 4_59_02 AM.png

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by 13 Nov 2015, 11:40

                              @utiler said:

                              So do I. Would love to try this plugin....
                              The post just before yours offers a solution http://sketchucation.com/forums/viewtopic.php?p=575140#p575140, and @sdmitch gave an even simpler version a few posts earlier http://sketchucation.com/forums/viewtopic.php?p=541222#p541222
                              Just edit the RB using a plain-text editor like Notepad++, then find the do |@grad_dialog, text around line #79, and remove the @ so it's do |grad_dialog,.
                              Save the RB and restart SketchUp...
                              Since the @grad_dialog is defined earlier it is not necessary to redefine it in the do block, so using ANY name which doesn't start with a @ will work !

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • utilerU Offline
                                utiler
                                last edited by 15 Nov 2015, 08:42

                                Thanks Dave / TIG. Trust me to jump into a new plugin without reading through recent posts.... Cheers, I'll give it a crack tonight!

                                purpose/expression/purpose/....

                                1 Reply Last reply Reply Quote 0
                                • utilerU Offline
                                  utiler
                                  last edited by 16 Nov 2015, 00:28

                                  πŸ˜‰ Worked a treat, guys. Thanks!!!

                                  I'll post in a few days what I needed it for. Glad to share.... πŸ˜‰

                                  purpose/expression/purpose/....

                                  1 Reply Last reply Reply Quote 0
                                  • pilouP Offline
                                    pilou
                                    last edited by 16 Nov 2015, 11:24

                                    Works fine! πŸ˜„

                                    domino.jpg

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

                                    1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      GianfrancoGalli
                                      last edited by 6 Aug 2016, 09:53

                                      hi, just landed on this post. the plugin is not working in make 15/16. i can select it in both Make 15 as 16, but it's not doing anything.
                                      i've used v1.21. downloaded it to C:\Users\YOUR USERNAME\AppData\Roaming\SketchUp\SketchUp 201X\SketchUp\Plugins

                                      thanks for your thoughts!

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdmitch
                                        last edited by 8 Aug 2016, 16:27

                                        @gianfrancogalli said:

                                        hi, just landed on this post. the plugin is not working in make 15/16. i can select it in both Make 15 as 16, but it's not doing anything.
                                        i've used v1.21. downloaded it to C:\Users\YOUR USERNAME\AppData\Roaming\SketchUp\SketchUp 201X\SketchUp\Plugins

                                        thanks for your thoughts!

                                        http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=45951%26amp;p=601292#p541222

                                        Nothing is worthless, it can always be used as a bad example.

                                        http://sdmitch.blogspot.com/

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JaysonBata
                                          last edited by 3 May 2020, 09:02

                                          why is it not functioning to my sketchup 2017? 😞

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement