Using MOGRT to make checkbox selections in Premiere Pro Extendscript

While developing a Premiere Pro Panel using Adobe Extendscript, I encountered an issue with importing a MOGRT file and setting slider values. The code snippet used for this task is as follows:

var transition = app.project.activeSequence.importMGTFromLibrary("WARATAH TV", "WARATAH TV 2019-20 TRANSITION", (myStartTime - 0.55), 2, 2);

transition.setSelected(true);

var components = transition.getMGTComponent();

components.properties.getParamForDisplayName("Slider Value").setValue(5);

However, when attempting to manipulate checkbox values in the imported MOGRT, the same code does not produce the desired results.

components.properties.getParamForDisplayName("Checkbox Value").setValue(false);

Any insights on why this might be happening or suggestions on how to interact with checkboxes within the MOGRT?

Answer №1

You may have overlooked including the second parameter 'boolUpdateUI'...

setValue componentParam.setValue(newValue, boolUpdateUI)

Explanation

Retrieves the value from the component parameter stream. Please note that this function is only applicable to parameters that are not time-varying.

Arguments

The newValue should match the type required by the component parameter stream. Setting boolUpdateUI to 1 will prompt Premiere Pro to update its user interface after modifying the stream's value.

Output

A return value of 0 indicates a successful operation.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Obtaining a result from a switch statement

Here is a solution to populate the generated drop-down menu: $('dropdown_options').innerHTML = '&nbsp;'; jsonResponse.forEach(function(element){ $('dropdown_options').innerHTML += '<option value='+ elemen ...

Creating a Popup with JS, JQuery, CSS, and HTML

Seeking assistance in creating an HTML, CSS, and JS/jQuery popup. Looking to have a button that reveals a div tag when clicked, which can also be closed. Any quick responses with solutions would be greatly appreciated. Thank you in advance! ...

Refresh a radio question to maintain the value using a BehaviorSubject

I am currently working with Angular 7 to create a form that includes a radio button question asking if an event occurred in a specific country. My goal is to retain the selected value even if the user navigates away and returns to the form. questions.serv ...

Node.js Express: Breaking Down Your Application into Modules

Currently, I am working on an express app and have the following code setup: MainApp.js const express = require('express'); const routes = require('./routes') const mainApp = express(); mainApp.listen(3000, () => { console.l ...

How do you find the value of a variable in IE 9 debugger?

Having an issue with my code on IE 9, it works fine in Firefox: var denomAmount = j(this).closest('.denom').children('.denomValue').eq(0).val(); I'm trying to understand what eq(0) will return, but the IE9 debugger is not providi ...

Obtain an oAuth token through the use of npm

Recently, I've been working on a nodeJS service to fetch an OAuth token from a server. Unfortunately, I keep encountering errors when running the function below: var express = require('express') var http = require('http'); var htt ...

Steps to correcting the return data type of the final promise in a chain?

Seeking a solution to return the last promise in a chain as the outcome of a function. Currently utilizing TypeScript 1.7 and native, ES6 promises. Despite attempting different approaches, I've found that TypeScript interprets the first promise (Uint ...

Play multiple videos simultaneously on a single webpage automatically

Looking to enhance my archive product page in woocommerce by adding a featured video. Encountering an issue where only one video auto plays while the others pause. When there's just one video on the page, it works flawlessly, but adding a second vide ...

When attempting to refresh the page, an error occurred stating: 'Unhandled TypeError: Cannot access properties of undefined (reading FetchApi.js:23 'data')'

Upon the initial run of the code, the mappings data appear as desired. However, upon refreshing the page, an error is displayed. Can someone please advise on how to rectify this error and what could be causing it? The provided code: import React, { useE ...

The npm outdated -g command is producing an error message that states "Unable to read the length property of undefined"

I am currently facing an issue while trying to check the version status of my npm installed global packages. When I run the command npm outdated -g --depth=0 in the terminal, I encounter the following error: npm ERR! Cannot read property 'length&apos ...

Troubleshooting a problem with Angular routing when trying to access a specific URL using

My main objective is to enable users to view products by clicking on the item itself. For each product item displayed in main.html, the URL format is like this... <a href="/products/{{ product.id }}">{{ product.title }}</a> For instance, when ...

Improve the efficiency of the function for retrieving data from a lengthy string and organizing it into key-value pairs within an object

I am dealing with a string extracted from a text file, which is structured in the following way on each line. 1=abc|2=TsMarketDataCache|3=1|4=141061|6=2023-02-27T05:04:50.472|36=F|7=1584A Format: key1=value1|key2=value2|key3=value3|key4=value4...|keyN=va ...

use the fetch api to send a url variable

I'm struggling to pass a URL variable through the API fetch and I can't seem to retrieve any results. As a newcomer to Javascript, any help is greatly appreciated. //Get IP address fetch('https://extreme-ip-lookup.com/json/') .then(( ...

The method "_super" is not supported by the object in igGrid

When using infragistics and igGrid in my application, I encountered a javascript error. The error message reads: "Object doesn't support property or method "_super" Although I understand how to resolve this issue, I have decided to provide a fake ...

Issue with forkJoin in the share component (and merging boolean variables) is not defined

I am facing an issue with my service where I need to share the result of a forkjoin, but the component is showing up as undefined Here is my service logic layer: @Injectable({ providedIn: 'root' }) ...

Display the map using the fancybox feature

I have added fancybox to my view. When I try to open it, I want to display a map on it. Below is the div for fancybox: <div id="markers_map" style="display:none"> <div id="map_screen"> <div class="clear"></div> </div&g ...

Is there a way to streamline routing in AngularJS similar to how .NET Data Annotation automates tasks?

Understanding the routing system in AngularJS is key, as shown below: .when('/96', { templateUrl: "96.html", animation: 'present' }) .when('/96/moharram', { template ...

Issue: Incorrectly calling a hook. Hooks can only be used within the body of a function component. Assistance needed to resolve this issue

import React, { useState } from "react"; const RegistrationForm = () => { const [name, setName] = useState(""); const [password, setPassword] = useState(""); const [email, setEmail] = useState(" ...

Determine in Javascript if a timestamp is within the last 24 hours or not

I'm looking to access Bitbucket repositories and refine them based on the updated_on timestamp. TARGET: The aim is to narrow down the ones that were updated within the last 24 hours. This is the information retrieved from the API: updated_on: 2018-0 ...

The parent-child relationships in MongoDB

In my Meteor application, I have created two collections: ActivityCards and Users. Inside the ActivityCard collection, there is a reference to the User like this: { "_id" : "T9QwsHep3dMSRWNTK", "cardName" : "Guntnauna", "activitycardType" : 1 ...