Cameras

General discussion about Animator for SketchUp

Cameras

Postby sigasiempre » Wed Mar 14, 2018 4:26 pm

I’m working on an animation showing two spheres approaching and then then separating. When they are close I show a spring between them compressing and releasing to represent the physical processes that occur (work and energy). I have the basics set and am now trying to add in camera effects. I’d like the camera to follow the objects as they approach, showing a closer view of the spring as they rebound. However, when I tried camera extents, the starting position I selected for the spheres changes automatically for some reason. Not sure what I’m doing wrong.
1

sigasiempre 
 

Re: Cameras

Postby fredo6 » Wed Mar 14, 2018 4:30 pm

sigasiempre wrote:I’m working on an animation showing two spheres approaching and then then separating. When they are close I show a spring between them compressing and releasing to represent the physical processes that occur (work and energy). I have the basics set and am now trying to add in camera effects. I’d like the camera to follow the objects as they approach, showing a closer view of the spring as they rebound. However, when I tried camera extents, the starting position I selected for the spheres changes automatically for some reason. Not sure what I’m doing wrong.

Difficult to visualize. Would you have the animated model so that I better understand.

Thanks

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Cameras

Postby sigasiempre » Wed Mar 14, 2018 4:56 pm

Thanks. Here's the link:
https://we.tl/lxZ8SfO5Wo

For some reason the file often changes the view to very distant.
Also the easing I used leads to a lag between compression and release of the spring but I think I can edit that later.
1

sigasiempre 
 

Re: Cameras

Postby fredo6 » Wed Mar 14, 2018 9:14 pm

sigasiempre wrote:Thanks. Here's the link:
https://we.tl/lxZ8SfO5Wo

For some reason the file often changes the view to very distant.
Also the easing I used leads to a lag between compression and release of the spring but I think I can edit that later.

Here are the issues

1) There are NO cameras in your animation. So I suggest you add some view cameras along the timeline, depending on what you want to show. I did it in the movie attached, but it's really your part.

2) Your model is in parallel projection by defaut. Animator prefers perspective. Actually I did not explore parallel projections so far.

3) the gap when the spheres go close is due to the fact that you replace the spheres on one layer (far) by the same spheres on another layer (close), and they are not in the same position at the time of this transition.

4) There is something strange in your model, which is about 35 Mb, with only 2 spheres and a spring. For whatever reason, it makes Animator less fluid.

Fredo
1
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Cameras

Postby sigasiempre » Wed Mar 14, 2018 10:31 pm

Thanks for looking at this for me. I keep working at it based on what you said.
1

sigasiempre 
 

Re: Cameras

Postby sigasiempre » Fri Mar 16, 2018 12:19 am

Thanks for the help. I have this working now.

I've been unable to export as a movie but I've exported as a file sequence that I turned into a movie using ImageJ.

A few issues are puzzling me:

1. I went back to further improve the cameras and found that they had disappeared. I'm sure I saved the file after I put the cameras in.

2. My exported images are cut off a bit. I'm not sure where to adjust this.

3. It isn't a big problem for me but SketchUp crashes everything I quit after using Animator.

In case you want to look at my file here's the link for the most recent version:
https://we.tl/KqKpMZHm3C

Additional point:
I just downloaded the file from the link above and found it is not working correctly. At least part of the problem is that both object movements and cameras keep disappearing and I have to replace them. So the animation works correctly at first but then does strange things when I replace object movements and cameras.
0
Last edited by sigasiempre on Fri Mar 16, 2018 5:21 pm, edited 1 time in total.

sigasiempre 
 

Re: Cameras

Postby fredo6 » Fri Mar 16, 2018 9:54 am

Hi again,

1) You should do a "Purge Unused". Your model file will go down from 35 Mb to about 4 Mb.

2) I attach a simulation with cameras. You only need a pair of spheres, not the the two pairs you had.

Segasiempre - Spring repel - SU2017.skp


3) In the simulation, you'll see that I grouped the inbound movement into a clip, so that I can re-use it for the outbound with the Reverse modifier.

4) I found reason for the problem of performance (making the movement hatched when played interactively). This is in the Scaling. I fix that and it will go in a next version of LibFredo6.

5) Can you tell me more about the 'crash' at exit. Is it a bugsplat?

Fredo

Simulation.gif


Simulation.mov
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Cameras

Postby sigasiempre » Fri Mar 16, 2018 11:07 pm

Hello Fredo,

Thanks for looking into this.

The problems on quitting are bugsplats. I started not reporting them because they were happening so often. Is it better to keep reporting? Let me know if there’s anything I can do to help further.

I have to do a number of similar animations for my project so I want to clearly understand your message. Several questions…

I tried to run the file you sent but it won’t animate. How can I fix this?

What do you mean by “making the movement hatched when played interactively”.

I need to show the spring motion decelerate (or accelerate for other cases later). Having 4 spheres allowed me to show constant motion as the spheres approached from a distance and then decelerated as the spheres interacted with the spring. Can I show constant motion and then deceleration with just 2 spheres? If so, how?

Would it be best for me to start this animation over? I think part of my problem may have been that I moved or renamed my file a few times. If I start over I’ll keep the same file name and location.

If the fix for Scaling will be in the next version of LibFredo6 should I wait for that before continuing to work on this?

Thanks for your help, David
0

sigasiempre 
 

