Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_graph.py
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| layout.operator_context = 'EXEC_DEFAULT' | layout.operator_context = 'EXEC_DEFAULT' | ||||
| layout.operator("graph.decimate", text="Decimate (Allowed Change)").mode = 'ERROR' | layout.operator("graph.decimate", text="Decimate (Allowed Change)").mode = 'ERROR' | ||||
| layout.operator_context = operator_context | layout.operator_context = operator_context | ||||
| layout.operator("graph.clean").channels = False | layout.operator("graph.clean").channels = False | ||||
| layout.operator("graph.clean", text="Clean Channels").channels = True | layout.operator("graph.clean", text="Clean Channels").channels = True | ||||
| layout.operator("graph.smooth") | layout.operator("graph.smooth") | ||||
| layout.operator("graph.sample") | layout.operator("graph.sample") | ||||
| layout.operator("graph.bake") | layout.operator("graph.bake") | ||||
| layout.operator("graph.unbake") | |||||
sybren: In a future commit, IMO these could move from the Key menu to the Channel menu. After all, they… | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter") | layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter") | ||||
| class GRAPH_MT_key_transform(Menu): | class GRAPH_MT_key_transform(Menu): | ||||
| bl_label = "Transform" | bl_label = "Transform" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| ▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines | |||||
In a future commit, IMO these could move from the Key menu to the Channel menu. After all, they bake entire channels and don't operate on individual/selected keys only.