首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MOGRT中Premiere脚本复选框的选择

MOGRT中Premiere脚本复选框的选择
EN

Stack Overflow用户
提问于 2020-02-10 00:08:27
回答 1查看 420关注 0票数 1

在Adobe中编写Premiere Pro Panel时,我可以导入一个MOGRT文件,并使用以下代码设置滑块的值:

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);

但是,在导入后,当我尝试选中/取消选中MOGRT中的复选框值时,相同的代码不工作?

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

对于为什么或如何更改复选框的值,有什么想法吗??

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-17 14:29:10

好像你错过了第二个参数‘boolUpdateUI’.

代码语言:javascript
复制
setValue componentParam.setValue(newValue, boolUpdateUI)

Description

Obtains the value of the component parameter stream. Note: This can only work on parameters which are not time-variant.

Parameters

The newValue must be of the appropriate type for the component parameter stream; passing 1 for boolUpdateUI will force Premiere Pro to update its UI, after updating the value of the stream.

Returns

Returns 0 if successful.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60142569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档