small adjustments in animate extension

This commit is contained in:
leyghisbb 2021-04-21 19:01:27 +02:00
parent 9ca42fc792
commit 34de5b50fe
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<label appearance="header">Warning!</label>
<label>Do not use "-inkscape-stroke:hairline" attribute for your paths. It will not render. Your page might be blank!</label>
<spacer/>
<param name="time" type="float" min="0.000" max="9999999.999" precision="3" gui-text="Duration (seconds)">5.0</param>
<param name="time" type="float" min="0.000" max="9999999.999" precision="3" gui-text="Duration (frames)">5.0</param>
<param name="fps" type="int" min="1" max="100" gui-text="Frame per second (fps)">60</param>
<param name="sequence_type" type="optiongroup" appearance="combo" gui-text="Sequence type">
<option value="oneByOne">Line by line (one by one)</option>
@ -16,7 +16,7 @@
<param name="reverse" type="bool" gui-text="Reverse order">false</param>
<param name="browser" type="optiongroup" appearance="combo" gui-text="Browser" gui-description="Select your desired browser (must be installed and must exist in %PATH% variable).">
<option value="chromium">Chromium</option>
<option value="chrome">Chrome</option>
<option value="chrome">Google Chrome</option>
<option value="firefox">Firefox</option>
</param>
</page>

View File

@ -32,7 +32,7 @@ class AnimateOrder (inkex.EffectExtension):
def add_arguments(self, pars):
pars.add_argument("--tab")
pars.add_argument("--time", type=float, default = 5.0, help="Duration (seconds)")
pars.add_argument("--time", type=float, default = 5.0, help="Duration (frames)")
pars.add_argument("--fps", type=int, default = 60.0, help="Frames per second (fps)")
pars.add_argument("--sequence_type", help="Sequence type")
pars.add_argument("--reverse", type = inkex.Boolean, default = False, help="Reverse order")