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

Automatically add transform strips to imported pictures #8

Closed
NathanLovato opened this issue Jul 9, 2017 · 4 comments
Closed

Automatically add transform strips to imported pictures #8

NathanLovato opened this issue Jul 9, 2017 · 4 comments

Comments

@NathanLovato
Copy link
Contributor

NathanLovato commented Jul 9, 2017

The add-on offers a tool to quickly center the image strips' pivot, resize them to fit their original size, and add a transform strip to quickly move and animate it with VSE Transform.
If you loop over newly imported pictures and try to use this operator, you get a ZeroDivisionError. It seems Blender doesn't store an image's width and height (keeps it at 0) unless it's buffered/rendered on screen.

Workaround idea: move the time cursor to the start of each img strip and run the setup function on each of them individually?

@NathanLovato
Copy link
Contributor Author

NathanLovato commented Jul 21, 2017

Placing the time cursor over the strips from the code doesn't work, and refreshing the sequencer doesn't either. Needs more testing.

@NathanLovato NathanLovato added this to the 1.0 milestone Jul 21, 2017
@NathanLovato
Copy link
Contributor Author

Only pictures that rendered at least once have their image_width and image_height components initialized. Upon import, the first image strip gets rendered/initialized, but for the others, both values stay at 0:

s.elements[0].orig_width
s.elements[0].orig_height

@NathanLovato
Copy link
Contributor Author

NathanLovato commented Aug 8, 2017

Possible hacky solution: import them all stacked, add transform strips, then space them out?

@NathanLovato
Copy link
Contributor Author

Stacking the img strips doesn't work either. You must generate some kind of preview of the pictures. This probably needs a fix on Blender's side.

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

No branches or pull requests

1 participant