MCPcopy Create free account
hub / github.com/coldtype/st2 / draw

Method draw

ST2/interpolation.py:107–121  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

105 return True
106
107 def draw(self, context):
108 selection = search.find_st2_all_selected(context)
109 #editables = search.find_st2_editables(context)
110
111 if len(selection) == 2:
112 row = self.layout.row()
113 row.prop(context.scene.st2, "interpolator_count", text="")
114 row.prop(context.scene.st2, "interpolator_easing", text="")
115 row.prop(context.scene.st2, "interpolator_style", text=None, expand=True)
116
117 row = self.layout.row()
118 row.operator("st2.interpolate_strings", text="Interpolate")
119
120 row = self.layout.row()
121 row.label(text=f"Interpolating: {selection[0].name} & {selection[1].name}")
122
123
124classes = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected