Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripted commands are triggered out of order #1

Open
ferrinm opened this issue May 21, 2020 · 0 comments
Open

Scripted commands are triggered out of order #1

ferrinm opened this issue May 21, 2020 · 0 comments

Comments

@ferrinm
Copy link

ferrinm commented May 21, 2020

Hello, I'm very excited about making movies from napari but it starts to behave unpredictably when I write more complicated scripts. For instance, I tried to make a script-based movie using the same dataset as in the example jupyter notebook with the following script (I replaced the contents of moviecommands2.txt with this):

From frame 0 to frame 50
-rotate by 360 degrees around (0,1,0)
From frame 100 to frame 150
-shift time by 50
From frame 150 to frame 200
-rotate by 360 degrees around (0,1,0)

I wanted it to:

  1. make a full rotation
  2. pause for 50 frames
  3. time lapse for 50 frames
  4. make another full rotation

However when I run the commands to make a movie from this script, the time lapse begins in the first frame simultaneously with the rotation. This problem does seem to go away when I remove the pause like this:

From frame 0 to frame 50
-rotate by 360 degrees around (0,1,0)
From frame 50 to frame 100
-shift time by 50
From frame 100 to frame 150
-rotate by 360 degrees around (0,1,0)

Is there a reliable way to add a pause in the middle of the movie?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant