Skip to main content
Inspiring
Jun 11, 2018 5:16 PM UTC
Answered

Create Master Property with script

Hi

Is it possible to create a master property on a comp using scripts?

Thanks,

Jakob

This topic is closed to new replies. Start a new post to keep the conversation going.
derick1209
derick1209Correct answer
Inspiring
Jun 12, 2018 8:34 PM UTC

do you mean that ?

from Victoria (@FakeGreenDress) | Twitter

function R(P) {

if (P.numKeys > 0) P.addToMotionGraphicsTemplate(C);

for (var d = 1; d <= P.numProperties; d++) {

R(P.property (d));

}}

var C = app.project.activeItem;

var L = C.layers;

for (var i = 1; i <= L.length; i++){

R(L);

}



2 replies

derick1209
derick1209Correct answer
Inspiring
Jun 12, 2018 8:34 PM UTC

do you mean that ?

from Victoria (@FakeGreenDress) | Twitter

function R(P) {

if (P.numKeys > 0) P.addToMotionGraphicsTemplate(C);

for (var d = 1; d <= P.numProperties; d++) {

R(P.property (d));

}}

var C = app.project.activeItem;

var L = C.layers;

for (var i = 1; i <= L.length; i++){

R(L);

}



Translate
Inspiring
Jun 15, 2018 12:22 PM UTC

Excellent! Thanks!

Translate