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

Need to add keyboard shortcuts to Scenes

Scheduled Pinned Locked Moved Developers' Forum
35 Posts 8 Posters 6.2k Views 8 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
    Kesian
    last edited by 5 Jan 2012, 14:37

    All great answers. Thank you. It's exactly what I need and what I expected to send as feedback up the chain. And no, I have some small background with Python but I am no savant LOL.

    We don't need to strip any menu from Sketchup as the presentation software already displays SU full screen with no UI. We are strictly focused on assigning a hotkey per Scene. That is all. If you experts say this cannot be done, it cannot be done. We are stuck with what does work.

    We currently use the page-up and page-down. That works fine, but if we are on Scene 18 and someone in the audience wants to look at Scene 6 and ask a question we'd rather that person able to press a button on their mini-numberpad for scene 6 and go there directly.

    The iPad solution is already on the table for a number of our test cases. I'll be happy if budgeting clears it.

    I can't say more about the presentation software as it is built by another company and is still under NDA. It does work with other platforms and is all kinds of interactive awesome. We are merely using SU for the current test.

    Thank you for all the answers.

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 5 Jan 2012, 14:43

      You can make a tool, that will allow you to type a number then press Enter/Return and it would jump to that scene. That can be done within minutes.

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

      1 Reply Last reply Reply Quote 0
      • K Offline
        Kesian
        last edited by 5 Jan 2012, 14:44

        @thomthom said:

        Well, adding shortcuts to navigate between scene can be done.

        Either menu items that can be hooked up to shortcuts that will step to the next or previous scene. Or via a tool that triggers the next, previous scene via the arrow keys. As for jumping to specific scenes, this will depend on how many scenes, if it's few scens you could hook up 0 - 9 keys. If thre is more - then I'm not sure - it would depend on how many scenes there is...

        Right. For larger numbers of scenes we'd have to work in Alt- or cntr- in there. But you are saying it can be done. I just need to figure out where to start hehe. Once I'm going I'll be going.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 5 Jan 2012, 14:47

          @kesian said:

          @thomthom said:

          Well, adding shortcuts to navigate between scene can be done.

          Either menu items that can be hooked up to shortcuts that will step to the next or previous scene. Or via a tool that triggers the next, previous scene via the arrow keys. As for jumping to specific scenes, this will depend on how many scenes, if it's few scens you could hook up 0 - 9 keys. If thre is more - then I'm not sure - it would depend on how many scenes there is...

          Right. For larger numbers of scenes we'd have to work in Alt- or cntr- in there. But you are saying it can be done. I just need to figure out where to start hehe. Once I'm going I'll be going.

          Better yet to look at my previous response - about using Tools. It's basically only the onReturn method you need to implement:
          http://code.google.com/apis/sketchup/docs/ourdoc/tool.html#onReturn

          Then use the input to determine what scene to activate: http://code.google.com/apis/sketchup/docs/ourdoc/pages.html#selected_page=

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

          1 Reply Last reply Reply Quote 0
          • K Offline
            Kesian
            last edited by 5 Jan 2012, 14:48

            @thomthom said:

            You can make a tool, that will allow you to type a number then press Enter/Return and it would jump to that scene. That can be done within minutes.

            I mulled that one over yesterday but if the software hides the UI the question is would would involve how to get the window display.

            1 Reply Last reply Reply Quote 0
            • K Offline
              Kesian
              last edited by 5 Jan 2012, 14:50

              Thx for the links. I'll mess around with it.

              1 Reply Last reply Reply Quote 0
              • T Online
                TIG Moderator
                last edited by 5 Jan 2012, 14:51

                I don't think he can do what he wants inside Sketchup.
                However, as a set of still images and animations could easily be exported and compiled into an html document [Word is an easy way], with bookmark hyperlinks to each image etc, and with some code editing with Notepad++ to embed the AVIs etc he can have a single document he can 'present'.
                To jump at random from image to image to video etc the hyperlinks can be to simple #A, #B bookmarks that are accessed using a simple AutoHotKeys ahk script...
                This zip file contains a very simple example.
                Extract it to a folder and run my cobbled together AutoHotKey AutoJump.ahk script - if you don't have the AutoHotKey then use the AutoJump.exe compiled version - you can still read the ahk version in Notepad++ to see what it does.
                Open the SKP.htm file in IE [must be IE as the AutoJump is set to only work in IE].
                The original SKP v8 is in the folder too.
                In the browser press 1/2/3/4 to toggle through the Images A/B/C/D - the images are accessible in any order of key press.
                To see the short AVI Movie press Win+M and play it [it can be set to autostart or not in the html]. To return to the top of the page press Win+Z.
                Read the Word generated html file in Notepad++ to see the added AVI embedding code not visible in Word.
                It's very rough and ready, and it needs a lot of refining and trapping etc BUT it works... ๐Ÿ˜ฎ


                SKP_ie.zip

                TIG

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 5 Jan 2012, 14:52

                  Are you saying that SU won't be able to get keyboard events?

                  I imagines that the script would activate the tool at startup / model load and just sit there accepting input - changing the scene based on the number entered by the user. Or go to prev / next with the Up / down - Left / right key.

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

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Kesian
                    last edited by 5 Jan 2012, 14:52

                    Unfortunately that won't work for what we are doing. We are doing fly throughs, not just images.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thomthom
                      last edited by 5 Jan 2012, 14:53

                      @tig said:

                      I don't think he can do what he wants inside Sketchup.

                      Navigate between scenes with the keyboard? From what I gather that's all he's asking for - which should not be a big deal.

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

                      1 Reply Last reply Reply Quote 0
                      • T Online
                        TIG Moderator
                        last edited by 5 Jan 2012, 14:55

                        No, he [originally] said he wanted to disable the mouse and not show any of the menus etc... and 'play animations' to boot...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Online
                          TIG Moderator
                          last edited by 5 Jan 2012, 14:57

                          He can only have a set of premade movies but doing an interactive, off the cuff flythrough without a lot of experience / skill would be near fatal !

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            Kesian
                            last edited by 5 Jan 2012, 14:57

                            No, I said "Because Sketchup will be run through another presentation software package, the user will not have access to menu or mouse click."

                            We aren't trying to disable anything. Just add scene functionality.

                            1 Reply Last reply Reply Quote 0
                            • T Online
                              TIG Moderator
                              last edited by 5 Jan 2012, 14:59

                              The advantage of an html based solution is that pages of text, photos etc etc can also be inserted and accessed from hot-keys too...
                              He needs a multimedia solution, not a bodged SKP navigation fix up...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                Kesian
                                last edited by 5 Jan 2012, 15:03

                                Anyway. Big thanks to everyone. Problem solved. Based on all the answers the Boss found another solution and told his bosses that things are just what they are. As you said Thom, it took him a matter of minutes. LOL.

                                1 Reply Last reply Reply Quote 0
                                • T Online
                                  TIG Moderator
                                  last edited by 5 Jan 2012, 15:03

                                  You can't run a SKP through another app.
                                  You are limited to the contents of the SKP in the presentation, IF you use the SKP.
                                  Your boss better be very familiar with the project and the SKP setup, etc if he's doing this on the fly... embarrassing to bump into walls and accidentally select something etc as you present!
                                  I think a multimedia solution made from images/movies exported from SKPs, plus text and photos etc would appear more professional, and hot-keys can easily navigate around the html document as my simple example shows...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    Kesian
                                    last edited by 5 Jan 2012, 15:09

                                    @tig said:

                                    The advantage of an html based solution is that pages of text, photos etc etc can also be inserted and accessed from hot-keys too...
                                    He needs a multimedia solution, not a bodged SKP navigation fix up...

                                    TIG it's no trouble. I see what you are getting at and I am crippled by the fact that I can't show you what we are actually doing so that you understand. I don't think assigning hotkeys in SU is a bodged fix up in this scenario.

                                    Yes we are running SU through other software. That is exactly what we are doing. I am now cleared to tell you that what we are doing is channeling SU in an immersive multi-wall, multi-monitor 3D environment. So SU's functionality is there, we just can't see the UI.

                                    1 Reply Last reply Reply Quote 0
                                    • T Online
                                      TIG Moderator
                                      last edited by 5 Jan 2012, 15:26

                                      But if you are 'running Sketchup' it must be running on a PC [even if you can't see it] and thereby you can have access to it through that.
                                      As far as I know you can't run a SKP inside another application.
                                      If your presentation is mutli-screen etc then it's still Sketchup at the base level ๐Ÿ˜•

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 5 Jan 2012, 15:31

                                        He never said he was running SU inside another application - that was your words.

                                        He said:

                                        @unknownuser said:

                                        Because Sketchup will be run through another presentation software package,

                                        Which I read as an application that controls SU - something that hides the UI elements and ensure that only the viewport is visible.

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

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thomthom
                                          last edited by 5 Jan 2012, 15:32

                                          And my impression is that they already have this software package - they just needed the keyboard shortcut controller for the scenes...

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

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

                                          Advertisement