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

    [Plugin Update] Ruby Console Pro with SketchTalk in Motion++

    Scheduled Pinned Locked Moved Plugins
    28 Posts 7 Posters 171.1k 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.
    • D Offline
      driven
      last edited by

      @martinrinehart said:

      Did three tests, none of them using pause/resume: 22, 32 and 40 sec. (All should have been 32.)

      the current, 'select all' file is running at 13.5 sec from pressing play until end without using pause, what are you timing?
      EDIT: Sometimes, I get 35>37 sec if I re-run 'without' (me) deleting the existing 4 boxes (from a previous run) other times the same thing still runs fast... It is the camera move file, but the non cam version runs at 13.5ish as well

      @unknownuser said:

      Does Video Player look OK on Mac? Had to play tricks to get it to look right in MSIE.

      Where is the WD container generated/sized? I was going to see if I could restrict it to the button block size or add some Mac only features as an experiment, but I can't find where you hid it...

      bit plain, but adequate

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

      1 Reply Last reply Reply Quote 0
      • M Offline
        MartinRinehart
        last edited by

        Timing: 3 tests ranging from 31+ to just under 33 for a 32 second model. (Stupid me: was setting start time at go. Now setting it, correctly, when you click to start.)

        @driven said:

        Where is the WD container generated/sized?

        In the Conductor initialize() method, sketch_talk_motion_classes.rb, line 217. Then position fiddled in video_player.html in the <body> tag. This is what I want:

        video_player.jpg

        Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

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

          @martinrinehart said:

          This is what I want:

          although this probably isn't what you want, I've been using it to try making a MSIE/Safari controller just using text (no images)

          I think it looks quite good, but when trying to load from RCPro in PC SU, I kept getting bugsplats, which I put down to me and windows or the ruby,,,

          however, when I returned to OSX SU and tried to load from RCPro it also crashed...

          after a restart I loaded it with Ruby Console Editor (which I partly wrote it in) and it works fine.

          I then went back to PC SU and ran it from Ruby Console...

          There are other PC issues with the file , but it does load from Ruby Console and not RCPro...

          might be good for bug testing... if you want to have a look, I'll PM the file...

          three states in one image, click green to go, red to pausehow do you, add shadows, get rid of scrollbars, contorl the box size, and , and, and.....
          EDIT: Similar but different, not as nice in IE, now to try PC/SU again....ahhhhh
          got it similar in IE using same script for both browsers

          john

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

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            Cool!

            <body scroll=no> MSIE only and should never be used (unless you are locked into MSIE, as we are).

            {overflow: hidden;} This is another one you almost never want to use, but, in the case at hand ...

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

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

              dlg.show_modal
              @martinrinehart said:

              Cool!

              <body scroll=no> MSIE only and should never be used (unless you are locked into MSIE, as we are).

              {overflow: hidden;} This is another one you almost never want to use, but, in the case at hand ...

              Hi Martin, I finally got it to work, still not functioning, just the WD bit using shadowed/glow fonts, which you can change colours around in code (not done yet), i.e on action, on hover, etc... I'll PM the file...

              dlg.show()

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

              1 Reply Last reply Reply Quote 0
              • M Offline
                MartinRinehart
                last edited by

                UL'd minor bug fix version, 6/14.

                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pout
                  last edited by

                  Hello Martin,

                  This seems to be very interesting but somehow i don't really understand what it is for.
                  I suppose en environment in which you can easily code animations in Sketchup?

                  Thx for helping me out here

                  (btw the airshow is great)

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

                    @martinrinehart said:

                    Ruby Console Pro

                    Magnificent Martin! simply Magnificent!

                    This console is exactly what i have been lamenting about since i first used SketchUp! Had SketchUp included a GUI kit i would of created something like this myself! However i bow to you!

                    Any who, i had a few questions/suggestions for improvement...

                    1. Can you combine the input and output windows into one window. Preferably with the output window at the bottom. I have no idea if things like "sizable panes" are available for user customization of the sizes? However even with no customization it would be a nice alternative to have both in one window.

                    2. I noticed pressing tab does not insert a tab char into the text area, it just does the usual "tabbing" of focus though the widgets. Can this be overridden to insert a tab? I don't care about losing the "tabbing" ability!

                    PS: oh and i did also have a problem with the buttons being cut off at the top (like a previous poster had mentioned). However I played around with the padding values and was able to rectify it. I am using Vista+SU7+Chrome. So just an FYI.

                    Thanks again Martin!

                    Always sleep with a loaded gun under your pillow!

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MartinRinehart
                      last edited by

                      @jessejames said:

                      @martinrinehart said:

                      Ruby Console Pro

                      1. Can you combine the input and output windows into one window.

                      2. I noticed pressing tab does not insert a tab char into the text area, it just does the usual "tabbing" of focus though the widgets. Can this be overridden to insert a tab?

                      Missed this post. Sorry.

                      1. Yes, but don't want to. Arrange them how you like. They come up as you left them, next time.

                      2. Textareas are lame. Wish we had better. Many times I've enthusiastically started on a serious editor/ide, only to run into some insurmountable textarea roadblock.

                      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        MartinRinehart
                        last edited by

                        @unknownuser said:

                        For the still-ruby-challenged,...

                        Start with Chapter 11 and continue through Chapter 17. You'll become Ruby-literate. It's not hard.

                        @unknownuser said:

                        1. what about using q to do rotations in an arbitrary direction not defined by the planes?

                        All my rotate stuff allows you to specify a plane ('rg', 'rb' or 'gb') or an axis. See my Leaning Tower of Pisa in the doc.

                        @unknownuser said:

                        1. I've got an existing model with several groups that need to move around in a related, but not quite identical, way.

                        That's where ruby literacy has to come in. Alternatively, some brilliant insight that shows me how to create a generic solution to things that move in a related but non-identical way. Brilliant insights are always welcome.

                        Martin

                        Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                        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