Welcome to mirror list, hosted at ThFree Co, Russian Federation.

trails.py « bparticle_nodes « nodes « startup « scripts « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3a63c8d174390597ebbb1b19fc3b81ab47e3f963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import bpy
from bpy.props import *
from .. base import SimulationNode
from .. node_builder import NodeBuilder

class ParticleTrailsNode(bpy.types.Node, SimulationNode):
    bl_idname = "fn_ParticleTrailsNode"
    bl_label = "Particle Trails"

    execute_on_birth__prop: NodeBuilder.ExecuteInputProperty()

    def declaration(self, builder: NodeBuilder):
        builder.fixed_input("rate", "Rate", "Float", default=20)
        builder.execute_input("execute_on_birth", "Execute on Birth", "execute_on_birth__prop")
        builder.influences_output("main_system", "Main System")
        builder.influences_output("trail_system", "Trail System")