ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

import position data from photoshop

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kedar Dagadeimport position data from photoshop
by on Jan 10, 2013 at 10:27:49 pm

Hi,

I need to import position data of layer sprites from Photoshop into After Effects.

When I import the PSD as composition, the layer sprite size is set as composition size.

I want the layer sprite size remain the same as the sprite, so I have exproted all the layers as trimmed PNG files.
I used ExportLayerCoordinatesToXML script (by pattesdours) to export the data from Photoshop.

I have hundreds of sprites which needs to be repositioned in AE.


Thanks in advance.

-Kart


Return to posts index

Kedar DagadeRe: import position data from photoshop
by on Jan 10, 2013 at 10:44:00 pm

Forgot to mention that I can import PSD with "Composition - Cropped Layers" option, which solves the problem when I have the PSD.

I still would like to know if there a way if I have only the sprites and data file.

Thanks,

-Kart



Return to posts index

Roland R. KahlenbergRe: import position data from photoshop
by on Jan 11, 2013 at 1:29:32 am

Position data only exists when a layer is introduced into a comp. The default position is defined by the layer's center. All you need to do is to divide both length and height by 2.

HTH
RoRK

Intensive mocha & AE Training in Singapore and Other Dangerous Locations

Imagineer Systems (mocha) Certified Instructor
& Adobe After Effects ACE/ACI (version 7)


Return to posts index


Kedar DagadeRe: import position data from photoshop
by on Jan 11, 2013 at 8:32:23 pm

Thanks Ronald for reply.
Agreed what you are saying, & its easy when I have few layers to deal with.

My problem is I have many lots of sprites and a data file (either txt or xml) which gives me position, rotation, scale for each layer.
This data is generated from a PSD.
Lets say it gives me the data with respect to the center of the sprite.
Like,

Layer Name Position Rotation Scale
layer1.png 512,230,0 10 100,100,100
layer2.png 629,559,0 -5 100,100,100

If I want to position these sprites in AE I just have to read the values for the sprite and manually apply it on the sprite layer in AE. But if I have 100+ layers thats a time consuming task and its prone to errors.

Is there a script which can read the given data file and place the layers in sequence as mentioned in the data file and apply the transform values to each resp. layer?

-Kedar


Return to posts index

Roland R. KahlenbergRe: import position data from photoshop
by on Jan 12, 2013 at 12:32:13 am

You may get more replies for questions relating to scripting by posting in the COW's AE Expressions Forum.

Good Luck!
RoRK

Intensive mocha & AE Training in Singapore and Other Dangerous Locations

Imagineer Systems (mocha) Certified Instructor
& Adobe After Effects ACE/ACI (version 7)


Return to posts index

Kedar DagadeRe: import position data from photoshop
by on Jan 14, 2013 at 10:37:38 pm

Thanks Roland!

Will try in AE Expressions forum.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]