Page 1 of 1
updating image
Posted: Thu Apr 12, 2007 6:18 pm
by Gnaws
This is kind of odd.
I have a PNG imported into AS. I noticed that if I change the PNG in P'shop and try to update the PNG (with the new changes) within AS it seems to ignore me -- it changes nothing. But if I update the image by pointing it to a completely different PNG (having a different name) it WILL update. But then I have to point it back to the correct file before it will update the way I initially wanted it to.
In other words, it seems I can only update an image if it has a different name.
Am I missing something?
Posted: Thu Apr 12, 2007 6:36 pm
by rylleman
No, this is an quite annoying bug...
Posted: Thu Apr 12, 2007 9:36 pm
by funk-ulf
I believe the fastest way to update an image (in Moho anyway) is simply to double-click its layer and then press enter. that way you dont need too mess around with the "source image" stuff...
Posted: Thu Apr 12, 2007 10:08 pm
by Gnaws
funk-ulf wrote:...the fastest way to update an image (in Moho anyway) is simply to double-click its layer and then press enter.
This may have worked in Moho, but not in AS Pro.

Posted: Fri Apr 13, 2007 12:54 am
by Rai López
Hi, how are you guys? I have wrote
THIS in a minute, I had prefered a tool script instead a menu comand one to can activate it by a button but... uf, that had required at least five! Jeje... Well, I hope it helps
PS: Put the file into the "C:\Program files\e frontier\Anime Studio Pro\scripts\menu\Image", you know... and then you'll be able to update your selected Image Layer with an only one click.
Posted: Fri Apr 13, 2007 1:06 am
by Víctor Paredes
is ramón back??
rewelcome back

Posted: Fri Apr 13, 2007 1:18 am
by Rai López
Jaja, pos GRACIAS!

Mira, debí dedicarte esa script aunque bien pensao como que hubiera sido muy poca cosa, no? Uhm, para ti como poco la de "LipSinc with Actions"

o una mejor que tenía pendiente por ahí que a ver si la acabo algún día... Bueno, now I should go to the Animation:Master forum again...

CIAO!
Posted: Fri Apr 13, 2007 6:51 pm
by Gnaws
Ramón López wrote:Well, I hope it helps

Are you kidding? This is SWEEEEET!!
Thanks so much, Ramón!
help
Posted: Fri Oct 05, 2007 9:19 am
by funk-ulf
I really need that updating images script again but the link doesn't work... If anyone have it please share...
Posted: Fri Oct 05, 2007 2:10 pm
by animationkolhapur
I also need that script desperately ... can anyone upload it ?
Posted: Fri Oct 05, 2007 2:42 pm
by rylleman
Here you go;
http://www.rylanderanimation.se/temp/RL ... age_01.lua
edit, I'll post the code as well since it is quite short and I might clean out the temp-folder on my server...
Code: Select all
-- **************************************************
-- Provide Moho with the name of this script object
-- **************************************************
ScriptName = "RL_UpdateImage"
-- **************************************************
-- General information about this script
-- **************************************************
RL_UpdateImage = {}
function RL_UpdateImage:Name()
return "Update Image"
end
function RL_UpdateImage:Version()
return "1.0"
end
function RL_UpdateImage:Description()
return "Updates your Image Layer with only on click."
end
function RL_UpdateImage:Creator()
return "Ramón López"
end
function RL_UpdateImage:UILabel()
return("Update Image")
end
-- **************************************************
-- The guts of this script
-- **************************************************
function RL_UpdateImage:Run(moho)
--Is this an Image Layer?
if (moho.layer:LayerType() ~= MOHO.LT_IMAGE) then
LM.GUI.Alert(LM.GUI.ALERT_INFO, "...Ey, this is NOT and Image Layer! >:-[", nil, nil, "OK", nil, nil)
return
end
--If it is...
moho:LayerAsImage(moho.layer)
PreviousSourceImage = moho.layer:SourceImage()
--print(PreviousSourceImage)
moho.layer:SetSourceImage("")
--print(moho.layer:SourceImage())
moho.layer:SetSourceImage(PreviousSourceImage)
end
Posted: Sat Oct 06, 2007 6:59 am
by animationkolhapur
Thanks a lot .. that did work ..
Posted: Sat Oct 06, 2007 10:10 am
by funk-ulf
tackartackar
