Highlighted

QeDom seq.setSettings() extendscript wont work

Explorer ,
Sep 09, 2020

Copy link to clipboard

Copied

I am trying to set the settings of a new qe.dom sequence that I created 

 

 

		qe.project.newSequence('newSeq', presetPath);

		var newSeqID = $._PPP_.getSequenceIDbyName(seqName);

		var newSeq = $._PPP_.getSequenceByID(newSeqID);

		var seqObjKeysArray = Object.keys(seqObj.items)

		var seqFPS = 0.04
		

		if (newSeq){

			var settings = newSeq.getSettings();

			if (settings){

				var tempFR = settings.videoFrameRate;

				tempFR.seconds = seqFPS

				settings.videoFrameRate = tempFR;

				settings.videoDisplayFormat = 101;

				newSeq.setSettings(settings);

				var safetyCheck = newSeq.getSettings();

			}


		}

 

This returns evalscript error for some reason 

 

 

Is there a special way to change the sequence settings for the QE sequences vs regular sequences?  

sorry i found the error :

 

		var seqObjKeysArray = Object.keys(seqObj.items)

 

 

this is the working code:

 

// add project items to relative tracks
var originalSeq = $._PPP_.getSequenceByID(seqObj.originalSeqID);

if (newSeq){

var settings = originalSeq.getSettings();

if (settings){


newSeq.setSettings(settings);

}


 
TOPICS
Error or problem, How to, SDK

Views

34

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

QeDom seq.setSettings() extendscript wont work

Explorer ,
Sep 09, 2020

Copy link to clipboard

Copied

I am trying to set the settings of a new qe.dom sequence that I created 

 

 

		qe.project.newSequence('newSeq', presetPath);

		var newSeqID = $._PPP_.getSequenceIDbyName(seqName);

		var newSeq = $._PPP_.getSequenceByID(newSeqID);

		var seqObjKeysArray = Object.keys(seqObj.items)

		var seqFPS = 0.04
		

		if (newSeq){

			var settings = newSeq.getSettings();

			if (settings){

				var tempFR = settings.videoFrameRate;

				tempFR.seconds = seqFPS

				settings.videoFrameRate = tempFR;

				settings.videoDisplayFormat = 101;

				newSeq.setSettings(settings);

				var safetyCheck = newSeq.getSettings();

			}


		}

 

This returns evalscript error for some reason 

 

 

Is there a special way to change the sequence settings for the QE sequences vs regular sequences?  

sorry i found the error :

 

		var seqObjKeysArray = Object.keys(seqObj.items)

 

 

this is the working code:

 

// add project items to relative tracks
var originalSeq = $._PPP_.getSequenceByID(seqObj.originalSeqID);

if (newSeq){

var settings = originalSeq.getSettings();

if (settings){


newSeq.setSettings(settings);

}


 
TOPICS
Error or problem, How to, SDK

Views

35

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 09, 2020 0
Explorer ,
Sep 09, 2020

Copy link to clipboard

Copied

sorry i found the error :

 

		var seqObjKeysArray = Object.keys(seqObj.items)

 

 

this is the working code:

 

// add project items to relative tracks
var originalSeq = $._PPP_.getSequenceByID(seqObj.originalSeqID);

if (newSeq){

var settings = originalSeq.getSettings();

if (settings){


newSeq.setSettings(settings);

}


 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 09, 2020 0