Repository navigation
[Lottie Exporter] Export outlines without variable widths - #1647
Conversation
|
This pull request introduces 5 alerts when merging 3034754 into d8388ca - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 22aebc0 into d8388ca - view on LGTM.com new alerts:
|
22aebc0 to
3034754
Compare
|
This pull request introduces 1 alert when merging 3c336a5 into d8388ca - view on LGTM.com new alerts:
|
|
I think support for all possible parameters is now done |
|
Question: how user can choose to export with variable outline width or not? |
For now, @saurabh-ramola used "Exporting without variable width's" as the default option. But I think what we can do is: User selects Menu -> Export -> show a dialogue in which user selects whether to export with/without variable widths. @morevnaproject your views here please. ^__^ |
@AnishGG I have added an argument |
|
This pull request introduces 1 alert when merging ccbd1da into 51d7972 - view on LGTM.com new alerts:
|
|
Question: how user can choose to export with variable outline width or not?
I see two possibilities for this: 1. Add more export options in Our plugin system now got improvements from @mbasaglia which allow to define multiple plugins in Currently, you can add two more:
2. Other way is to add parameter for Group Layer, called "Fixed outline width" [bool]. This parameter will tell Synfig to render all outline layers inside with fixed line width. This approach is more complex than previous, but it has several advantages:
Regarding implementation, I recommend to look at how "Outline Grow" parameter works - https://wiki.synfig.org/Group_Layer#Outline_Grow_Parameter |
Awesome, I'll start looking into this :) |
|
I think the best option would be to extend the plugin system further, and allow options to be specified in the plugin.xml that would show a dialog before running the script. Eg: Otherwise you could display such a dialog from python |
|
@mbasaglia , I added the option synfig/synfig-studio/plugins/lottie-exporter/plugin.xml.in Lines 14 to 21 in 8ea9698 However, after compiling the changes,I exported the file using the new options I had added but the export did not pass the TIA |
|
Options aren't implemented yet, but you can call a different python script |
|
Added another script |
|
This pull request introduces 1 alert when merging 165cbe1 into bb1a80b - view on LGTM.com new alerts:
|
|
I have made attempt to export a simple animated outlines and for some reason it doesn't exports animation. File - lottie-outlines.sifz.zip Also, I have noticed the resulting outline is much thicker (if we compare with same file exported with variable width) - |
|
Found the issue, there's a mistake in naming the outline dictionaries, fixing it now. |
|
@morevnaproject can you check now? |
This wasn't the issue, the issue was a faulty frame appearing at the end of the dictionary. |
|
This pull request introduces 1 alert when merging 2da843f into c7737d6 - view on LGTM.com new alerts:
|
|
The failing build happens as some of the PRs haven't been merged yet, but have passed review. |
I have fixed this now. ^__^ |
Works good for me now! ^__^ |
|
Merged. Thank you! |
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)
- Convert methods not working with radius of simple circle layer (#1101) - [Lottie exporter] Add support for variable gamma correction (#1174) - Changes made to offsetKeyFrame file (#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (#1236 #1254 #1286 #1363 #1409 #1447 #1446 #1516 #1515 #1593 #1586 #1619 #1606 #1650 #1587) - Add support for blur layers (#1505) - Add support for Outline layer without variable widths (#1647) - Improve support for exported values (#2182) - Some code cleanup (#1199 #1213 #1226 #1456 #2061)
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)
- Convert methods not working with radius of simple circle layer (synfig#1101) - [Lottie exporter] Add support for variable gamma correction (synfig#1174) - Changes made to offsetKeyFrame file (synfig#1233) - Add support for converters: sine, cos, integer, linear gradient, aTan2, Vector angle, radial_composite, radial gradient, vector x, vector y, power, dot product, logarithm, reciprocal, range, vector length, not (synfig#1236 synfig#1254 synfig#1286 synfig#1363 synfig#1409 synfig#1447 synfig#1446 synfig#1516 synfig#1515 synfig#1593 synfig#1586 synfig#1619 synfig#1606 synfig#1650 synfig#1587) - Add support for blur layers (synfig#1505) - Add support for Outline layer without variable widths (synfig#1647) - Improve support for exported values (synfig#2182) - Some code cleanup (synfig#1199 synfig#1213 synfig#1226 synfig#1456 synfig#2061)

Added support for exporting outlines without variable widths. A few tweaks needed but there is a huge decrease in file size on checking so far 😃 .
@AnishGG please check