SketchUcation Premium Membership

 

 

Keyframe Animation Error! (tweens creation)

Keyframe Animation Error! (tweens creation)

Postby ppmmonteiro » Wed Feb 08, 2012 5:51 pm

Hi everybody, i started to use Keyframe Animation yesterday, its amazing how you can move things so easily.
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!

I tried to change the filename, change the location (desktop/many diferent folders), use just numbers into file and folder names, but nothing worked out!

Could someone help me with this issue?

Thanks a lot!
ppmmonteiro
 
Posts: 4
Joined: Sun Jun 12, 2011 7:22 am

Re: Keyframe Animation Error! (tweens creation)

Postby Rich O Brien » Wed Feb 08, 2012 5:58 pm

does the file amend
Code: Select all
.tweens.skp
when you click the make tweens button?

Are you removing the .tweens suffix for any reason?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8266
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: Keyframe Animation Error! (tweens creation)

Postby ppmmonteiro » Wed Feb 08, 2012 6:58 pm

No, the file amends
Code: Select all
.skb.tweens
!

I tried to remove the .tweens suffix and it didnt work out, as expected. I emailed Regular Polygon and, for while, they said it could be a bug related to Latin Chacters, that could be in a folder on the path, or in the file name itself.
I tried to rename them using numbers, but it was in vain.

If the "file path" is this thing (C:/Users/Documents/02.skb.tweens), wich are just latin letters, so i dont know what to do.

I really dont understand about computers thing, but i supose that in USA or Europe, you guys use the same Unicode than here in Brazil, dont you? I don´t understand where the problem is!
ppmmonteiro
 
Posts: 4
Joined: Sun Jun 12, 2011 7:22 am

Re: Keyframe Animation Error! (tweens creation)

Postby Rich O Brien » Wed Feb 08, 2012 7:18 pm

.skb is a backup of the .skp

Are you opening .skb files or .skp files?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8266
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: Keyframe Animation Error! (tweens creation)

Postby ppmmonteiro » Wed Feb 08, 2012 7:32 pm

Sorry, you right, its .SKP
ppmmonteiro
 
Posts: 4
Joined: Sun Jun 12, 2011 7:22 am

Re: Keyframe Animation Error! (tweens creation)

Postby TIG » Wed Feb 08, 2012 8:01 pm

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
User avatar
TIG
Global Moderator
 
Posts: 13903
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Keyframe Animation Error! (tweens creation)

Postby Bob James » Thu Feb 09, 2012 12:41 am

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.
Please, register (free) to access all the attachments on the forums.
"If you don't plan ahead you'll be at the mercy of those that do" - Ashleigh Brilliant

"Bad is not good until worse happens" - Bob James
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 605
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: Keyframe Animation Error! (tweens creation)

Postby Regular Polygon » Thu Feb 09, 2012 5:53 am

ppmmonteiro wrote: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. :roll:

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.
Regular Polygon
 
Posts: 86
Joined: Thu Jun 10, 2010 3:46 am

Re: Keyframe Animation Error! (tweens creation)

Postby Regular Polygon » Thu Feb 09, 2012 7:11 am

Bob James wrote: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.
Regular Polygon
 
Posts: 86
Joined: Thu Jun 10, 2010 3:46 am

Re: Keyframe Animation Error! (tweens creation)

Postby TIG » Thu Feb 09, 2012 10:50 am

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
User avatar
TIG
Global Moderator
 
Posts: 13903
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

NO Keyframe Animation Error! (tweens creation)

Postby ppmmonteiro » Thu Feb 09, 2012 1:57 pm

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
ppmmonteiro
 
Posts: 4
Joined: Sun Jun 12, 2011 7:22 am

Re: Keyframe Animation Error! (tweens creation)

Postby Regular Polygon » Thu Feb 09, 2012 11:53 pm

TIG wrote: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. :shock:

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.
Regular Polygon
 
Posts: 86
Joined: Thu Jun 10, 2010 3:46 am

Re: Keyframe Animation Error! (tweens creation)

Postby Regular Polygon » Wed Mar 14, 2012 8:31 am

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.
Regular Polygon
 
Posts: 86
Joined: Thu Jun 10, 2010 3:46 am

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: JohanPG, Mladenov and 9 guests