Replace to layer in Photoshop file
Moderators: Víctor Paredes, Belgarath, slowtiger
Replace to layer in Photoshop file
Via scripting I can replace an image to a separate file. Is it possible to replace to a layer in a Photoshop file? We can import layered Photoshop files. I'm not seeing a way to manually swap out Photoshop layers.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
- synthsin75
- Posts: 9968
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Replace to layer in Photoshop file
Check out my old Syn_UpdatePSD script to update a psd import (I haven't used it in ages, so no idea if it works with AS11). http://www.kelleytown.com/forum/animato ... PIC_ID=760
You have to parse the psd to determine the layer IDs and hierarchy, then parse the AS document to match these and change the source image using the ID in the psd (line 147):
moho:LayerAsImage(moho.layer):SetSourceImage(path.."*"..id.."*")
You have to parse the psd to determine the layer IDs and hierarchy, then parse the AS document to match these and change the source image using the ID in the psd (line 147):
moho:LayerAsImage(moho.layer):SetSourceImage(path.."*"..id.."*")
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Replace to layer in Photoshop file
Thanks! I'll check it out.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Re: Replace to layer in Photoshop file
Is there a way to get access to this script without having to register with another forum?synthsin75 wrote:Check out my old Syn_UpdatePSD script to update a psd import (I haven't used it in ages, so no idea if it works with AS11). http://www.kelleytown.com/forum/animato ... PIC_ID=760
You have to parse the psd to determine the layer IDs and hierarchy, then parse the AS document to match these and change the source image using the ID in the psd (line 147):
moho:LayerAsImage(moho.layer):SetSourceImage(path.."*"..id.."*")
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
- synthsin75
- Posts: 9968
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Replace to layer in Photoshop file
Nope, but registration's free and many more scripts are only found there.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Replace to layer in Photoshop file
Ok, I'll join that forum too.synthsin75 wrote:Nope, but registration's free and many more scripts are only found there.
Just curious but what's the difference between that one and this one?
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
- synthsin75
- Posts: 9968
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Replace to layer in Photoshop file
Smaller, more active scripters.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/