parameters: (lottie, time_offset, time_dilation, fr)
docstring: Generates the constant values for each frame
  
      Args:
          lottie (dict) : Bezier values will be stored in here
          offset_dict (dict) : Animation of offset in lottie format
          dilation_dict (dict) : Animation of dilation/speed in lottie format
          fr (int) : frame number
  
      Returns:
          (None)
docstring_summary: Generates the constant values for each frame
docstring_tokens: Generates the constant values for each frame
function: def gen_dict(lottie, time_offset, time_dilation, fr):
      """
      Generates the constant values for each frame
  
      Args:
          lottie (dict) : Bezier values will be stored in here
          offset_dict (dict) : Animation of offset in lottie format
          dilation_dict (dict) : Animation of dilation/speed in lottie format
          fr (int) : frame number
  
      Returns:
          (None)
      """
      lottie["i"], lottie["o"] = {}, {}
      lottie["i"]["x"], lottie["i"]["y"] = [], []
      lottie["o"]["x"], lottie["o"]["y"] = [], []
      lottie["i"]["x"].append(0.5)
      lottie["i"]["y"].append(0.5)
      lottie["o"]["x"].append(0.5)
      lottie["o"]["y"].append(0.5)
      lottie["t"] = fr
  
      speed_f = to_Synfig_axis(time_dilation.get_value(fr), "real")
      speed_s = to_Synfig_axis(time_dilation.get_value(fr+1), "real")
      first = time_offset.get_value(fr) + (fr/settings.lottie_format["fr"])*speed_f
      second = time_offset.get_value(fr + 1) + ((fr + 1)/settings.lottie_format["fr"])*speed_s
      first = min(max(get_time_bound("ip"), first), get_time_bound("op"))
      second = min(max(get_time_bound("ip"), second), get_time_bound("op"))
  
      lottie["s"], lottie["e"] = [first], [second]
function_tokens: def gen_dict ( lottie , time_offset , time_dilation , fr ) : lottie [ "i" ] , lottie [ "o" ] = { } , { } lottie [ "i" ] [ "x" ] , lottie [ "i" ] [ "y" ] = [ ] , [ ] lottie [ "o" ] [ "x" ] , lottie [ "o" ] [ "y" ] = [ ] , [ ] lottie [ "i" ] [ "x" ] . append ( 0.5 ) lottie [ "i" ] [ "y" ] . append ( 0.5 ) lottie [ "o" ] [ "x" ] . append ( 0.5 ) lottie [ "o" ] [ "y" ] . append ( 0.5 ) lottie [ "t" ] = fr speed_f = to_Synfig_axis ( time_dilation . get_value ( fr ) , "real" ) speed_s = to_Synfig_axis ( time_dilation . get_value ( fr + 1 ) , "real" ) first = time_offset . get_value ( fr ) + ( fr / settings . lottie_format [ "fr" ] ) * speed_f second = time_offset . get_value ( fr + 1 ) + ( ( fr + 1 ) / settings . lottie_format [ "fr" ] ) * speed_s first = min ( max ( get_time_bound ( "ip" ) , first ) , get_time_bound ( "op" ) ) second = min ( max ( get_time_bound ( "ip" ) , second ) , get_time_bound ( "op" ) ) lottie [ "s" ] , lottie [ "e" ] = [ first ] , [ second ]