文章目录
1.算法程序
- 1.算法程序
- 2.作者答疑
AfterEffect(AE)插件是Adobe公司开发的特效制作软件,稳定快速的功能和特效,在视频制作领域使用非常广泛,本文向大家介绍如何在项目里进行改变层上帧的属性功能。源代码如下所示:
{
// Convert Selected Properties to Markers.jsx
//
// For each layer that contains selected properties, convert the value of the property at each
// frame time to an event cue point.
function ConvertSelectedPropertiesToMarkers()
{
var scriptName = "Convert Selected Properties to Markers";
var propsSkipped = new Array();
function ConvertPropertyToMarkers(markerStream, prop)
{
// Only do properties, not property groups.
if (!(prop instanceof Property)) {
return;
}
// Custom/No_Value property types are not supported, so skip gracefully (but log so we can display useful error message later).
if ((prop.propertyValueType == PropertyValueType.CUSTOM_VALUE) || (prop.propertyValueType == PropertyValueType.NO_VALUE)) {
// Log just the first 10 custom properties, as we don't want to display too big of an error message dialog to the user,
if (propsSkipped.length 0; --depth) {
owningLayer = owningLayer.parentProperty;
}
if (prop.expressionEnabled) {
// For properties with enabled expressions, add markers at each frame between the In and Out points.
var curTime = owningLayer.inPoint;
var outTime = owningLayer.outPoint;
for ( ; curTime
关注
打赏
热门博文
- Adobe illustrator插件开发-SPInterfaceSuite-插件A向插件B传递消息-插件通信-AI插件开发
- javascript-ztree-树形控件-初始化-加载节点数据-节点数据获取
- Adobe illustrator插件开发-坐标系统-AIHardSoftSuite-画板坐标-页面坐标-AI插件开发
- Adobe illustrator插件开发-AIUIDUtilsSuite-AIUIDPoolSuite-AIUIDSuite-AIUIDREFSuite-Art唯一标识符与索引-AI插件开发
- C++-逆向分析-类的成员函数地址与对象地址动态绑定-this指针-成员函数和成员虚函数反汇编解析
- C++-逆向分析-结构体和类-内存布局-this指针-静态数据成员-对象作为参数和返回值
- Adobe illustrator插件开发-命令名称-AddCommand -AI插件开发
- Adobe illustrator插件开发-事件-PlugPlugAddEventListener-向系统注册事件-AI插件开发
- Adobe illustrator插件开发-ole拖拽粘贴交换数据格式-RegisterClipboardFormat函数-AI插件开发
- Adobe illustrator插件开发-所有模块列表-内部存在大量非公开的Suite-AI插件开发