Use the currently selected property in Script

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Posts: 7
Joined: February 28th, 2017, 4:04 am

Hi folks,

i want to create a script that applies an expression to the currently selected (color) property. 

How can i use the currently selected property in a script? The path is always different, because a color value can sit in different groups/depths. 

How can i set the currently selected color value as var so i can reuse it to apply the expression? 

Thanks in advance :) 


Posts: 33
Joined: February 7th, 2005, 7:32 am

Code: Select all

var output = "Selected properties:\n";
for(prop in properties = app.project.activeItem.selectedProperties){
    output += properties[prop].name+" ("+properties[prop].matchName+")\n";
Boom boom boom.
Post Reply