javascript - MOGRT 中的 Premiere Pro Extendscript 复选框选择
问题描述
在 Adobe Extendscript 中编写 Premiere Pro 面板时,我可以导入 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);
关于为什么或如何更改复选框值的任何想法???
解决方案
看来您缺少第二个参数“boolUpdateUI”...
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.
推荐阅读
- python - 陷入 Python 无限循环
- java - 如何解决适配器中的位置问题?使用 firebase 作为后端
- python - Python 在 PowerBI 中对导入的数据进行透视,并将透视表保存为 PowerBI 中的数据/表
- arrays - 如何让 fscanf 扫描 C 中的下一行
- microsoft-dynamics - Dynamics ERP 是否内置了 REST api 并且可以通过 web 访问
- javascript - Vue.js Import mixin 不会在应用程序中导入
- python - 用于感官评估中时间强度或渐进分析的 R/Python 包?
- docker - 如何手动运行 cron 作业并检查 ubuntu 中的日志
- r - ggplot R中的X轴子标签
- angular - 轮询:页面被刷新,任何指定的过滤器/排序顺序也被重置。我怎样才能防止这种情况发生?