tin2tin / Blender_Screenwriter

Blender add-on for writing screenplays and convert them directly into timed storyboards.
193 stars 20 forks source link

Make timing of scenes more accurate #21

Closed tin2tin closed 3 years ago

tin2tin commented 4 years ago

Currently the timing is calculated against number of lines, but the length of the lines are not taken into account. This needs to be done for optimal precision.

saucissevolante commented 4 years ago

Edit : Fixed. Just had to close & Launch again Blender.

Hi, great tool ! I'm writing short animation series, 3'30, few dialogs, fast action. The 1mn per page ratio does not work for me (I need a 30' per page for 7 pages). I've tried to change the "lines_pr_minute" value in both "Blender_ScreenWriter_Original" and "scene_to_strip" but it does not seem to work when I create sequences . Any idea ? Maybe it could become an optional value in the UI ? Thanks,

Michaël

gabrielmontagne commented 4 years ago

I was playing with a modified version of the scenes_to_strips operator -- needed to not create scenes straight away, plus some other tweaks -- and was getting a bit of inconsistent timing results and things getting out of phase so opted for a simpler heuristic, https://github.com/gabrielmontagne/blender-addon-unfurl-fountain/blob/master/__init__.py#L39-L41

For scene lengths I guesstimate a ratio of words per second for actions and dialogues (times a factor, to slow down speech a bit) and add it up plust a tiny margin. The numbers coming out worked fine for my screenplays.

tin2tin commented 4 years ago

Thank you. So I need to have Blender Screenwriter installed and then run your add-on? How does you timing fit with the number of pages(one pr. minut) of the Big Fish screenplay which can be downloaded here: https://fountain.io/syntax

gabrielmontagne commented 4 years ago

No need to install Blender Screenwriter, no. I have it installed because it's very cool.
It's a great idea to use Big Fish as a benchmark. I tried it and, well, my heuristic was way off. 3 hours for 120 page script. I'll tweaks some numbers more and see. But the heuristic is quite linear so I'll see how it feels if I compress it to that length.

gabrielmontagne commented 4 years ago

I tweaked a number and Big Fish is now 2:05, which I think it's close enough. My own 73 page screenplay is now and hour and 9 minutes, which I think is close enough to get a sense of its rhythm and take it from there.

tin2tin commented 4 years ago

Cool. If you like, how do you feel about submit this as a patch to Blender Screenwriter including your additional functions(as new function(not replacing the old))? (Btw. I noticed that the Text Strip makes a forced line break with inserting "+chr(10)+" into the string), and the BBC standard is around 38 characters for each line in a subtitle).

gabrielmontagne commented 4 years ago

Will happily prepare a PR with this different time heuristic and the new operator. Might not have a terrible amount of tiime this next few days, but I'm dropping a ticket on my personal tracker. Thanks!

tin2tin commented 4 years ago

Thank you. That would be great. Your time heuristic could properly replace the existing, which only deals with number of lines, so Big Fish came out as 60 minutes since it has these very long lines. It worked better with that other script example with the hitmen.

Personally I ran out of steam when trying the add the asset-assigning-to-keywords code. It would be very cool to get that stuff working, but it's too complicated for me to figure out. I tried the VS code fountain add-on, and it doesn't even have the instant preview, as we do. :-)

3dcinetv commented 4 years ago

How does one knows how to manipulate the time duration in the VSE? is this possible? I already know how to write Fountain format, so when I import my script into this addon, in the VSE: how do I adjust timing?

tin2tin commented 4 years ago

You'll have to change the code, like Gabriel did in his add-on. I'm still hoping he'll submit a patch to this project with his timings.

tin2tin commented 3 years ago

Unfurl fountain add-on has been merged into Blender screenwriter, so hopefully the timings are better now.