View Full Version : Combine images
Thundik81
12th May 2015, 19:48
I don't know the technical terms to describe what i want to do.
Make it easy!
I have x images with a single dot on it (different places)
I want that :
1st frame with 1 dot (001.png)
2nd frame with 2 dots (002.png over 001.png)
3rd frame with 3 dots (003.png over 002.png over 001.png)
and so on...
TiA
Gavino
12th May 2015, 20:18
See this old thread - "Sticking" overlay - for a similar problem and its solution.
Thundik81
12th May 2015, 20:40
I miss something...
bg = ImageSource("img/%03d.png", 1, 50, 4).Crop(1,1,0,0).ConvertToRGB32()
out = BlankClip(bg)
ScriptClip(bg, """
out = Layer(out.Loop(2,0,0),bg.Trim(current_frame,-1),"add")
return out
""")
=
ImageSource("img/%03d.png", 1, 50, 4).Crop(1,1,0,0).ConvertToRGB32()
Gavino
12th May 2015, 22:13
Assuming your images have transparency information, you need to load them in with ImageSource as RGB32 (not the default RGB24) in order to preserve that information.
bg = ImageSource("img/%03d.png", 1, 50, 4, pixel_type="RGB32").Crop(1,1,0,0)
With your current script, you are overlaying completely opaque frames each time, so only the topmost one is visible.
Thundik81
12th May 2015, 22:42
Assuming your images have transparency information, you need to load them in with ImageSource as RGB32 (not the default RGB24) in order to preserve that information.
bg = ImageSource("img/%03d.png", 1, 50, 4, pixel_type="RGB32").Crop(1,1,0,0)
With your current script, you are overlaying completely opaque frames each time, so only the topmost one is visible.
Of course! :thanks:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.