Answered
ExtendScript add time to timeStart
Hello,
I have problem with adding up two times, and seting up value:
var videoFile = project.importFile(new ImportOptions(contentFile)) - importing video file
var bumperVideoFile = project.importFile(new ImportOptions(bumperFile)) - importing bumper (also video file)
var durationBumper = bumperVideoFile.duration - reading duration of bumper file
var fadeIn = thisCSVRow[5] - this is parameter readed from csv file, its importing correctly, alert is showing correct value
mainVideoLayer.startTime = durationBumper - seting up start time of main video right after bumper - it's working fine
mainVideoLayer.opacity.setValuesAtTimes([mainVideoLayer.startTime,mainVideoLayer.startTime+fadeIn],[0,100]) - and this is not working, it's set opacity value 0 and 100 at same first frame of main video, its not adding "fadeIn" time - but when I use hardcoded value (some number, for example 2) its working correctly.
where is the problem, are mainVideoLayer.startTime and imported to fadeIn value are different type or something?
I checked and they don't add up
alert(mainVideoLayer.startTime + fadeIn) - gives me a startTime, and not startTime+fadeIn
but
alert(mainVideoLayer.startTime + 2) - gives me correct answer
