-
-
Couldn't load subscription status.
- Fork 926
exporter: Add Support for Full Auto-Export, End-on-Last-Frame Logic, and Prevent --force-play Looping #20896
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split that PR into multiple ones? A lot of unrelated things are going on here
| /// Number of frames to capture per file. | ||
| /// If set to 0, all frames in the SWF's main timeline will be captured |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes more sense for me to pass --frames all instead of --frames 0 to capture all frames. It looks non-intuitive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into this but I'm still quite new to rust, so not 100% sure what the best way to implement a cli command that takes a string or number would be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done some research and hope I've found the right way to implement this.
I need to run a few more tests, but I've raised this as #20930.
| if is_root_movie_clip_at_end(&player) { | ||
| break; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will break some animations, it has to be another CLI option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a new cli command and raised under #20929
Let me know if you'd like any of these features to be placed behind new CLI arguments. I'm happy to update the PR accordingly.
Changes for the Exporter Tool:
--frames 0to export all frames. exporter: Update --frames to accept "all" to export all frames #20930--force-playfeature to avoid restarting the timeline if it's already on the last frame. exporter: Refactor force_root_clip_play to prevent force play from looping. #20927