View Single Post
Old 20th January 2018, 02:41   #48  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Gavino View Post
I think that could be fixed by setting local=false (default is 'true' when args is used), but I don't think it would fix real.finder's original problem.
Code:
function SFrameBlendX(clip C, int "blendfactor", string "blend_mode", float "blend_opacity")
{
    C
    limit = (blendfactor<=0) ? 1 : Max(1, FrameCount/blendfactor)
    FrameCount!=1 ? ScriptClip("""
  try{bb=isclip(b)} catch(error_msg) {bb=false}
  b = bb ? limit>1 ? Overlay(b.Loop(2,0,0),last,opacity=float(limit)/FrameCount) : b.Loop(2,0,0) : nop()
  b = bb ? b.Overlay(last, mode=blend_mode, opacity=blend_opacity) : last
  return b
            """,args="blend_mode, blend_opacity, limit", local=false) : last
}
yes it work like before and it not fix the ram problem
__________________
See My Avisynth Stuff

Last edited by real.finder; 21st January 2018 at 17:26.
real.finder is offline   Reply With Quote