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

Extend the last scene strip to frame_final_end + 1? #1

Open
Botmasher opened this issue Oct 2, 2018 · 5 comments
Open

Extend the last scene strip to frame_final_end + 1? #1

Botmasher opened this issue Oct 2, 2018 · 5 comments

Comments

@Botmasher
Copy link

Botmasher commented Oct 2, 2018

The last scene strip stretches to but does not include the very last frame. This is expected since the script sets the new scene strip's frame_final_end to the scene's frame_end, but is a blank final frame the intended behavior?

convert-cameras-frame-final-end

Otherwise this script runs well here – I haven't seen a single logged error. It could even be the start of something like animated multicam switching.

@tin2tin tin2tin closed this as completed in 1cfc793 Oct 2, 2018
@tin2tin
Copy link
Owner

tin2tin commented Oct 2, 2018

Thank you for testing it and thank you for your suggestion. It is now corrected. Is the animated multi-cam switching, you have in mind, something like this? https://github.com/tin2tin/PrevizCameraTools

@tin2tin
Copy link
Owner

tin2tin commented Oct 2, 2018

Sorry didn't necessarily want to close this now.

@tin2tin tin2tin reopened this Oct 2, 2018
@Botmasher
Copy link
Author

Nice! Though now I'm seeing the last frame extended as in a hard cut. Compare that to what happens during a normal scene strip add (the top channel).
screen shot 2018-10-02 at 8 20 34 am
Maybe one path forward could be setting length to the next marker in the list instead of adjusting strip frame starts and ends?

(Multicam - I'm not sure. I previously tried your Previz, which seems to bundle tools for greater control over scene cameras while editing. The multicam idea is switching between camera angles for different shots of the same animation. But that's probably another issue or feature request. 🤔)

@tin2tin
Copy link
Owner

tin2tin commented Oct 3, 2018

It must be hardcoded in Blender, that scene strips only are added with a duration till the end of the preview area minus one(a bug?).

A hack. Adding this before adding the strip:
bpy.context.scene.frame_end=bpy.context.scene.frame_end+1
And this after adding the strip:
bpy.context.scene.frame_end=bpy.context.scene.frame_end-1
Will make it look like you suggest.

However, I found out that, if a clip is added outside the preview area things will mess up(negative duration?). So I think I'll auto-prolong the preview area with 30 fps *5 sec and do the add/subtract hack.

On the previz add-on. The main idea of it was to do all multi-camera switching and editing in the sequencer and not use 'bind camera to markers' at all. These are the core functions shown here: https://www.youtube.com/watch?v=b4eQrns5KpQ Eg. using the 3D View as the preview for the Sequencer and adding cameras directly into the Sequencer. As you can move the strips where you want them, you can have multiple cameras showing the same animation(same frame-range) over and over again from different angles. Was that what you meant?

@Botmasher
Copy link
Author

That's a clever little workaround, and it works fine here. 👏

Previz - ah, ok. That does sounds and look like it. I should play with that a bit more.

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

2 participants