-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[3d] export all frames from QGIS 3d animations as images #9244
Conversation
Nice. A few comments:
Very nice to see this feature, thanks! |
Oh and maybe add an hint label below the template line edit to explain the use of #s? |
The "#####" placeholder looks very deceptive to me - if I read the code correctly it needs to be present in its entirety, but it looks to users like ## should be allowed for 2 digit frames, ### for 3, etc. (Shouldn't this be supported anyway?) |
+1 on what @nyalldawson raised. The template should handle a varying nb of #s. The more #, the more leading zeroes. Eg:
|
Actually, on the template front, why don't we use our expression engine instead (like we do for atlas export file names)? We could pass the frame number as a @current_frame variable. That'd make it better match the UX with other parts of QGIS and be a lot more flexible. |
@total_frame would be useful too for filenames like anim-001-350.png, anim-002-350.png, etc. |
Ohhhh fancy!!
…On Sun, Feb 24, 2019 at 4:18 PM Mathieu Pellerin ***@***.***> wrote:
@total_frame would be useful too for filenames like anim-001-350.png,
anim-002-350.png, etc.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9244 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAXS3M1AuWdzEDFRPnI9tvNn5mnDYl5aks5vQi6ngaJpZM4bJvIV>
.
|
@nirvn I have spend several hours on the most difficult problem in the software development world. When thinking about expressions in this field, I ended up with and compared to I sadly concluded that I prefer to stick with the original approach. Said that, the problem with expressions would be also formatting (0001, 0002), since user would need to insert another function to left-pad it. |
@PeterPetrik What about : |
@roya0045 good idea, but I may need to buy a second monitor to be able to see the full text :) |
@PeterPetrik , if you look at the way the filename is handled in the context of atlas, open the layout dialog and pop the atlas panel. It does not use the [% %] expression brackets as the whole string is the expression, which makes things less chaotic (as you are pointing out above). The default expression there is: I see no problem in have a default template string here being: In terms of how you serve @current_frame, you could either pass on an integer value, or a string with padded 0s (the latter would be friendlier). If someone wants the int value, he/she could do |
@nirvn first I got also excited by the idea to use expressions for the filename template. But then I realized that a default like
It seems to me that while expressions are useful for power users, for an average person who just wants to get animation exported the default filename template would be a bit cryptic wouldn't it? To me it seems that something like And do we even need fancy expression stuff here? The main point is to export frames and turn them into a video in the next step, so in theory filenames should be quite irrelevant :) |
That said, this ain't an hill I want to die on 😉 I think it'd be useful, but if you guys have a strong feeling on this issue, go with your favorite implementation method. |
@wonder-sk , @PeterPetrik , BTW, I assume the file extension in the template string determines the image format used to export frames. Is that so? That might be worth separating into its own setting, and presented as a combo box of formats. |
|
fix #21300
Now it is possible to export frames of 3d animation as png/jpg/... images. These can be easily merged into .avi (outside QGIS)
![screenshot 2019-02-22 at 15 33 58](https://user-images.githubusercontent.com/804608/53249260-f5aa3b00-36b7-11e9-88be-c0344fefad17.png)