forked from LeenkxTeam/LNXSDK
Upload files to "leenkx/blender/lnx/logicnode/particle"
This commit is contained in:
parent
c3c89c320b
commit
727d82f268
@ -0,0 +1,22 @@
|
|||||||
|
from lnx.logicnode.lnx_nodes import *
|
||||||
|
|
||||||
|
class SetParticleSpeedNode(LnxLogicTreeNode):
|
||||||
|
"""Sets the speed of the given particle source."""
|
||||||
|
bl_idname = 'LNSetParticleSpeedNode'
|
||||||
|
bl_label = 'Set Particle Speed'
|
||||||
|
lnx_version = 2
|
||||||
|
|
||||||
|
def lnx_init(self, context):
|
||||||
|
self.add_input('LnxNodeSocketAction', 'In')
|
||||||
|
self.add_input('LnxNodeSocketObject', 'Object')
|
||||||
|
self.add_input('LnxIntSocket', 'Slot')
|
||||||
|
self.add_input('LnxFloatSocket', 'Speed', default_value=1.0)
|
||||||
|
|
||||||
|
self.add_output('LnxNodeSocketAction', 'Out')
|
||||||
|
|
||||||
|
|
||||||
|
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
|
||||||
|
if self.lnx_version not in (0, 1):
|
||||||
|
raise LookupError()
|
||||||
|
|
||||||
|
return NodeReplacement.Identity(self)
|
Loading…
x
Reference in New Issue
Block a user