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;
var assetProf = lib.assets.itemByName( "test" ).placeAsset( app.activeDocument );
assetProf.resolve( [[100, 100], AnchorPoint.TOP_RIGHT_ANCHOR], CoordinateSpaces.parentCoordinates, true);
Moved to the scripting forum...
I think that the result of placeAsset is always an array, so you might try
I'm very curious about the difference between .move (which is what I've been using to reposition newly place library assets) and .resolve
.move usually requires that the script account for all the various measurementUnits that might be in play, so I'm constantly switching to points then switching back to whatever was in use. Does .resolve get around that?
...actually, I have no idea if resolve() addresses that, maybe this is of any help: http://jongware.mit.edu/idcs4js/pc_Rectangle.html
your suggestion about it being an array was correct. Thanks so much