Re: Cameras

Postby fredo6 » Sat Mar 17, 2018 8:33 am

David,

Let's take things in order

1) What happens to the file I sent you? Can you open the Ruby Console to see if there are errors. Here is a new version (I included Easing for the translation of spheres). Can you load it and run the animation ?

Sigasiempre - Spring repel - with easing - SU2017.skp


2) You can influence the speed of movement with Easing. Click on a movement in the timeline, then set the easing based on the dropdown option

Animator Easing.png


2) You have also two weird problems, which I need to understand better:
- bugsplats when exiting
- non saving of cameras
Are they related, that is, the animation is not saved properly because you get a bugsplat?

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Cameras

Postby sigasiempre » Sat Mar 17, 2018 9:24 pm

Hello Fredo,

The animation in the file you sent still doesn't run for me.
When I tried to run the animation the Ruby Console showed no errors.
Then I noticed the animation wasn't positioned at its start so I hit rewind. Then the following appeared in Ruby Console:

Error: #<NoMethodError: undefined method `entityID' for nil:NilClass>
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1078:in `block (2 levels) in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `block in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1607:in `animal_animate_finalize_execution'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:577:in `animal_animate_film'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1071:in `clip_animate'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1248:in `notify_from_clip_animation'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `call'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `notify_event'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:447:in `perform'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:321:in `rewind'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:473:in `cancel'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:138:in `block in stop_current'
SketchUp:1:in `call'
Error: #<NoMethodError: undefined method `entityID' for nil:NilClass>
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1078:in `block (2 levels) in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `block in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1607:in `animal_animate_finalize_execution'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:577:in `animal_animate_film'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1071:in `clip_animate'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1248:in `notify_from_clip_animation'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `call'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `notify_event'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:447:in `perform'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:404:in `nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:55:in `block in nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:54:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:54:in `nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatortool.rbe:1708:in `nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:363:in `animation='
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:363:in `launch'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:158:in `block in play_current'
...
Error: #<NoMethodError: undefined method `entityID' for nil:NilClass>
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1078:in `block (2 levels) in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `block in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1607:in `animal_animate_finalize_execution'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:577:in `animal_animate_film'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1071:in `clip_animate'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1248:in `notify_from_clip_animation'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `call'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `notify_event'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:447:in `perform'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:404:in `nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:55:in `block in nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:54:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:54:in `nextFrame'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatortool.rbe:1708:in `nextFrame'
Error: #<NoMethodError: undefined method `entityID' for nil:NilClass>
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1078:in `block (2 levels) in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1077:in `block in animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1071:in `animal_post_processing_visual_layer'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:1607:in `animal_animate_finalize_execution'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatoranimal.rbe:577:in `animal_animate_film'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1071:in `clip_animate'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatorclipmanager.rbe:1248:in `notify_from_clip_animation'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `call'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:239:in `notify_event'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:447:in `perform'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:321:in `rewind'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:473:in `cancel'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:71:in `block in cancel_all'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:68:in `each'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/body_lib6animationengine.rbe:68:in `cancel_all'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatortool.rbe:1530:in `handle_escape_undo'
/users/davidrosen/library/application support/sketchup 2017/sketchup/plugins/fredo6_animator/animatortool.rbe:1504:in `onCancel'

For easing: In my original version I had "out exponential" for the spring portion but for the initial approach and final separation I had linear. I need to do this for my project. That's why I had two separate pairs of spheres... one is linear easing for approach and separate (before and after the spring portion... the spring needs to be invisible during these itmes) and one is exponential for during the spring portion. Is is possible to change the easing in the middle of a movement? If so I can go with one pair of spheres.

For bugsplats:
What I've been doing is
1. Save the skp. This seems to occur normally.
2. Then I close the skp. A dialog asks: "Temporary Exit to Sketchup?"
3. If I say "no" and then quit Sketchup there is no bugsplat.
4. I I say "yes" and then quite Sketchup then bugsplat happens.

For camera non-saving:
I save and quit as described above. Bugsplat happens. When I reopen cameras are gone.
0

sigasiempre 
 

Re: Cameras

Postby fredo6 » Sun Mar 18, 2018 6:20 pm

David,

1) Here is an updated skp file of the animation. Please advise if you can open it.
Actually, I had deleted a layer which was used by the animation and there was a bug in Animator about that

2) The bugsplat you get seems to be related to the fact that you exit Sketchup with Animtor active. You should close Animator first, and then exit. Please advise if you still have bugsplat if you follow this process, and also if you can now save cameras.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Cameras

Postby sigasiempre » Sun Mar 18, 2018 9:32 pm

Hello Fredo,

I opened the file you sent and ran the animation without problems.

If I use the animator exit tool, save, then quit, there’s no crash.
If I exit temporarily to SU, save, then quit. I get bugsplat.

I’ve been able to use your version of the animation and make modifications without any problems so far.

Let me know if there’s any way I can be of help. For example, I you want to send me a file to test on a mac, etc.

Thanks, David
0

sigasiempre 
 

Re: Cameras

Postby fredo6 » Sun Mar 18, 2018 10:09 pm

Thanks for the feedback.

Definitely, you MUST NOT quit Sketchup when Animator is started, whther you exited temporarily. This is a limitation which I'll try to resolve.

Are you able to create cameras?

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Animator Beta

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: