forked from LeenkxTeam/LNXSDK
t3du - Camera Render Filter
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class SetCameraRenderFilterNode(LnxLogicTreeNode):
|
||||
"""
|
||||
Sets Camera Render Filter array with the names of the cameras
|
||||
that can render the mesh. If null all cameras can render the mesh.
|
||||
A camera can be added or removed from the arraw list.
|
||||
"""
|
||||
bl_idname = 'LNSetCameraRenderFilterNode'
|
||||
bl_label = 'Set Object Camera Render Filter'
|
||||
lnx_section = 'camera'
|
||||
lnx_version = 1
|
||||
|
||||
property0: HaxeEnumProperty(
|
||||
'property0',
|
||||
items = [('Add', 'Add', 'Add'),
|
||||
('Remove', 'Remove', 'Remove')],
|
||||
name='', default='Add', update='')
|
||||
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
self.add_input('LnxNodeSocketObject', 'Camera')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
Reference in New Issue
Block a user