hey guys.
im using photoshop to create a cutout character on AS.
everything just fine but...
im wondering how can I replace the leg's images of
my already rigged cut-out character BUT still keep the bones setups and stuff intact for these legs im changing; (i think my bones are fine, i just wanted to change the legs images);
sorry if it's a dumb question to ask but i can't find an easy way to do it, and im sure there must be a very easy one.
image replacement on a rigged doll
Moderators: Víctor Paredes, Belgarath, slowtiger
Genete wrote this great little script for me that refreshes and replaces images from AS.
Cheers
D.K
Cheers
D.K
-- **************************************************
-- Provide Moho with the name of this script object
-- **************************************************
ScriptName = "GE_reload_image"
-- **************************************************
-- General information about this script
-- **************************************************
GE_reload_image = {}
function GE_reload_image:Name()
return "Reload Image"
end
function GE_reload_image:Version()
return "1.0"
end
function GE_reload_image:Description()
return "Reload image form disk"
end
function GE_reload_image:Creator()
return "Carlos López (Genete)"
end
function GE_reload_image:UILabel()
return "Reload Image Source"
end
-- **************************************************
-- The guts of this script
-- **************************************************
function GE_reload_image:IsEnabled(moho)
if (moho.layer:LayerType() == MOHO.LT_IMAGE) then
return true
end
return false
end
function GE_reload_image:Run(moho)
local l=moho.layer
if(l:LayerType()~=MOHO.LT_IMAGE) then
return
else
-- print("reloading...")
l=moho:LayerAsImage(l)
local fname = l:SourceImage()
l:SetSourceImage(fname)
return
end
end
- synthsin75
- Posts: 10253
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Slowtiger, This is what the script that Genete wrote, (above), does without the user having to close and re-open AS. It's a real timesaver for people who use a lot of images in their work. It came about when I was using image sequences in a project and photoshopping them as I went along but was frustrated with AS not refreshin the source sequence without shutting down and re-assigning etc hence a thread on the forum resulted in this Lua script from Genete. it's fantastic!If you don't see a change, just close the AS file and open it again. It now has updated all image information.

Cheers
D.K
Hi Spence.
PM me with your email address.
Cheers
D.K
PM me with your email address.
Cheers
D.K
http://www.creativetvandmedia.com
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315