sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Anyone know how to change the color of a layer?

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 7 Posters 400 Views 7 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.
    • F Offline
      fizgig
      last edited by

      I don't see any method to do so.

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        There isn't one, but it sure would be nice.

        I'm not even sure if there is a work-around.

        Hi

        1 Reply Last reply Reply Quote 0
        • F Offline
          Fletch
          last edited by

          Just click the color next to the layer name.


          LayerColor.jpg

          Fletch
          Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            This is the ruby forum Fletch πŸ˜„ He's asking for the ruby .method way of doing it I'll bet.

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • F Offline
              fizgig
              last edited by

              So it would be something like the following?

              fletch.call_in_middle_of_the_night.get_in_car.come_to_current_location.manually_change_color "Black"

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                Look for my layer.color= new method in this Forum somewhere...

                layer-color=.rb

                TIG

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @fizgig said:

                  So it would be something like the following?

                  fletch.call_in_middle_of_the_night.get_in_car.come_to_current_location.manually_change_color "Black"

                  I think that method would need to be profiled...

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

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fletch
                    last edited by

                    @fizgig said:

                    So it would be something like the following?

                    fletch.call_in_middle_of_the_night.get_in_car.come_to_current_location.manually_change_color "Black"

                    πŸ˜†
                    sorry... I clearly neglected to look at which forum I was in while perusing the "new threads" topics πŸ˜† [duh]Slap Self On Forehead[/duh]

                    Fletch
                    Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                    1 Reply Last reply Reply Quote 0
                    • X Offline
                      xrok1
                      last edited by

                      its to bad there isn't something like a macro recorder in SU where you can perform an action, then just check the code it created. 😒

                      β€œ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!

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @xrok1 said:

                        its to bad there isn't something like a macro recorder in SU where you can perform an action, then just check the code it created. 😒

                        Wouldn't help when there's no API for the action. Materials and Layers are sorely missing methods.

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

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

                        Advertisement