3 Replies Latest reply on May 28, 2014 3:52 PM by Yellow Mammoth

    Positioning an object placed from library using JS

    Yellow Mammoth Level 1

      I'm placing an object from a library and I'd like to move it to specified coordinates but this third line does not do the job. The error is: "assetProf.resolve is not a function"

      What am I missing here?

       

      var lib = app.libraries[0];

      var assetProf = lib.assets.itemByName( "test" ).placeAsset( app.activeDocument );

      assetProf.resolve( [[100, 100], AnchorPoint.TOP_RIGHT_ANCHOR], CoordinateSpaces.parentCoordinates, true);