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
vfx.scroll giving TypeError: slice indices must be integers or None or have an __index__ method #527
Comments
I believe this is the code causing the issues:
could we change np.round to just round? I assume np.round is returning a float instead of an int. Is that correct? |
@Earney, yes that is the code I figured is the error. I just stuck and |
Changing
The above prints |
awesome.. I'll give this a try.. |
this works for me without modifications. |
I run:
as recommended by Zulko in #240, but it gives the following error:
Doing some research, this is because
x
is 0 when you first call it, but then when it writes the video to a file, it iterates for each frame, and the second time, x is 1.0. This is a float, not an int so it fails.A solution that worked for me is to change lines 14 and 15 of
scroll.py
to change the float into a int.Can anyone repro this, and shall we make the suggested changes?
The text was updated successfully, but these errors were encountered: