文章目录
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
关注
打赏
最近更新
- 深拷贝和浅拷贝的区别(重点)
- 【Vue】走进Vue框架世界
- 【云服务器】项目部署—搭建网站—vue电商后台管理系统
- 【React介绍】 一文带你深入React
- 【React】React组件实例的三大属性之state,props,refs(你学废了吗)
- 【脚手架VueCLI】从零开始,创建一个VUE项目
- 【React】深入理解React组件生命周期----图文详解(含代码)
- 【React】DOM的Diffing算法是什么?以及DOM中key的作用----经典面试题
- 【React】1_使用React脚手架创建项目步骤--------详解(含项目结构说明)
- 【React】2_如何使用react脚手架写一个简单的页面?