Import Image Sequence Script Solved
Moderators: Víctor Paredes, Belgarath, slowtiger
Import Image Sequence Script Solved
Hi.
I was using the Import Image Sequence script today and found that when you import an image sequence, the script renames your images to create it's own image sequence nameset. That's fine except when you want to adust one of the images slightly in an image editor then the problem is you cannot refresh any of the image as they have been renamed. You have to completely delete all images and re-import them...in my case I lost all my tweaked cycle keyframes and had to start from scratch. Just wondering,if it iwere possible anyone on the list could take a look at it?
Cheers
D.K
I was using the Import Image Sequence script today and found that when you import an image sequence, the script renames your images to create it's own image sequence nameset. That's fine except when you want to adust one of the images slightly in an image editor then the problem is you cannot refresh any of the image as they have been renamed. You have to completely delete all images and re-import them...in my case I lost all my tweaked cycle keyframes and had to start from scratch. Just wondering,if it iwere possible anyone on the list could take a look at it?
Cheers
D.K
Last edited by DK on Tue Oct 07, 2008 8:24 am, edited 1 time in total.
Hey DK,
it is not a problem of the script. Forget the names it gives to the imported layers. The correct path to the file is there, inside the layer properties. The problem is that AS doesn't have a "refresh" images sources button. As you know, for fast render, images are stored in memory so you cannot update the touched original image file(s) until you don't close AS open it again and load the anme file that has the image sequence imported.

-G
it is not a problem of the script. Forget the names it gives to the imported layers. The correct path to the file is there, inside the layer properties. The problem is that AS doesn't have a "refresh" images sources button. As you know, for fast render, images are stored in memory so you cannot update the touched original image file(s) until you don't close AS open it again and load the anme file that has the image sequence imported.

-G
Let me give you a present:
save the script, name it ge_reload_image.lua and save in the menu>scripts>layer folder
Usage: select the image layer that you have modified and run the script.
Enjoy
-G
Code: Select all
-- **************************************************
-- 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
Usage: select the image layer that you have modified and run the script.
Enjoy
-G
Last edited by Genete on Tue Oct 07, 2008 11:15 am, edited 2 times in total.
Hi Genete.
I fixed it by removing the two top lines with the "*******"s ...there must be a typo in there somewhere. Seeing this is your script I will wait for you to fix it properly and re-upload it and then I will replace my hacked one.
YAAAY!!!! This is a BRILLANT script....It works like a dream!!!!
Thank you so much Genete!!!!
D.K
I fixed it by removing the two top lines with the "*******"s ...there must be a typo in there somewhere. Seeing this is your script I will wait for you to fix it properly and re-upload it and then I will replace my hacked one.
YAAAY!!!! This is a BRILLANT script....It works like a dream!!!!
Thank you so much Genete!!!!

D.K
If you want to make a short cut or a button just copy it to the tool folder and add a line to the desired section of _tool_list.txt file:
You should reload the script from the post above. I've modified it to make it available only if a image layer is selected.
Of course copy the script to the script/tool folder and provide a cool icon
.
I've found that the '+' key is not assigned to any task. I think that LM didn't assign them for different keyboards compatibilities. But I believe that you can assign any "typeable" character from the keyboard.
Enjoy!!!!
-G
Code: Select all
button ge_reload_image +
Of course copy the script to the script/tool folder and provide a cool icon

I've found that the '+' key is not assigned to any task. I think that LM didn't assign them for different keyboards compatibilities. But I believe that you can assign any "typeable" character from the keyboard.
Enjoy!!!!

-G