Skip to content

Instantly share code, notes, and snippets.

@tin2tin
Created April 17, 2023 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tin2tin/4cb6248b8746b7c132382a438f54be38 to your computer and use it in GitHub Desktop.
Save tin2tin/4cb6248b8746b7c132382a438f54be38 to your computer and use it in GitHub Desktop.
eq ui
if mod.type == 'SOUND_EQUALIZER':
box.use_property_decorate = False
box.use_property_split = False
flow = box.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
for i in range(len(mod.graphics)):
soundEq = mod.graphics[i]
box = flow.column()
box.template_curve_mapping(soundEq, "curve_mapping",
type='NONE', levels=False, brush=True, use_negative_slope=True, show_tone=False)
row = box.row(align=True)
row.prop(soundEq.curve_mapping, "clip_min_x", text="Start")
row.prop(soundEq.curve_mapping, "clip_max_x", text="End")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment