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

    [Plugin] Add Layer [1.1.0]

    Scheduled Pinned Locked Moved Plugins
    58 Posts 23 Posters 12.7k Views 23 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.
    • K Offline
      ktkoh
      last edited by

      I downloaded this plugin from the SU Store for the purpose of learning the SKUI interface.
      However while testing I was not able to get the check box "Layer visible on selected Scene only" to create a new layer.

      Error; #<NameError; undefined local variable or method `txt_LayerName' for JF;;AddLayer;Module>
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/main.rb;155;in `add_layer'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/main.rb;110;in `block in main'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/events.rb;82;in `call'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/events.rb;82;in `block in trigger_event'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/events.rb;78;in `each'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/events.rb;78;in `trigger_event'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;357;in `event_control_callback'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;311;in `callback_handler'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;269;in `block in add_callback'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;203;in `call'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;203;in `show_modal'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/SKUI/window.rb;203;in `show'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/main.rb;145;in `main'
      C;/Users/Keith/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jf_add_layer/main.rb;185;in `block in <module;AddLayer>'
      -e;1;in `call'
      

      The other options worked as expected. Note: this also failed in 2013 with a slightly different error message.

      Keith

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

        Keith - I am looking into this, but can not reproduce it in any version from 2008 thru 2014.

        Hi

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

          Keith - I believe this is fixed in version 1.0.1. Let me know.

          Thanks for taking the time to report the error.

          Hi

          1 Reply Last reply Reply Quote 0
          • K Offline
            ktkoh
            last edited by

            Yes it is fixed now.

            Keith

            1 Reply Last reply Reply Quote 0
            • jiminy-billy-bobJ Offline
              jiminy-billy-bob
              last edited by

              @jim said:

              I don't mind, but I really think you should implement this in Layers Panel natively

              Done!

              http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=53906%26amp;p=519458#p519458

              Thanks a lot πŸ˜‰

              25% off Skatter for SketchUcation Premium Members

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

                Updated to version 1.1.0 using a Dropdown for selecting and changing the visibility properties.

                Hi

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dedmin
                  last edited by

                  Win7 - Personalization - Set Custom text size (DPI)- 125%
                  2014-04-12_091257.jpg

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

                    Thanks for the report - I am researching a fix.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • tt_suT Offline
                      tt_su
                      last edited by

                      Jim, what version of SKUI are you using? I thought I had it fixed, because I use 125% scaling on my Win7 MacBook pro due to the retina screen.

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

                        SKUI/version.rb says "0.1.0"

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • tt_suT Offline
                          tt_su
                          last edited by

                          I haven't been updating SKUI version - as I haven't made a release of it. I mean, are you using the latest committed version from GitHub?

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

                            I thought so, but 3 files have been updated in SKUI and not in Add Layer:

                            core.rb
                            embed_skui.rb
                            js/ui.js

                            But those changes are related to FILE encoding, and browser detection.

                            Hi

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

                              @otb designworks said:

                              I am running mac 10.9.5 and SU2015. This plugin is not working at all on my system. It will create a new scene, regardless of visibility settings, but this scene is visible on all existing and new layers. It is as if I had used the + button in the Scene Palette.

                              It was installed through the Sketchucation Plugin

                              Thoughts?
                              I am confused πŸ˜•
                              This Plugin opens a dialog so you can make a new Layer or modify the behaviors of a selected existing Layer.
                              The Layer's 'behavior' relates to Scene tabs, and it is in three parts.

                              • Visible in selected [current] Scene tab only
                              • Visible/Hidden in existing Scene tab
                              • Visible/Hidden in new Scene tabs
                                It does not create Scenes ?

                              You seems to be jumbling Layer and Scene πŸ˜•
                              Please clarify...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • O Offline
                                otb designworks
                                last edited by

                                I am running mac 10.9.5 and SU2015. This plugin is not working at all on my system. It will create a new layer, regardless of visibility settings, but this layer is visible on all existing and new scenes. It is as if I had used the + button in the Layer Palette.

                                It was installed through the Sketchucation Plugin

                                Thoughts?

                                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
                                • O Offline
                                  otb designworks
                                  last edited by

                                  Yeah, TIG, you had every right to be confused as my original post was, in fact jumbling layers and scenes. I have edited it to reflect what I am seeing correctly.

                                  In short, no matter the settings I choose in the plugin, I get a new layer that is visible on all existing and new scenes.

                                  Sorry for the confusion.

                                  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
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    OK, maybe Jim needs to test/comment...

                                    TIG

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

                                      Are you hitting the Apply button?

                                      Hi

                                      1 Reply Last reply Reply Quote 0
                                      • O Offline
                                        otb designworks
                                        last edited by

                                        I am. It is creating the layer after I do, but the layer visibility is as if I set it to always visible for existing and new scenes, regardless of what I input. I went back to using your old create hidden layer plugin which has been indispensable to me for years and it works fine in SU2015

                                        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
                                        • O Offline
                                          otb designworks
                                          last edited by

                                          Well, no I wasn't actually. I just went back and realized that I created the new layer name, made my visibility chooses, and then hit done. doh.

                                          It is amazing how well it works when one hits apply first.

                                          Thanks guys, I'm sorry to waste everyone's time

                                          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
                                          • J Offline
                                            Jim
                                            last edited by

                                            Not wasted at all - the fact that my guess was correct validates a suspicion I had that the plugin is not as intuitive as it needs to be. Thanks for reporting.

                                            I find the core of many plugins can be written in few lines of code. It is far more difficult to create a good user experience.

                                            Hi

                                            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