From: Igor on
Hi, I'm having some trouble recording a SimMechanic animation when I "enable automatic tight fit". The "camera" is continously zooming in and out.

I am using:
-output sample time: linspace(0, 5, 300)
-visualization sample time: -1
-delay per frame: 0
-skipped frames: 0

The animation runs well this way, till I click on the automatic tight fit and starts zooming. ¿Is there something I can do? Thanks.
From: Arnaud Miege on

"Igor " <baimendi(a)gmail.com> wrote in message
news:hl0ovh$fk6$1(a)fred.mathworks.com...
> Hi, I'm having some trouble recording a SimMechanic animation when I
> "enable automatic tight fit". The "camera" is continously zooming in and
> out.
>
> I am using:
> -output sample time: linspace(0, 5, 300)
> -visualization sample time: -1
> -delay per frame: 0
> -skipped frames: 0
>
> The animation runs well this way, till I click on the automatic tight fit
> and starts zooming. �Is there something I can do? Thanks.

Before running and recording the animation, set the zoom level and camera
orientation to what you want it to be, and make sure that neither "Enable
automatic tight fit" nor "Enable automatic expanding fit" is selected. Now
press on the save button in the visualization windows, and save the model.
The visualization settings are now saved with your model. You can now record
your animation. The trick is making sure that the zoom level is sufficient
to accomodate for the entire motion of the machine, otherwise things will go
off-screen. You might have to do a few iterations to get it right. only do
the recording once you have the zoom to the correct level, as the recording
slows down things quite significantly.

HTH,

Arnaud


From: Igor on
"Arnaud Miege" <arnaud.miege(a)nospam.mathworks.co.uk> wrote in message <hl112m$r76$1(a)fred.mathworks.com>...
>
> "Igor " <baimendi(a)gmail.com> wrote in message
> news:hl0ovh$fk6$1(a)fred.mathworks.com...
> > Hi, I'm having some trouble recording a SimMechanic animation when I
> > "enable automatic tight fit". The "camera" is continously zooming in and
> > out.
> >
> > I am using:
> > -output sample time: linspace(0, 5, 300)
> > -visualization sample time: -1
> > -delay per frame: 0
> > -skipped frames: 0
> >
> > The animation runs well this way, till I click on the automatic tight fit
> > and starts zooming. &#380;Is there something I can do? Thanks.
>
> Before running and recording the animation, set the zoom level and camera
> orientation to what you want it to be, and make sure that neither "Enable
> automatic tight fit" nor "Enable automatic expanding fit" is selected. Now
> press on the save button in the visualization windows, and save the model.
> The visualization settings are now saved with your model. You can now record
> your animation. The trick is making sure that the zoom level is sufficient
> to accomodate for the entire motion of the machine, otherwise things will go
> off-screen. You might have to do a few iterations to get it right. only do
> the recording once you have the zoom to the correct level, as the recording
> slows down things quite significantly.
>
> HTH,
>
> Arnaud
>
Thanks, that is what I am using right know, but what I really want is to be able to use the "automatic tight fit" correctly. I have got a machine moving along a path, and at some moment I want the camera to follow the mechanism solidarly so a detail of the inner mechanism can be observed.