updating image
Moderators: Víctor Paredes, Belgarath, slowtiger
updating image
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?
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?
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.


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.
Last edited by Rai López on Fri Apr 13, 2007 1:19 am, edited 1 time in total.
...
- Víctor Paredes
- Site Admin
- Posts: 5814
- Joined: Wed Jan 26, 2005 12:18 am
- Location: Barcelona/Chile
- Contact:
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!



...
help
I really need that updating images script again but the link doesn't work... If anyone have it please share...
-
- Posts: 39
- Joined: Tue May 22, 2007 6:18 am
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...
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
Last edited by rylleman on Mon Oct 08, 2007 11:11 am, edited 1 time in total.
-
- Posts: 39
- Joined: Tue May 22, 2007 6:18 am