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

Call for attention - context handlers and validation procs

Scheduled Pinned Locked Moved Developers' Forum
24 Posts 10 Posters 33.3k Views 10 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
    fredo6
    last edited by 7 Nov 2010, 07:16

    @thomthom said:

    Sample output for a selection of about 100K entities:

    Context Handler

    bezierspline_main.rb:2413:in load_all_menus' [...] extensions.rb:36:in load'
    5.657 seconds[/ruby]

    I fixed the one for BezierSpline, with an upgrade.
    see http://forums.sketchucation.com/viewtopic.php?f=323&t=13563&p=100509#p100509

    Fredo

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 7 Nov 2010, 10:07

      πŸ‘

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

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pout
        last edited by 10 Nov 2010, 14:02

        Reminds me of something simular I seem to have in big models when rightclicking a material.
        The rightclick window just doesn't pop-up

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 10 Nov 2010, 14:31

          @pout said:

          Reminds me of something simular I seem to have in big models when rightclicking a material.
          The rightclick window just doesn't pop-up

          Yea - I've noticed that too. Very annoying. But that menu isn't accessible to ruby plugins. So I think that one is on Google's shoulders.

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

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 23 Jan 2011, 16:25

            @unknownuser said:

            @thomthom said:

            Sample output for a selection of about 100K entities:

            Context Handler

            bezierspline_main.rb:2413:in load_all_menus' [...] extensions.rb:36:in load'
            5.657 seconds[/ruby]

            I fixed the one for BezierSpline, with an upgrade.
            see http://forums.sketchucation.com/viewtopic.php?f=323&t=13563&p=100509#p100509

            Fredo

            Bezierspline_main is still sort-of slow for me - it takes 8 seconds for the context menu to pop-up for 75,000 selected entities. (I admit to having a sub-standard pc.)

            Hi

            1 Reply Last reply Reply Quote 0
            • F Offline
              fredo6
              last edited by 23 Jan 2011, 21:19

              @jim said:

              Bezierspline_main is still sort-of slow for me - it takes 8 seconds for the context menu to pop-up for 75,000 selected entities. (I admit to having a sub-standard pc.)

              Jim,

              I made a change in the script.
              see main post on BezierSpline

              Is is better with this release

              Thanks

              Fredo

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 23 Jan 2011, 21:24

                πŸ‘

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

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mitcorb
                  last edited by 23 Jan 2011, 21:43

                  Are you saying that each and every plugin is "polled" each time you wish to do something whether you "invoke" that/those plugins or not? If so, is that efficient? Keep in mind I don't know the terminology, and I certainly don't fully understand.

                  I take the slow, deliberate approach in my aimless wandering.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 23 Jan 2011, 21:56

                    @mitcorb said:

                    Are you saying that each and every plugin is "polled" each time you wish to do something whether you "invoke" that/those plugins or not? If so, is that efficient? Keep in mind I don't know the terminology, and I certainly don't fully understand.

                    Not every plugin, but when a plugin want to add a context menu a function is run - and if the plugin tried to evaluate the whole selection or do any processor expensive calculations in this function it'll delay the context menu.

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

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mitcorb
                      last edited by 24 Jan 2011, 03:50

                      Ok, that makes some sense, thanks. Evidently, the context menu is lower in priority?

                      I take the slow, deliberate approach in my aimless wandering.

                      1 Reply Last reply Reply Quote 0
                      • Dan RathbunD Offline
                        Dan Rathbun
                        last edited by 24 Jan 2011, 05:41

                        not really... the context menu is "built on the fly"...

                        The menu needs to know what items and submenus it will need to display. It cannot know what they will be until Sketchup processes all the context_menu_handlers.

                        I'm not here much anymore.

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

                        Advertisement