Merge pull request #1887 from knowledgenude/master
Rename logic nodes labels
This commit is contained in:
commit
5abbc0211b
|
@ -22,8 +22,6 @@ class GetRigidBodyDataNode extends LogicNode {
|
|||
if (rigidBody == null) return false;
|
||||
return true;
|
||||
|
||||
//case 1: ; // collision shape
|
||||
//case 2: ; // activation state
|
||||
case 1: rigidBody.group;
|
||||
case 2: rigidBody.mask;
|
||||
case 3: rigidBody.animated;
|
||||
|
@ -32,6 +30,11 @@ class GetRigidBodyDataNode extends LogicNode {
|
|||
case 6: rigidBody.linearDamping;
|
||||
case 7: rigidBody.friction;
|
||||
case 8: rigidBody.mass;
|
||||
//case 9: ; // collision shape
|
||||
//case 10: ; // activation state
|
||||
//case 11: ; // is gravity enabled
|
||||
//case 12: ; // angular factor
|
||||
//case 13: ; // linear factor
|
||||
default: null;
|
||||
}
|
||||
#end
|
||||
|
|
|
@ -19,8 +19,6 @@ class GetVelocityNode extends LogicNode {
|
|||
if (rb != null) {
|
||||
if (from == 0) return rb.getLinearVelocity();
|
||||
else if (from == 1) return rb.getAngularVelocity();
|
||||
// rb.getLinearFactor(); // TODO
|
||||
// rb.getAngularFactor(); // TODO
|
||||
}
|
||||
#end
|
||||
return null;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class CanvasGetCheckboxNode(ArmLogicTreeNode):
|
||||
"""Use to get if a UI checkbox is checked."""
|
||||
"""Use to get if an UI checkbox is checked."""
|
||||
bl_idname = 'LNCanvasGetCheckboxNode'
|
||||
bl_label = 'Canvas Get Checkbox'
|
||||
bl_label = 'Get Canvas Checkbox'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,12 +3,12 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetInputTextNode(ArmLogicTreeNode):
|
||||
"""Use to get the input text of an UI element."""
|
||||
bl_idname = 'LNCanvasGetInputTextNode'
|
||||
bl_label = 'Canvas Get Input Text'
|
||||
bl_label = 'Get Canvas Input Text'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(CanvasGetInputTextNode, self).init(context)
|
||||
self.add_input('NodeSocketString', 'Element')
|
||||
self.add_output('NodeSocketString', 'String')
|
||||
self.add_output('NodeSocketString', 'Text')
|
||||
|
||||
add_node(CanvasGetInputTextNode, category=PKG_AS_CATEGORY)
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class CanvasGetLocationNode(ArmLogicTreeNode):
|
||||
"""Use to get the location of a UI element (in pixels)."""
|
||||
"""Use to get the location of an UI element (in pixels)."""
|
||||
bl_idname = 'LNCanvasGetLocationNode'
|
||||
bl_label = 'Canvas Get Location'
|
||||
bl_label = 'Get Canvas Location'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
|
@ -11,7 +11,7 @@ class CanvasGetLocationNode(ArmLogicTreeNode):
|
|||
self.add_input('ArmNodeSocketAction', 'In')
|
||||
self.add_input('NodeSocketString', 'Element')
|
||||
self.add_output('ArmNodeSocketAction', 'Out')
|
||||
self.add_output('NodeSocketFloat', 'X')
|
||||
self.add_output('NodeSocketFloat', 'Y')
|
||||
self.add_output('NodeSocketInt', 'X')
|
||||
self.add_output('NodeSocketInt', 'Y')
|
||||
|
||||
add_node(CanvasGetLocationNode, category=PKG_AS_CATEGORY)
|
|
@ -3,12 +3,12 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetPositionNode(ArmLogicTreeNode):
|
||||
"""TO DO."""
|
||||
bl_idname = 'LNCanvasGetPositionNode'
|
||||
bl_label = 'Canvas Get Position'
|
||||
bl_label = 'Get Canvas Position'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(CanvasGetPositionNode, self).init(context)
|
||||
self.add_input('NodeSocketString', 'Element')
|
||||
self.add_output('NodeSocketInt', 'Value')
|
||||
self.add_output('NodeSocketInt', 'Position')
|
||||
|
||||
add_node(CanvasGetPositionNode, category=PKG_AS_CATEGORY)
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class CanvasGetPBNode(ArmLogicTreeNode):
|
||||
"""Use to get the value of a UI progress bar."""
|
||||
"""Use to get the value of an UI progress bar."""
|
||||
bl_idname = 'LNCanvasGetPBNode'
|
||||
bl_label = 'Canvas Get Progress Bar'
|
||||
bl_label = 'Get Canvas Progress Bar'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetRotationNode(ArmLogicTreeNode):
|
||||
"""Use to get the rotation of an UI element."""
|
||||
bl_idname = 'LNCanvasGetRotationNode'
|
||||
bl_label = 'Canvas Get Rotation'
|
||||
bl_label = 'Get Canvas Rotation'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetScaleNode(ArmLogicTreeNode):
|
||||
"""Use to get the scale of an UI element."""
|
||||
bl_idname = 'LNCanvasGetScaleNode'
|
||||
bl_label = 'Canvas Get Scale'
|
||||
bl_label = 'Get Canvas Scale'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetSliderNode(ArmLogicTreeNode):
|
||||
"""Use to get the value of an UI slider."""
|
||||
bl_idname = 'LNCanvasGetSliderNode'
|
||||
bl_label = 'Canvas Get Slider'
|
||||
bl_label = 'Get Canvas Slider'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -6,7 +6,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasGetVisibleNode(ArmLogicTreeNode):
|
||||
"""Use to get if an UI element is visible."""
|
||||
bl_idname = 'LNCanvasGetVisibleNode'
|
||||
bl_label = 'Canvas Get Visible'
|
||||
bl_label = 'Get Canvas Visible'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,7 +1,7 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class OnCanvasElementNode(ArmLogicTreeNode):
|
||||
"""Will run the output if an action over a UI element is done."""
|
||||
"""Will run the output if an action over an UI element is done."""
|
||||
bl_idname = 'LNOnCanvasElementNode'
|
||||
bl_label = 'On Canvas Element'
|
||||
arm_version = 1
|
||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetAssetNode(ArmLogicTreeNode):
|
||||
"""Use to set the asset of an UI element."""
|
||||
bl_idname = 'LNCanvasSetAssetNode'
|
||||
bl_label = 'Canvas Set Asset'
|
||||
bl_label = 'Set Canvas Asset'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetCheckBoxNode(ArmLogicTreeNode):
|
||||
"""Use to set the state of an UI checkbox."""
|
||||
bl_idname = 'LNCanvasSetCheckBoxNode'
|
||||
bl_label = 'Canvas Set Checkbox'
|
||||
bl_label = 'Set Canvas Checkbox'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetLocationNode(ArmLogicTreeNode):
|
||||
"""Use to set the location of an UI element."""
|
||||
bl_idname = 'LNCanvasSetLocationNode'
|
||||
bl_label = 'Canvas Set Location'
|
||||
bl_label = 'Set Canvas Location'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetPBNode(ArmLogicTreeNode):
|
||||
"""Use to set the value of an UI progress bar."""
|
||||
bl_idname = 'LNCanvasSetPBNode'
|
||||
bl_label = 'Canvas Set Progress Bar'
|
||||
bl_label = 'Set Canvas Progress Bar'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetRotationNode(ArmLogicTreeNode):
|
||||
"""Use to set the rotation of an UI element."""
|
||||
bl_idname = 'LNCanvasSetRotationNode'
|
||||
bl_label = 'Canvas Set Rotation'
|
||||
bl_label = 'Set Canvas Rotation'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetScaleNode(ArmLogicTreeNode):
|
||||
"""Use to set the scale of an UI element."""
|
||||
bl_idname = 'LNCanvasSetScaleNode'
|
||||
bl_label = 'Canvas Set Scale'
|
||||
bl_label = 'Set Canvas Scale'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetSliderNode(ArmLogicTreeNode):
|
||||
"""Use to set the value of an UI slider."""
|
||||
bl_idname = 'LNCanvasSetSliderNode'
|
||||
bl_label = 'Canvas Set Slider'
|
||||
bl_label = 'Set Canvas Slider'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetTextNode(ArmLogicTreeNode):
|
||||
"""Use to set the content of an UI text."""
|
||||
bl_idname = 'LNCanvasSetTextNode'
|
||||
bl_label = 'Canvas Set Text'
|
||||
bl_label = 'Set Canvas Text'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetTextColorNode(ArmLogicTreeNode):
|
||||
"""Use to set an UI text color."""
|
||||
bl_idname = 'LNCanvasSetTextColorNode'
|
||||
bl_label = 'Canvas Set Text Color'
|
||||
bl_label = 'Set Canvas Text Color'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CanvasSetVisibleNode(ArmLogicTreeNode):
|
||||
"""Use to set if an UI element is visibile."""
|
||||
bl_idname = 'LNCanvasSetVisibleNode'
|
||||
bl_label = 'Canvas Set Visible'
|
||||
bl_label = 'Set Canvas Visible'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class SendEventNode(ArmLogicTreeNode):
|
||||
"""Use to send a event to a object."""
|
||||
"""Use to send an event to an object."""
|
||||
bl_idname = 'LNSendEventNode'
|
||||
bl_label = 'Send Event'
|
||||
bl_label = 'Send Event To Object'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class SendGlobalEventNode(ArmLogicTreeNode):
|
||||
"""Use to send a event to all objects."""
|
||||
"""Use to send an event to all objects in the scene."""
|
||||
bl_idname = 'LNSendGlobalEventNode'
|
||||
bl_label = 'Send Global Event'
|
||||
bl_label = 'Send Event'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
|
|
|
@ -15,4 +15,4 @@ class GetTouchMovementNode(ArmLogicTreeNode):
|
|||
self.add_output('NodeSocketFloat', 'Multiplied X')
|
||||
self.add_output('NodeSocketFloat', 'Multiplied Y')
|
||||
|
||||
add_node(GetTouchMovementNode, category=PKG_AS_CATEGORY, section='mouse')
|
||||
add_node(GetTouchMovementNode, category=PKG_AS_CATEGORY, section='surface')
|
||||
|
|
|
@ -45,7 +45,7 @@ class NodeRemoveOutputButton(bpy.types.Operator):
|
|||
|
||||
# Class SwipeNode
|
||||
class OnSwipeNode(ArmLogicTreeNode):
|
||||
"""On Swipe node"""
|
||||
"""Runs the output when the swipe is done."""
|
||||
bl_idname = 'LNOnSwipeNode'
|
||||
bl_label = 'On Swipe'
|
||||
arm_version = 1
|
||||
|
@ -89,4 +89,4 @@ bpy.utils.register_class(NodeAddOutputButton)
|
|||
bpy.utils.register_class(NodeRemoveOutputButton)
|
||||
|
||||
# Add Node
|
||||
add_node(OnSwipeNode, category=PKG_AS_CATEGORY, section='Input')
|
||||
add_node(OnSwipeNode, category=PKG_AS_CATEGORY, section='Input')
|
||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ShowMouseNode(ArmLogicTreeNode):
|
||||
"""Deprecated. Is recommended to use 'Set Cursor State' node instead."""
|
||||
bl_idname = 'LNShowMouseNode'
|
||||
bl_label = 'Show Mouse'
|
||||
bl_label = 'Set Mouse Visible'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class NotNode(ArmLogicTreeNode):
|
||||
"""Use to invert a boolean value."""
|
||||
bl_idname = 'LNNotNode'
|
||||
bl_label = 'Not'
|
||||
bl_label = 'Inverse Bool'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -2,9 +2,9 @@ from arm.logicnode.arm_nodes import *
|
|||
|
||||
|
||||
class InverseNode(ArmLogicTreeNode):
|
||||
"""Runs the output if the input is not running."""
|
||||
"""Runs the output only if the connected input is not running."""
|
||||
bl_idname = 'LNInverseNode'
|
||||
bl_label = 'Inverse'
|
||||
bl_label = 'Inverse Output'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetMaterialNode(ArmLogicTreeNode):
|
||||
"""Use to get the material of an object."""
|
||||
bl_idname = 'LNGetMaterialNode'
|
||||
bl_label = 'Get Material'
|
||||
bl_label = 'Get Object Material'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetMaterialNode(ArmLogicTreeNode):
|
||||
"""Use to set the material of an object."""
|
||||
bl_idname = 'LNSetMaterialNode'
|
||||
bl_label = 'Set Material'
|
||||
bl_label = 'Set Object Material'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetMaterialSlotNode(ArmLogicTreeNode):
|
||||
"""TO DO."""
|
||||
bl_idname = 'LNSetMaterialSlotNode'
|
||||
bl_label = 'Set Material Slot'
|
||||
bl_label = 'Set Object Material Slot'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class MixNode(ArmLogicTreeNode):
|
||||
"""Use to interpolate between two values."""
|
||||
bl_idname = 'LNMixNode'
|
||||
bl_label = 'Interpolate'
|
||||
bl_label = 'Mix'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('Linear', 'Linear', 'Linear'),
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class DisplayInfoNode(ArmLogicTreeNode):
|
||||
"""Use to get the display resolution. You may be searching for 'Get Window Info' node."""
|
||||
"""Use to get the display resolution. You may be searching for 'Get Window Resolution' node."""
|
||||
bl_idname = 'LNDisplayInfoNode'
|
||||
bl_label = 'Display Info'
|
||||
bl_label = 'Get Display Resolution'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class WindowInfoNode(ArmLogicTreeNode):
|
||||
"""Use to get the window resolution."""
|
||||
bl_idname = 'LNWindowInfoNode'
|
||||
bl_label = 'Window Info'
|
||||
bl_label = 'Get Window Resolution'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class GroupOutputNode(ArmLogicTreeNode):
|
||||
"""Use to define a node chain as a node group."""
|
||||
"""Use to define a chain of nodes as a group of nodes."""
|
||||
bl_idname = 'LNGroupOutputNode'
|
||||
bl_label = 'Node Group Output'
|
||||
bl_label = 'Group Nodes'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class PickLocationNode(ArmLogicTreeNode):
|
||||
"""Use to pick a location in a navmesh."""
|
||||
bl_idname = 'LNPickLocationNode'
|
||||
bl_label = 'Pick Location'
|
||||
bl_label = 'Pick Navmesh Location'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetChildNode(ArmLogicTreeNode):
|
||||
"""Use to get the child of an object."""
|
||||
bl_idname = 'LNGetChildNode'
|
||||
bl_label = 'Get Child'
|
||||
bl_label = 'Get Object Child'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('By Name', 'By Name', 'By Name'),
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetMeshNode(ArmLogicTreeNode):
|
||||
"""Use to get the mesh of an object."""
|
||||
bl_idname = 'LNGetMeshNode'
|
||||
bl_label = 'Get Mesh'
|
||||
bl_label = 'Get Object Mesh'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetNameNode(ArmLogicTreeNode):
|
||||
"""Use to get the name of a object."""
|
||||
bl_idname = 'LNGetNameNode'
|
||||
bl_label = 'Get Name'
|
||||
bl_label = 'Get Object Name'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetParentNode(ArmLogicTreeNode):
|
||||
"""Use to get the parent of an object."""
|
||||
bl_idname = 'LNGetParentNode'
|
||||
bl_label = 'Get Parent'
|
||||
bl_label = 'Get Object Parent'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetPropertyNode(ArmLogicTreeNode):
|
||||
"""Use to get the property value of an object."""
|
||||
bl_idname = 'LNGetPropertyNode'
|
||||
bl_label = 'Get Property'
|
||||
bl_label = 'Get Object Property'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetVisibleNode(ArmLogicTreeNode):
|
||||
"""Use to get if an object or its components are visible."""
|
||||
bl_idname = 'LNGetVisibleNode'
|
||||
bl_label = 'Get Visible'
|
||||
bl_label = 'Get Object Visible'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ClearParentNode(ArmLogicTreeNode):
|
||||
"""Use to remove the parent of an object."""
|
||||
bl_idname = 'LNClearParentNode'
|
||||
bl_label = 'Clear Parent'
|
||||
bl_label = 'Remove Object Parent'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetMeshNode(ArmLogicTreeNode):
|
||||
"""Use to set the mesh of an object."""
|
||||
bl_idname = 'LNSetMeshNode'
|
||||
bl_label = 'Set Mesh'
|
||||
bl_label = 'Set Object Mesh'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetNameNode(ArmLogicTreeNode):
|
||||
"""Use to set the name of an object."""
|
||||
bl_idname = 'LNSetNameNode'
|
||||
bl_label = 'Set Name'
|
||||
bl_label = 'Set Object Name'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetParentNode(ArmLogicTreeNode):
|
||||
"""Use to set the parent of an object."""
|
||||
bl_idname = 'LNSetParentNode'
|
||||
bl_label = 'Set Parent'
|
||||
bl_label = 'Set Object Parent'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetPropertyNode(ArmLogicTreeNode):
|
||||
"""Use to set the value of an object property."""
|
||||
bl_idname = 'LNSetPropertyNode'
|
||||
bl_label = 'Set Property'
|
||||
bl_label = 'Set Object Property'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetVisibleNode(ArmLogicTreeNode):
|
||||
"""Use to set if an object is visible."""
|
||||
bl_idname = 'LNSetVisibleNode'
|
||||
bl_label = 'Set Visible'
|
||||
bl_label = 'Set Object Visible'
|
||||
arm_version = 1
|
||||
|
||||
property0: EnumProperty(
|
|
@ -9,8 +9,6 @@ class GetRigidBodyDataNode(ArmLogicTreeNode):
|
|||
def init(self, context):
|
||||
self.inputs.new('ArmNodeSocketObject', 'Object')
|
||||
self.outputs.new('NodeSocketBool', 'Is Rigid Body')
|
||||
#self.outputs.new('NodeSocketString', 'Collision Shape')
|
||||
#self.outputs.new('NodeSocketInt', 'Activation State')
|
||||
self.outputs.new('NodeSocketInt', 'Collision Group')
|
||||
self.outputs.new('NodeSocketInt', 'Collision Mask')
|
||||
self.outputs.new('NodeSocketBool', 'Is Animated')
|
||||
|
@ -19,5 +17,10 @@ class GetRigidBodyDataNode(ArmLogicTreeNode):
|
|||
self.outputs.new('NodeSocketFloat', 'Linear Damping')
|
||||
self.outputs.new('NodeSocketFloat', 'Friction')
|
||||
self.outputs.new('NodeSocketFloat', 'Mass')
|
||||
#self.outputs.new('NodeSocketString', 'Collision Shape')
|
||||
#self.outputs.new('NodeSocketInt', 'Activation State')
|
||||
#self.outputs.new('NodeSocketBool', 'Is Gravity Enabled')
|
||||
#self.outputs.new(NodeSocketVector', Angular Factor')
|
||||
#self.outputs.new('NodeSocketVector', Linear Factor')
|
||||
|
||||
add_node(GetRigidBodyDataNode, category=PKG_AS_CATEGORY, section='props')
|
||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetVelocityNode(ArmLogicTreeNode):
|
||||
"""Use to get the world velocity of a rigid body."""
|
||||
bl_idname = 'LNGetVelocityNode'
|
||||
bl_label = 'Get Velocity'
|
||||
bl_label = 'Get Rigid Body Velocity'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,11 +3,11 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetGravityNode(ArmLogicTreeNode):
|
||||
"""Use to get the world gravity."""
|
||||
bl_idname = 'LNGetGravityNode'
|
||||
bl_label = 'Get Gravity'
|
||||
bl_label = 'Get World Gravity'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(GetGravityNode, self).init(context)
|
||||
self.add_output('NodeSocketVector', 'Gravity')
|
||||
self.add_output('NodeSocketVector', 'World Gravity')
|
||||
|
||||
add_node(GetGravityNode, category=PKG_AS_CATEGORY)
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class PickObjectNode(ArmLogicTreeNode):
|
||||
"""Use to pick the rigid body in a location using the screen coordinates."""
|
||||
bl_idname = 'LNPickObjectNode'
|
||||
bl_label = 'Pick Object'
|
||||
bl_label = 'Pick Rigid Body'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -4,9 +4,9 @@ from bpy.types import Node, NodeSocket
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class RemovePhysicsNode (ArmLogicTreeNode):
|
||||
"""Use to remove a rigid body from an object."""
|
||||
"""Use to delete a rigid body from an object."""
|
||||
bl_idname = 'LNRemovePhysicsNode'
|
||||
bl_label = 'Remove Physics'
|
||||
bl_label = 'Remove Rigid Body'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class SetGravityEnabledNode(ArmLogicTreeNode):
|
||||
"""Use to set if the gravity is enabled in a rigid body."""
|
||||
"""Use to set if the gravity is enabled for a rigid body."""
|
||||
bl_idname = 'LNSetGravityEnabledNode'
|
||||
bl_label = 'Set Gravity Enabled'
|
||||
bl_label = 'Set Rigid Body Gravity'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetVelocityNode(ArmLogicTreeNode):
|
||||
"""Use to set the velocity of a rigid body."""
|
||||
bl_idname = 'LNSetVelocityNode'
|
||||
bl_label = 'Set Velocity'
|
||||
bl_label = 'Set Rigid Body Velocity'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class BloomGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the bloom post-processing settings."""
|
||||
bl_idname = 'LNBloomGetNode'
|
||||
bl_label = 'Get Bloom'
|
||||
bl_label = 'Get Bloom Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CameraGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the post-processing effects of a camera."""
|
||||
bl_idname = 'LNCameraGetNode'
|
||||
bl_label = 'Get Camera Postprocessing'
|
||||
bl_label = 'Get Camera Post Process'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ChromaticAberrationGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the chromatic aberration post-processing settings."""
|
||||
bl_idname = 'LNChromaticAberrationGetNode'
|
||||
bl_label = 'Get ChromaticAberration'
|
||||
bl_label = 'Get ChromaticAberration Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class LenstextureGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the lens texture settings."""
|
||||
bl_idname = 'LNLenstextureGetNode'
|
||||
bl_label = 'Get Lenstexture'
|
||||
bl_label = 'Get Lenstexture Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SSAOGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the SSAO post-processing settings."""
|
||||
bl_idname = 'LNSSAOGetNode'
|
||||
bl_label = 'Get SSAO'
|
||||
bl_label = 'Get SSAO Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SSRGetNode(ArmLogicTreeNode):
|
||||
"""Use to get the SSR post-processing settings."""
|
||||
bl_idname = 'LNSSRGetNode'
|
||||
bl_label = 'Get SSR'
|
||||
bl_label = 'Get SSR Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class BloomSetNode(ArmLogicTreeNode):
|
||||
"""Use to set the bloom post-processing settings."""
|
||||
bl_idname = 'LNBloomSetNode'
|
||||
bl_label = 'Set Bloom'
|
||||
bl_label = 'Set Bloom Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class CameraSetNode(ArmLogicTreeNode):
|
||||
"""Uset to set the post-processing effects of a camera."""
|
||||
"""User to set the post-processing effects of a camera."""
|
||||
bl_idname = 'LNCameraSetNode'
|
||||
bl_label = 'Set Camera Postprocessing'
|
||||
bl_label = 'Set Camera Post Process'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ChromaticAberrationSetNode(ArmLogicTreeNode):
|
||||
"""Use to set the chromatic aberration post-processing settings."""
|
||||
bl_idname = 'LNChromaticAberrationSetNode'
|
||||
bl_label = 'Set ChromaticAberration'
|
||||
bl_label = 'Set Chromatic Aberration Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SSAOSetNode(ArmLogicTreeNode):
|
||||
"""Use to set the SSAO post-processing settings."""
|
||||
bl_idname = 'LNSSAOSetNode'
|
||||
bl_label = 'Set SSAO'
|
||||
bl_label = 'Set SSAO Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SSRSetNode(ArmLogicTreeNode):
|
||||
"""Use to set the SSR post-processing settings."""
|
||||
bl_idname = 'LNSSRSetNode'
|
||||
bl_label = 'Set SSR'
|
||||
bl_label = 'Set SSR Settings'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class RpMSAANode(ArmLogicTreeNode):
|
||||
"""Use to set the MSAA quality."""
|
||||
bl_idname = 'LNRpMSAANode'
|
||||
bl_label = 'Rp MSAA'
|
||||
bl_label = 'Set MSAA Quality'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('1', '1', '1'),
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class RpConfigNode(ArmLogicTreeNode):
|
||||
"""Use to configure renderpath node."""
|
||||
bl_idname = 'LNRpConfigNode'
|
||||
bl_label = 'Rp Config'
|
||||
bl_label = 'Set Post Process Quality'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('SSGI', 'SSGI', 'SSGI'),
|
|
@ -1,9 +1,9 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class RpShadowQualityNode(ArmLogicTreeNode):
|
||||
"""Use to set the shadow quality."""
|
||||
"""Use to set the shadows quality."""
|
||||
bl_idname = 'LNRpShadowQualityNode'
|
||||
bl_label = 'Rp Shadow Quality'
|
||||
bl_label = 'Set Shadows Quality'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('High', 'High', 'High'),
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class RpSuperSampleNode(ArmLogicTreeNode):
|
||||
"""Use to set the supersampling quality."""
|
||||
bl_idname = 'LNRpSuperSampleNode'
|
||||
bl_label = 'Rp Super-sampling'
|
||||
bl_label = 'Set SSAA Quality'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('1', '1', '1'),
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ActiveSceneNode(ArmLogicTreeNode):
|
||||
"""Use to get the active scene."""
|
||||
bl_idname = 'LNActiveSceneNode'
|
||||
bl_label = 'Active Scene'
|
||||
bl_label = 'Get Active Scene'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SceneRootNode(ArmLogicTreeNode):
|
||||
"""Use to get all objects in the scene. Never name a object as 'Root'."""
|
||||
bl_idname = 'LNSceneRootNode'
|
||||
bl_label = 'Scene Root'
|
||||
bl_label = 'Get Scene Objects'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -1,7 +1,7 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class RemoveActiveSceneNode(ArmLogicTreeNode):
|
||||
"""Use to remove the active scene."""
|
||||
"""Use to delete the active scene."""
|
||||
bl_idname = 'LNRemoveActiveSceneNode'
|
||||
bl_label = 'Remove Active Scene'
|
||||
arm_version = 1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class RemoveGroupNode(ArmLogicTreeNode):
|
||||
"""Use to remove the collection from the scene."""
|
||||
"""Use to delete a collection from the scene."""
|
||||
bl_idname = 'LNRemoveGroupNode'
|
||||
bl_label = 'Remove Collection'
|
||||
arm_version = 1
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class CaseStringNode(ArmLogicTreeNode):
|
||||
"""Use to convert a strings case."""
|
||||
bl_idname = 'LNCaseStringNode'
|
||||
bl_label = 'Case String'
|
||||
bl_label = 'String Case'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('Upper Case', 'Upper Case', 'Upper Case'),
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class ContainsStringNode(ArmLogicTreeNode):
|
||||
"""Use to get if a string contains a specific text."""
|
||||
bl_idname = 'LNContainsStringNode'
|
||||
bl_label = 'Contains String'
|
||||
bl_label = 'String Contains'
|
||||
arm_version = 1
|
||||
property0: EnumProperty(
|
||||
items = [('Contains', 'Contains', 'Contains'),
|
|
@ -1,7 +1,7 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class SubStringNode(ArmLogicTreeNode):
|
||||
"""TO DO."""
|
||||
"""Use to get a part of a string."""
|
||||
bl_idname = 'LNSubStringNode'
|
||||
bl_label = 'Sub String'
|
||||
arm_version = 1
|
||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class AddTraitNode(ArmLogicTreeNode):
|
||||
"""Use to add a trait to an object."""
|
||||
bl_idname = 'LNAddTraitNode'
|
||||
bl_label = 'Add Trait'
|
||||
bl_label = 'Add Trait To Object'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetTraitNode(ArmLogicTreeNode):
|
||||
"""Use to get a trait from an object."""
|
||||
bl_idname = 'LNGetTraitNode'
|
||||
bl_label = 'Get Trait'
|
||||
bl_label = 'Get Object Trait'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetLocationNode(ArmLogicTreeNode):
|
||||
"""Use to get the location of an object."""
|
||||
bl_idname = 'LNGetLocationNode'
|
||||
bl_label = 'Get Location'
|
||||
bl_label = 'Get Object Location'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetRotationNode(ArmLogicTreeNode):
|
||||
"""Use to get the rotation of an object."""
|
||||
bl_idname = 'LNGetRotationNode'
|
||||
bl_label = 'Get Rotation'
|
||||
bl_label = 'Get Object Rotation'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetScaleNode(ArmLogicTreeNode):
|
||||
"""Use to get the scale of an object."""
|
||||
bl_idname = 'LNGetScaleNode'
|
||||
bl_label = 'Get Scale'
|
||||
bl_label = 'Get Object Scale'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetTransformNode(ArmLogicTreeNode):
|
||||
"""Use to get the transform of an object."""
|
||||
bl_idname = 'LNGetTransformNode'
|
||||
bl_label = 'Get Transform'
|
||||
bl_label = 'Get Object Transform'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class GetWorldNode(ArmLogicTreeNode):
|
||||
"""Use to get the world orientation of an object."""
|
||||
bl_idname = 'LNGetWorldNode'
|
||||
bl_label = 'Get World'
|
||||
bl_label = 'Get World Orientation'
|
||||
arm_version = 1
|
||||
|
||||
property0: EnumProperty(
|
|
@ -1,7 +1,7 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class ScaleObjectNode(ArmLogicTreeNode):
|
||||
"""Use to set the scale of an object."""
|
||||
"""Deprecated. 'Use Set Object Scale' instead."""
|
||||
bl_idname = 'LNScaleObjectNode'
|
||||
bl_label = 'Scale Object'
|
||||
arm_version = 1
|
||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetLocationNode(ArmLogicTreeNode):
|
||||
"""Use to set the location of an object."""
|
||||
bl_idname = 'LNSetLocationNode'
|
||||
bl_label = 'Set Location'
|
||||
bl_label = 'Set Object Location'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetRotationNode(ArmLogicTreeNode):
|
||||
"""Use to set the rotation of an object."""
|
||||
bl_idname = 'LNSetRotationNode'
|
||||
bl_label = 'Set Rotation'
|
||||
bl_label = 'Set Object Rotation'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,14 +3,14 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetScaleNode(ArmLogicTreeNode):
|
||||
"""Use to set the scale of an object."""
|
||||
bl_idname = 'LNSetScaleNode'
|
||||
bl_label = 'Set Scale'
|
||||
bl_label = 'Set Object Scale'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(SetScaleNode, self).init(context)
|
||||
self.add_input('ArmNodeSocketAction', 'In')
|
||||
self.add_input('ArmNodeSocketObject', 'Object')
|
||||
self.add_input('NodeSocketVector', 'Scale')
|
||||
self.add_input('NodeSocketVector', 'Scale', default_value=[1.0, 1.0, 1.0])
|
||||
self.add_output('ArmNodeSocketAction', 'Out')
|
||||
|
||||
add_node(SetScaleNode, category=PKG_AS_CATEGORY, section='scale')
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class SetTransformNode(ArmLogicTreeNode):
|
||||
"""Use to set the transform of an object."""
|
||||
bl_idname = 'LNSetTransformNode'
|
||||
bl_label = 'Set Transform'
|
||||
bl_label = 'Set Object Transform'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
Loading…
Reference in a new issue