sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Keyframe Animation Error! (tweens creation)

    Scheduled Pinned Locked Moved Plugins
    13 Posts 5 Posters 2.3k Views 5 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.
    • Rich O BrienR Offline
      Rich O Brien Moderator
      last edited by

      .skb is a backup of the .skp

      Are you opening .skb files or .skp files?

      Download the free D'oh Book for SketchUp 📖

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

        Sorry, you right, its .SKP

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

          Without fuller details of your folder-paths, file-names etc we can't be sure...
          Do any of them contain any characters that are NOT standard ASCII characters - e.g. 'accented-characters' that you might use in Portuguese, BUT will cause many Ruby processes severe heartache...
          If so then try renaming folders/files to avoid the issue...
          For example
          São_Paulo
          must be
          Sao_Paulo
          etc...
          that single ã in a file-path WILL break many of Ruby's File/Dir methods...

          TIG

          1 Reply Last reply Reply Quote 0
          • Bob JamesB Offline
            Bob James
            last edited by

            Same song: new lyrics
            When I try to create tweens, the new Layers dialog pops up with all of the tweens, but then SU hangs.
            There is one tab (1-001), but then the next (and only other tab) says "delay" and SU goes "Not Responding"

            Since I'm trying KA for the first time, my model is very simple: a series of door segments one by one being raised vertically.


            MegaDoor Tweens.PNG

            i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

            1 Reply Last reply Reply Quote 0
            • R Offline
              Regular Polygon
              last edited by

              @ppmmonteiro said:

              My problem starts when i try to create the .tweens file! Using the "MAKE TWEENS" button, the following mesage comes up:"This filename contains illegal characters.", and nothing else!

              Actually, I already told ppmmonteiro that this error is due to Latin (i.e. non ASCII) characters in the file path. They can cause the file name to be invalid if you are saving a file via the API. (For example, using Sketchup.active_model.save.) So, if my script finds non ASCII characters, it generates that error message, rather than save the model, and then exits.

              Next, I was going to locate where the Latin character was in the file path, so I could provide an alternative location for him to save the tweens. However, before I could respond, ppmmonteiro posted here. I guess looking for a second opinion. 😒

              Anyway, this is not a bug in Keyframe Animation. It is a bug in the SketchUp Ruby API. Any plugin will have this problem if the file path has characters in a foreign alphabet.

              My SketchUp Plugins

              1 Reply Last reply Reply Quote 0
              • R Offline
                Regular Polygon
                last edited by

                @bob james said:

                Same song: new lyrics

                In your case, the tweens are being created, it is just taking an inordinate amount of time to generate them. It is the Layers Dialog, which you have open, that is slowing everything down. The problem is that SketchUp tries to update the dialog, while it is creating the geometry, which slows it to a crawl. If you close the dialog, the tweens will be generated in a fraction of the time.

                The same thing goes for the Scenes Manager dialog, and the Model Info | Statistics panel.

                My SketchUp Plugins

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

                  The main issues with non-ASCII characters in file-paths causing failures or incorrect results in the Ruby API are with File and Dir. There is a thread where we are trying to resolve this issue... BUT Ruby 1.8.6 is susceptible to problems with UTF strings, and hard to 'trick' !
                  If the error is only trapped when saving the SKP, then have you tried the alternative code [idiotically undocumented, but cross-platform]: Sketchup.send_action("saveDocument:")
                  This might work ?

                  TIG

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

                    Hi everybody, im glad with all your help and it was really usefull! In particular i wanna thank Regular Polygon, because they were impeccable in solving this issue.
                    My ignorance in computers maybe have generated this feeling that the bug was in the KeyFrame Animation Plugin, but now i realize that not.
                    Anyway, last night i was desperate and restless,so i started to retry what Regular Polygon told me , to save the file in a flash drive. I tried in other two i have and then, the third one worked out, with this file name: 2.tweens

                    I still dont understand how to fix it, however, my principal issue is now solved, the tweens creation is working out and that quite easy! Im gonna take care of this particular flash drive.

                    Now im looking for the better way to render this images to create a photosequence, and then use FinalCut or something like this to edit the video. I hope that its not impossible.

                    Although i´m not certain, i´m studing Kerkythea to do this, but still with no tangible results.

                    Once again i thank everybody for the help, and for now ScketchUcation and KeyFrame Animation will be part of my daily basis.

                    My best Regards.

                    Pedro

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Regular Polygon
                      last edited by

                      @tig said:

                      If the error is only trapped when saving the SKP, then have you tried the alternative code [idiotically undocumented, but cross-platform]: Sketchup.send_action("saveDocument:")
                      This might work ?

                      That is interesting. I didn't know there was a saveDocument: action. 😲

                      Unfortunately, though, this method only saves the current model. I need to save the current model as a different file. As far as I know, the only way to do it is, Sketchup.active_model.save(path2). But, then there is a problem if path2 contains non-ASCII characters.

                      My SketchUp Plugins

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Regular Polygon
                        last edited by

                        I released an update, Keyframe Animation 1.6.1, which has a workaround for this problem.

                        Now the tweens will be created, and you can save them anywhere on your hard drive, no matter what language you are using.

                        My SketchUp Plugins

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

                        Advertisement