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

    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.
    • D Offline
      driven
      last edited by

      get a macon a mac I can get this with as a workspace, if you use a digital whiteboard or projector you could crop the bottom as well.

      if you wrote a simple 'go to scene*' type webdialog with keycodes to trigger 'status = pages.show_frame_at *' ruby calls

      with a shortcut key to toggle the WD you could 'Orbit', 'Pan' and 'Zoom' with the mouse and change scenes with keyboard

      then you could have another shortcut to toggle between fullpage SU and your fullpage presentation running in a second 'Space' using Spaces.

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        John, have you ever been successful in getting a Purchasing Dept to buy and deliver anything within 18 days ?

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Anton_S
          last edited by

          Perhaps, there is the way to set the keyboard shortcuts to scenes and prevent the user from interfering with sketchup model, but it will require the user to have Sketchup on windows operating system, and Input Procedure plugin. Input Proc can block the mouse and keyboard messages from interfering with SU and still get their input. You could make the hook proc turn on as soon as the user opens your presentation model. You could set keys 1 - 9 or/and a -z for shortcuts and key escape to turn off the model. But again it requires Windows Operating System, Sketchup, inputproc plugin, and your own script plugin that would turn on the hook once your presentarion file is being open. I could easily write a script for that, you'd just have to fill in the names of scenes and the name of your skp presentation file.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            IMHO, the only answer viable within 18 days, is to use two (2) computers,
            1 runs the slideshow in the presentation application.
            The other runs Sketchup with your demo model.

            You have a mouse and keyboard for the orator, and the projector hooked to both computers via a 2-port KVM (keyboard-video-mouse) Switch.
            The orator switches his keyboard and mouse (and the projector,) back and forth between the 2 computers as needed throughout the presentation.

            Check out the various 2-port KVM switches available at newegg:
            http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007790%20600012891&IsNodeId=1&name=2%20Ports
            Bestbuy and TigerDirect have them also.

            For best results run both computer videos at the same vertical refresh rate.

            I'm not here much anymore.

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

              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...

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

              1 Reply Last reply Reply Quote 0
              • PixeroP Offline
                Pixero
                last edited by

                Why does it have to be SketchUp?
                We have recently started using 3d PDFs for interactive presentations.
                http://www.simlab-soft.com/3d-plugins/3D-PDF-from-sketchup-main.aspx
                Also good if you don't want the customer to have the actual SU model.

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

                  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
                  • thomthomT Offline
                    thomthom
                    last edited by

                    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

                      @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
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @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

                          @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

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

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

                              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
                              • thomthomT Offline
                                thomthom
                                last edited by

                                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

                                  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
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

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

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

                                        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

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

                                            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
                                            • 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