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

Mask Getting Called Multiple Times #299

Closed
SenorPez opened this issue Jun 7, 2016 · 1 comment
Closed

Mask Getting Called Multiple Times #299

SenorPez opened this issue Jun 7, 2016 · 1 comment

Comments

@SenorPez
Copy link

SenorPez commented Jun 7, 2016

I have a semi-transparent object, that's created by a pair of UpdatedVideoClip classes:

`        standing = UpdatedVideoClip(
            GTStandings(
                self,
                process_data=process_data))
        standing = standing.set_position(
            (0, 0)).set_duration(video.duration)

        standing_mask = UpdatedVideoClip(
            GTStandings(
                self,
                process_data=process_data,
                mask=True)).to_mask()

        standing = standing.set_mask(standing_mask)`

When I run my scripts, it seems that the standings_mask is getting updated by to_frame more often than the standings. This causes the opacity to be out of sync as the items are animated.

Any ideas what may be causing this? Or a better way to engineer this?

@SenorPez
Copy link
Author

SenorPez commented Jun 8, 2016

Think I mostly figured it out... it was getting called by the constrctor, then again by the to_mask() function. Still has a bit of judder, but nowhere near the catastrophe as it was before; I think it might just be rounding errors showing up in graphical form.

@SenorPez SenorPez closed this as completed Jun 8, 2016
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