Moritz Brückner
5cd6c3d09f
Fix export for sockets with no default value
2020-09-16 16:39:35 +02:00
Lubos Lenco
88aaeffcf1
Merge pull request #1869 from E1e5en/on-swipe-logic-node
...
Logic Node - On Swipe
2020-09-15 12:50:01 +02:00
Lubos Lenco
495da3c4f2
Merge pull request #1868 from MoritzBrueckner/addnode-poll
...
Add poll() function to AddNodeOverride operator
2020-09-15 12:49:10 +02:00
E1e5en
813f77dc0a
Logic Node - On Swipe
...
The node for the swipe event.
Input parameters:
- Time - duration of the swipe (default value 0.15 s);
- Min Length (px) - the minimum length that the swipe must “pass” (default value 100 px).
Output parameters:
- Direction - normalized vector of the swipe direction;
- Length (px) - the length of the swipe (to assess the “strength”);
The Length output parameter is calculated by the vector value (without normalization) to relate to the input value.
- Angle (0-360) - swipe angle in the range from 0 to 360 degrees (0 is on the right, i.e. Vector (1, 0) = 0 degrees).
- States are states with direction output (Up, Down …). By default, they are not displayed, but if you press “Add 4 State”, then 4 states will appear (Up, Down, Left, Right) and if again, then 8 states will already be displayed.
Determining direction for a state:
for 4 directions - "circle" is divided into 4 segments of 90 degrees;
for 8 directions - "circle" is divided into 8 segments of 45 degrees.
2020-09-15 09:08:59 +03:00
Moritz Brückner
73d8fbd1d6
Add poll() function to AddNodeOverride operator
2020-09-15 01:25:42 +02:00
Moritz Brückner
98fccc445a
Fix naming of dynamic sockets
2020-09-14 23:20:19 +02:00
Moritz Brückner
818c2242da
Don't write 'None' into the generated logic tree code
2020-09-14 23:11:03 +02:00
Lubos Lenco
0b01c4648d
Merge pull request #1864 from MoritzBrueckner/new-nodes
...
Some new nodes and improvements (by @knowledgenude )
2020-09-14 08:21:40 +02:00
Moritz Brückner
533c81e2cf
Merge branch 'master' into new-nodes
...
# Conflicts:
# blender/arm/logicnode/object/LN_get_visible.py
# blender/arm/logicnode/object/LN_set_visible.py
2020-09-14 01:08:59 +02:00
Moritz Brückner
e634fbf629
Fix export of String and Object sockets
2020-09-14 01:03:13 +02:00
knowledgenude
7d419481f2
Update .py files
2020-09-13 15:59:48 -03:00
knowledgenude
e3c7731b63
Update object nodes .py
2020-09-13 15:43:27 -03:00
knowledgenude
d2ecc78712
Improved nodes + LN_get_object_offscreen.py
2020-09-13 14:11:57 -03:00
knowledgenude
8d7c139375
Add LN_get_rigid_body_data.py
2020-09-13 14:09:42 -03:00
niacdoial
19064c60b5
populated a previously empty error message
2020-09-13 15:40:35 +02:00
niacdoial
28722ee866
Fixed one bug/exploit waiting to happen
...
(and removed a debug print)
2020-09-13 15:32:39 +02:00
niacdoial
c8a6743819
Merge branch 'logic-nodes' into master
...
(additions: node versioning system, slight rework of the NodeSockets)
2020-09-13 11:36:41 +02:00
niacdoial
bdc33cb419
added node versioning information to all node classes
2020-09-13 11:27:58 +02:00
Lubos Lenco
b2c00f3dfa
Merge pull request #1858 from MoritzBrueckner/arm-flag
...
Add "armory" flag on export to differ between Armory and Kha
2020-09-13 10:47:14 +02:00
Lubos Lenco
b89a757bc4
Merge pull request #1857 from E1e5en/master
...
Blender UI – Armory Trait – Logic Node
2020-09-13 10:27:14 +02:00
niacdoial
cd730249af
Merge branch 'node-versioning' into logic-nodes
2020-09-12 18:29:28 +02:00
niacdoial
3a2952ced8
Added node versioning
...
- changed the way custom node sockets are handled at several places
- updated the `replaceAll` and `replace` functions used to perform node replacements
- renamed and improved the NodeReplacement [new name] class, which represents a replacement task
- added an arm_version property to all logic nodes, as well as a `get_replacement_node` method (to be overridden for each node)
- added an option to declare a node as obselete in add_node() (useful in order to have the node defined, but out of the menu)
- added classes for UI popups linked to node updates, as well as an operator dedicated to said node update
Thanks to MoritzBrueckner for part of the ground work!
2020-09-12 18:15:53 +02:00
Moritz Brückner
e8b1859e8b
Add "armory" flag on export so libraries can differ between Armory and Kha
2020-09-11 14:43:59 +02:00
E1e5en
4304be7a0a
Blender UI – Armory Trait – Logic Node
...
Add buttons:
- New Node Tree – creates and sets a new Node Tree in the list;
- Edit Node Tree – loads the Node Tree selected from the list into all Logic Node Editor;
- From Node Tree – loops through all the working Logic Node Editor and from the last in the list sets the value to the list.
2020-09-11 12:18:31 +03:00
Moritz Brückner
2d33398f9f
Merge remote-tracking branch 'upstream/master' into logic-nodes
...
# Conflicts:
# blender/arm/logicnode/action_set_visible.py
# blender/arm/logicnode/physics_get_gravity.py
2020-09-09 21:11:49 +02:00
Moritz Brückner
fccd83bf14
Rename MODULE_AS_CATEGORY -> PKG_AS_CATEGORY
2020-09-09 20:48:35 +02:00
Moritz Brückner
1bde147a23
AddCollectionnode -> CreateCollectionNode
2020-09-09 20:34:23 +02:00
Moritz Brückner
3ea181fc37
Fix operator call
2020-09-09 20:30:49 +02:00
Moritz Brückner
e6de489451
Better names for array remove nodes
2020-09-09 20:27:54 +02:00
Moritz Brückner
d0f3c1e946
Ensure correct node section order
2020-09-09 15:18:48 +02:00
knowledgenude
9c8b6d3b98
Update action_set_visible.py
2020-09-08 21:05:51 -03:00
knowledgenude
546f8824d0
value_get_mouse_lock.py , value_get_mouse_visible.py
2020-09-08 20:12:45 -03:00
knowledgenude
bdb18496a3
canvas_get_visible.py
2020-09-08 19:34:45 -03:00
Moritz Brückner
cfd6b01f0a
Remove alternative category icons
2020-09-09 00:32:38 +02:00
Moritz Brückner
83fe52b281
Put categories from logic node extension packs to the end of the menu
2020-09-09 00:31:50 +02:00
Moritz Brückner
e48f682cdf
Remove obsolete bl_icon='NONE' from node definitions
2020-09-09 00:28:41 +02:00
Moritz Brückner
179fdcf17c
Show bl_description or docstring when hovering over nodes in the menu
2020-09-09 00:25:10 +02:00
Moritz Brückner
1c6444b511
Rename ray cast socket
2020-09-08 23:44:15 +02:00
Moritz Brückner
dc00b6abd5
Fix ParseFloatNode label and add it to its own section
2020-09-08 23:31:09 +02:00
Moritz Brückner
7f2bbd8d49
CastPhysicsRayNode -> RayCastNode
2020-09-08 23:30:50 +02:00
Moritz Brückner
ce3a4dd1a0
SelfNode -> SelfObjectNode
2020-09-08 23:30:37 +02:00
Moritz Brückner
8559505d2f
InArrayNode -> ArrayContainsNode
2020-09-08 23:29:50 +02:00
Moritz Brückner
39fc1f3cad
Remove unused imports
2020-09-08 23:21:41 +02:00
Moritz Brückner
4681149a90
Fix docstring format
2020-09-08 23:14:51 +02:00
Moritz Brückner
45ce65513b
Make the mask node a variable node
2020-09-08 22:11:25 +02:00
Moritz Brückner
8e6c8031b0
Use new sockets for variable nodes
2020-09-08 22:08:29 +02:00
Moritz Brückner
bec4e2e8ac
Use new socket functions
2020-09-08 21:49:02 +02:00
Moritz Brückner
d83cdc4f33
Add custom add input/output functions and denote variable socket functionality
2020-09-08 21:34:05 +02:00
Moritz Brückner
727c2d9f35
Make ArmLogicTreeNode a subclass of bpy.types.Node
2020-09-08 21:16:20 +02:00
Lubos Lenco
00cad1832a
Merge pull request #1848 from QuantumCoderQC/patch2
...
Support for displacement in instanced objects
2020-09-08 20:26:10 +02:00
Lubos Lenco
dc16740360
Merge pull request #1847 from QuantumCoderQC/master
...
Add getGravity method. Fix getGravity logic node.
2020-09-08 20:20:43 +02:00
Moritz Brückner
abf495bf2f
Fix usage of custom socket types
2020-09-08 17:04:13 +02:00
Moritz Brückner
bfa23a9d6a
Don't register internal nodes again
2020-09-08 17:03:56 +02:00
Moritz Brückner
c98f593459
Reassign node categories + rename files
2020-09-08 17:03:24 +02:00
Moritz Brückner
6168f68dd0
Don't hardcode the position of the 'default' node section
2020-09-08 01:26:41 +02:00
QuantumCoderQC
14a8d8698f
Spoort for displacement in instanced objects
2020-09-08 00:26:44 +02:00
QuantumCoderQC
cc35b01684
Add getGravity method. Fix getGravity logic node.
2020-09-07 22:11:03 +02:00
Moritz Brückner
2babf2f97b
Alphabeticallysort nodes in node sections
2020-09-07 20:36:30 +02:00
Moritz Brückner
b31c151cf3
Add possibility to use the module name as the node category
2020-09-07 19:15:39 +02:00
Moritz Brückner
430053bfb2
Remove unused debug print
2020-09-07 19:15:07 +02:00
Moritz Brückner
a5a15e472b
Fix unregistering of categories
2020-09-07 01:26:31 +02:00
Moritz Brückner
14bd60d3f4
Fix docstring format
2020-09-07 01:15:12 +02:00
Moritz Brückner
b248f2c8e8
Move socket classes to own module and remove now obsolete eye drop operator
2020-09-07 01:13:00 +02:00
Moritz Brückner
dfb0c566c7
Fix missing add node menu registering
2020-09-07 01:10:43 +02:00
Moritz Brückner
74efd5df80
Add custom node search operator
2020-09-07 00:54:52 +02:00
Moritz Brückner
16d8df73b2
Implement custom node menu
2020-09-07 00:40:54 +02:00
Moritz Brückner
05c0a201ad
Fix missing import
2020-09-07 00:33:46 +02:00
Moritz Brückner
f8376e877f
Fix register_node() for internal nodes
2020-09-07 00:33:31 +02:00
Moritz Brückner
153594985b
Rename node_class -> node_type
2020-09-07 00:33:16 +02:00
Moritz Brückner
6c43fb9289
Whitespace and other small cleanups
2020-09-07 00:08:51 +02:00
Moritz Brückner
07817fed54
Add new node/category API
2020-09-07 00:06:41 +02:00
knowledgenude
193c712bf4
Improve Set Activation Node
2020-09-06 15:10:51 -03:00
knowledgenude
37bd828784
Delete physics_sync_transform.py
2020-09-06 15:10:22 -03:00
knowledgenude
72ee4da37d
physics_remove_physics.py
2020-09-06 10:50:03 -03:00
knowledgenude
0622b89c61
Delete physics_remove_from_world.py
2020-09-06 10:44:59 -03:00
knowledgenude
6e824580b9
Set Friction node .py
2020-09-05 18:05:35 -03:00
knowledgenude
042be35f06
+3 physics nodes
2020-09-05 10:31:28 -03:00
Lubos Lenco
86ebf8ef05
Merge pull request #1834 from MoritzBrueckner/spawn-collection
...
Add SpawnCollection node
2020-09-04 10:08:38 +02:00
Moritz Brückner
a344209a79
Small format improvement
2020-09-03 22:50:35 +02:00
Moritz Brückner
720967c5d5
Remove duplicate naming from camera nodes
2020-09-03 22:50:02 +02:00
Moritz Brückner
1dbbc05557
Add SpawnCollection node
2020-09-03 18:53:19 +02:00
Moritz Brückner
5429a56e7a
Fix logic node export of None type properties
2020-09-03 18:49:23 +02:00
Alexander
ea5219e67d
Fix for OpenCV installation
2020-09-01 18:06:35 +02:00
luboslenco
03077030f0
Bump version
2020-09-01 10:46:54 +02:00
Lubos Lenco
1bf56ba960
Merge pull request #1827 from armory3d/lightmapper
...
Lightmapper
2020-09-01 10:41:49 +02:00
Moritz Brückner
12b7885821
Small format improvements
2020-08-31 00:14:24 +02:00
Moritz Brückner
3066d5f98c
Lz4: Fix bug with unsigned right-shifting
2020-08-30 22:53:21 +02:00
Alexander
607f4e7b33
Update to 0.3.2.0
2020-08-30 18:34:59 +02:00
niacdoial
17daabeb29
Improved quaternion and angle handling in logic nodes (+2bugfixes)
...
- Made so all nodes outputting a quaternion object also output it as a XYZ (vector) + W (float) combination
- Modernized the interface of the "Action/Rotate Object" node, to align on the newer "Action/Set Rotation" node interface ("Action/Rotate Object Along Axis" is now depreciated, but still usable)
- Fixed a blender-side-only bug with the "Logic/Switch" node (...which technically could have lead to a compile-time problem if exploited the right way)
- Fixed a bug on the "Action/Set Rotation" node: now, quaternion input is automatically normalized in order to avoid accidental scaling
- Added a "Value/Separate Quaternion" node
- Made so the names of some sockets change in the "Set Rotation" and "Rotate Object" nodes, so they adapt to those nodes' input types.
(Same thing with "Value/Vector From Transform"'s output type)
2020-08-30 15:50:06 +02:00
Lubos Lenco
a4f7030ef8
Merge pull request #1817 from MoritzBrueckner/shaderdata-sampler2d
...
Add sampler2D access to ShaderData node
2020-08-28 17:38:47 +02:00
Lubos Lenco
b5292f34c8
Merge pull request #1819 from MoritzBrueckner/android_native
...
Fix android target options
2020-08-28 16:37:34 +02:00
Moritz Brückner
f6cf1e4731
Rename f to khafile for better readability
2020-08-28 13:25:54 +02:00
Moritz Brückner
b458438c70
Fix android target options
2020-08-28 13:09:23 +02:00
QuantumCoderQC
c54a5d2bed
Upgrade Apply Force at location and Apply Impulse at location to include object rotation
2020-08-28 03:14:49 +02:00
Moritz Brückner
3bbceda485
Add sampler2D access to ShaderData node
2020-08-27 23:22:24 +02:00
Alexander
495d485f39
Add lightmapping props to object, register lightmapper
2020-08-24 22:12:31 +02:00
Alexander
5d914b3bf5
Merge lightmapper 0.3.1.2
2020-08-23 23:13:26 +02:00
Moritz Brückner
e785ee020c
Better lz4 error handling
2020-08-20 22:58:10 +02:00
Moritz Brückner
3c6f853605
Port lz4 compression from Armorpaint
2020-08-20 22:34:52 +02:00
Lubos Lenco
0d6422f77a
Merge pull request #1809 from Sanva/master
...
Fixes wrong `rsplit` usages trying to discard file extensions
2020-08-19 19:04:22 +02:00