Skip to main content
Participant
November 10, 2023
Answered

Set sequence's timeline zoomlevel by extendscript

  • November 10, 2023
  • 1 reply
  • 236 views

Hi,

 

I would like to automatically set the sequence's timeline zoomlevel to defined values via extendscript, e.g. the inPoint and the outPoint of the sequence which is used for rendering.

 

I did not find any way to do that. The only workaround I found is sending an event as if the user pressed the + key on his keyboard to zoom a little bit into the scene:

 

function events_sendPlusKey()
{
var filePath = <path_to_local_scriptDirectory> + "keySimulation_plus.vbs"

if(!files_fileExists(filePath))
{
var str = 'Set WshShell = WScript.CreateObject("WScript.Shell")\
WshShell.SendKeys "{+}"';
files_writeTextFile(filePath, str);
}
files_executeFile(filePath);
$.sleep(500);
}

 

Is there a way to set the timeline's zoomlevel to a dedicated timeline area?

Thanks in advance

This topic has been closed for replies.
Correct answer bbb_999

> Is there a way to set the timeline's zoomlevel to a dedicated timeline area?

No; setting the CTI is the extent of API control available,  over the timeline UI.

1 reply

bbb_999
Adobe Employee
bbb_999Correct answer
Adobe Employee
November 10, 2023

> Is there a way to set the timeline's zoomlevel to a dedicated timeline area?

No; setting the CTI is the extent of API control available,  over the timeline UI.