Skip navigation
Alex Grey
Currently Being Moderated

Trying to get value from Warp Stabilizer

May 16, 2012 12:33 AM

Hello everyone!

I want to write a script which can get value "Auto-scale" from all stabilized footages and, depending from the number, will change the colour of footage (layer).

"Auto-scale" isn`t keyframable effect, so I got stuck on how to get it`s value.

 

 

 

auto scale1.png

 

 

Thank you in advance!

 
Replies
  • Currently Being Moderated
    May 16, 2012 9:21 AM   in reply to Alex Grey

    Hi,

    maybe you can use this script from paul tuersley : http://www.paul.tuersley.btinternet.co.uk/scripts/FindProperties_v1.3. jsx.zip

    to get the properties of your effect.

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 11:48 AM   in reply to Alex Grey

    If you're after the percentage number, this should help. It assumes your stabilized layer is layer 1 of the active comp:

     

    {

      var myComp = app.project.activeItem;

      var myLayer = myComp.layer(1);

      var myEffect = myLayer.property("Effects").property("Warp Stabilizer");

      var myName = myEffect.property("ADBE SubspaceStabilizer-0017").name;

      var numIdx = myName.indexOf("(");

      if (numIdx > -1){

        var myPct = parseFloat(myName.substr(numIdx+1));

        alert (myPct);

      }else{

        alert("No percentage found.");

      }

    }

     

     

    Dan

     
    |
    Mark as:
  • Currently Being Moderated
    May 16, 2012 12:02 PM   in reply to Alex Grey

    Cheers,

     
    |
    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