在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);
对于为什么或如何更改复选框的值,有什么想法吗??
发布于 2020-07-17 14:29:10
好像你错过了第二个参数‘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.https://stackoverflow.com/questions/60142569
复制相似问题