Adobe-CEP / Samples

Code samples for CEP extensions
MIT License
972 stars 551 forks source link

Do not mutate time var in exportCurrentFrameAsPNG #103

Closed keir-lavelle closed 5 years ago

keir-lavelle commented 5 years ago

Submit a pull request

CLA

Topic

This is a pull request for:

Versions

Description of the pull request

Export current frame as PNG in PProPanel/jsx/PPRO/Premiere.jsx file always defaults to the first frame of the active sequence, because the time variable is mutated to remove colons to make it Windows safe, and presumably the exportCurrentFramePNG doesn't understand this mutated representation of the timestamp.

Instead assign the windows safe representation of the timestamp to a new variable, and pass the original timestamp into the exportCurrentFrame method.