MCPcopy Create free account
hub / github.com/MaximeHerpin/modular_tree / execute

Method execute

nodes.py:286–294  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 layout.prop(self, i)
285
286 def execute(self):
287
288 gp = bpy.context.scene.grease_pencil
289 if gp is not None and gp.layers.active is not None and gp.layers.active.active_frame is not None and len(
290 gp.layers.active.active_frame.strokes) > 0 and len(gp.layers.active.active_frame.strokes[0].points) > 1:
291
292 strokes = [[i.co for i in j.points] for j in gp.layers.active.active_frame.strokes]
293 root = build_tree_from_strokes(strokes, self.radius, self.radius_decrease)
294 return root
295
296
297class SplitNode(Node, ModularTreeNode):

Callers

nothing calls this directly

Calls 1

build_tree_from_strokesFunction · 0.85

Tested by

no test coverage detected