Skip navigation
Currently Being Moderated

Script for renaming selected shape layer items

Mar 25, 2012 3:06 PM

Does anyone know if such a script exists?

 

That is to say, a script that renames the selected sub-items of a shape layer (paths, groups, shape generators etc).

 

Am aware there's already scripts to rename selected layers and layer masks. Have attempted to rewrite these to deal with shape layer items, but to no avail.

 

Many thanks

 
Replies
  • Currently Being Moderated
    Apr 7, 2012 10:17 PM   in reply to jhan2011

    I was able to rename them using these:

    "Path 1"

    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Shape - Group").name = "MY NEW PATH NAME";

     

    "Shape 1"

    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Stroke").name = "MY SHAPE NAME";

     

    "Fill 1"

    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Fill").name = "MY FILL NAME";

     

    "Group 1"

    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Group").name = "MY GROUP 1 NAME";

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 7, 2012 10:19 PM   in reply to David Torno

    This will help you out a lot when trying to find the actual property paths for Expressions and Scripts.

     

    http://www.redefinery.com/ae/view.php?item=rd_GimmePropPath

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points