Page 1 of 1

Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 5:37 am
by Víctor Paredes
Hi, I need to reduce the size and weight of a PSD file already imported in an AS scene. If I reduce the PSD size to the half, for example, the AS project gets broken, with all the PSD layers at different size and place.
Is there a way to solve this with a script?

I would really appreciate if you could help me today, I'm against the time.
Thank you very much.

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 8:06 am
by jahnocli
I seem to remember reading somewhere that if, in the PSD file, you turn all layers' visibility off but one, then export using the "Export to AS" script, the PSD file will import into AS as a switch layer. You could then alter the proportions of this in AS. Or am I missing the point? (Wouldn't be the first time...)

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 8:47 am
by heyvern
The problem is the link to the PSD and it's size. You change the PSD size and the whole thing goes to heck. A script could fix this by scaling up the smaller layer size and shifting the center of each of the PSD layers inside the ASP file. You would need to calculate the size change to make the file smaller, and proportially scale up each layer and proportially shift the center origin. Although... maybe you wouldn't need to shift the origin if the layer is scaled up?

The whole thing has my head spinning a bit... but... that might be the horrific flu I have right now and all the medicines... makes me a bit floaty.

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 1:03 pm
by hayasidist
IMO photoshop import needs improving ...there is a script that might help but it's not public domain ... viewtopic.php?f=3&t=24909 ..

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 3:40 pm
by Víctor Paredes
Thank you Jahnocli, but my problem has to be with an already done project.
Vern, I suppose a script could calculate each layer position relatively in relation to the entire PSD size, maybe using percentages instead of pixel position. That could work (according tomy no scripter mind).
I wish you a fast recovery!
hayasidist wrote:IMO photoshop import needs improving ...there is a script that might help but it's not public domain ... viewtopic.php?f=3&t=24909 ..
Too sad it's not public. Could you (or somebody) check if it solves the problem I'm having?
Thanks.

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 4:04 pm
by synthsin75
No, Victor, that script isn't likely to help your problem any.

Re: Help! Reduce imported PSD size and keep proportions

Posted: Tue Feb 04, 2014 4:07 pm
by Víctor Paredes
synthsin75 wrote:No, Victor, that script isn't likely to help your problem any.
Thank you very much, Wes.

Re: Help! Reduce imported PSD size and keep proportions

Posted: Wed Feb 05, 2014 1:10 am
by Lukas
Not sure if this works, but:

You could make the psd smaller and export it the old way, using export to anme file.

After that you could manually set the new source of each image layer.

Might be a lot of work, but it's worth a shot.