parameters: (bline, st_val, origin_p, fr)
docstring: Calculates the points for the region layer in Synfig
docstring_summary: Calculates the points for the region layer in Synfig
docstring_tokens: Calculates the points for the region layer in Synfig
function: def synfig_region(bline, st_val, origin_p, fr):
      """
      Calculates the points for the region layer in Synfig
      """
      bline_list = bline.get_list_at_frame(fr)
      origin_cur = origin_p.get_value(fr)         
  
      for bline_point in bline_list:
          tangent1 = bline_point.get_tangent1() * settings.PIX_PER_UNIT
          tangent2 = bline_point.get_tangent2() * settings.PIX_PER_UNIT
  
          tangent1, tangent2 = convert_tangent_to_lottie(tangent1, tangent2)
  
          # Adding origin to each vertex
          pos = to_Lottie_axis(bline_point.get_vertex().get_list(), "vector")
          for i in range(len(pos)):
              pos[i] += origin_cur[i]
  
          # Store values in dictionary
          st_val["i"].append(tangent1.get_list())
          st_val["o"].append(tangent2.get_list())
          st_val["v"].append(pos)
function_tokens: def synfig_region ( bline , st_val , origin_p , fr ) : bline_list = bline . get_list_at_frame ( fr ) origin_cur = origin_p . get_value ( fr ) for bline_point in bline_list : tangent1 = bline_point . get_tangent1 ( ) * settings . PIX_PER_UNIT tangent2 = bline_point . get_tangent2 ( ) * settings . PIX_PER_UNIT tangent1 , tangent2 = convert_tangent_to_lottie ( tangent1 , tangent2 ) # Adding origin to each vertex pos = to_Lottie_axis ( bline_point . get_vertex ( ) . get_list ( ) , "vector" ) for i in range ( len ( pos ) ) : pos [ i ] += origin_cur [ i ] # Store values in dictionary st_val [ "i" ] . append ( tangent1 . get_list ( ) ) st_val [ "o" ] . append ( tangent2 . get_list ( ) ) st_val [ "v" ] . append ( pos )