17 lines
513 B
Python
17 lines
513 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class SetCameraNode(ArmLogicTreeNode):
|
|
"""Set the active camera of the active scene."""
|
|
bl_idname = 'LNSetCameraNode'
|
|
bl_label = 'Set Active Camera'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(SetCameraNode, self).init(context)
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(SetCameraNode, category=PKG_AS_CATEGORY)
|