Highlighted

Expression dont work

Community Beginner ,
May 08, 2020

Copy link to clipboard

Copied

Where is the porblem with this expression:

Bildschirmfoto 2020-05-08 um 09.28.43.png

THANKS for Answers!!!

Adobe Community Professional
Correct answer by Tomas_Sinkunas | Adobe Community Professional
var x = thisComp.layer("Kamera 1").transform.position.value[0];
var y = thisComp.layer("Kamera 1").transform.position.value[1];
var z = thisComp.layer("Kamera 1").transform.position.value[2] - 800;

[x, y, z];

 

or simply

thisComp.layer("Kamera 1").transform.position.value - [0, 0, 800];

 

TOPICS
Expressions, Scripting

Views

327

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Expression dont work

Community Beginner ,
May 08, 2020

Copy link to clipboard

Copied

Where is the porblem with this expression:

Bildschirmfoto 2020-05-08 um 09.28.43.png

THANKS for Answers!!!

Adobe Community Professional
Correct answer by Tomas_Sinkunas | Adobe Community Professional
var x = thisComp.layer("Kamera 1").transform.position.value[0];
var y = thisComp.layer("Kamera 1").transform.position.value[1];
var z = thisComp.layer("Kamera 1").transform.position.value[2] - 800;

[x, y, z];

 

or simply

thisComp.layer("Kamera 1").transform.position.value - [0, 0, 800];

 

TOPICS
Expressions, Scripting

Views

328

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 08, 2020 0
Adobe Community Professional ,
May 08, 2020

Copy link to clipboard

Copied

var x = thisComp.layer("Kamera 1").transform.position.value[0];
var y = thisComp.layer("Kamera 1").transform.position.value[1];
var z = thisComp.layer("Kamera 1").transform.position.value[2] - 800;

[x, y, z];

 

or simply

thisComp.layer("Kamera 1").transform.position.value - [0, 0, 800];

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2020 1
Community Beginner ,
May 08, 2020

Copy link to clipboard

Copied

YOU ARE A LEGEND!!!

 

THANK YOU!!!!!!!!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 08, 2020 0