qmasingarbe / pymiere

Python for Premiere pro
GNU General Public License v3.0
353 stars 46 forks source link

How to change marker start and end time? #57

Closed doctor-yes closed 1 year ago

doctor-yes commented 1 year ago

according to this https://ppro-scripting.docsforadobe.dev/general/marker.html#marker-start, marker start and end support read/write? However my attempt to set start and end after marker creation never works. What is the proper way to do so? Thanks

Jorand commented 1 year ago

I have the same issue. When i'm trying to set marker.end = time_from_seconds(10) i'm getting this error:

Error at line 2 : Illegal Parameter type
 1      try{
 2      var tmp = $._pymiere['mYa84YjxH7'].end = $._pymiere['77fAGmXekr'];
 3      if(typeof tmp === 'object' && tmp !== null){

Hope there is a fix for that, thanks !

qmasingarbe commented 1 year ago

Hi @doctor-yes & @Jorand , Thank you for reporting this issue. It's a little quirk of Premiere's API: it works with Time objects for most of the methods but the markers use seconds as float instead... I fixed the code to reflect this specificity (1d992559661c29a008528c6b006d3a398ca07fff) and it is now available in the latest pymiere release 1.4.0 via pip Again thank you for participating in making pymiere better!