Example #1
0
 public TOutput Execute(TInput input, string code, string filename = "")
 {
     try
     {
         var clip = ResetEngine(input);
         Engine.Execute("Script", true, code);
         return(clip);
     }
     catch (ScriptEngineException e)
     {
         ThrowScriptEngineException(filename, e);
     }
     return(default(TOutput));
 }
 public IFilter Execute(RenderChain.RenderChain chain, IFilter input, string code, string filename = "")
 {
     try
     {
         var clip = ResetEngine(chain, input);
         m_Engine.Execute("RenderScript", true, code);
         return(clip == null ? null : ((Clip)clip).Filter);
     }
     catch (ScriptEngineException e)
     {
         ThrowScriptEngineException(filename, e);
     }
     return(null);
 }