You were doing it right, there was a bug. I fixed it and will upload a new installer hopefully tonight. Keep in mind that Custom Arduino Nodes only execute on an Arduino, so for it to update in the UI you'll need to have an active connection.
An alternative way to do it is with this node group:
<Nodes>
<Node>
<UniqueID>80cd1be5-d586-484c-9b02-fd2758f8973c</UniqueID>
<AssemblyType>Embrio.NodeEngine.AgentController.Nodes.DynamicNode</AssemblyType>
<NodeType>Blend Inputs</NodeType>
<UserDefinedName></UserDefinedName>
<Description></Description>
<NodeColor>201,227,222,255</NodeColor>
<X>617</X>
<Y>79</Y>
<Width>260</Width>
<DefinitionID>8f8c642d-c95b-4088-bcaf-1899353fa0c7</DefinitionID>
<Inputs>
<Input>
<UniqueID>401f6646-9225-4277-92c4-a983f5a72b88</UniqueID>
<DefinitionID>565ca39f-8d35-435f-9ac1-754fa531682f</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeInput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<ConnectedOutputs>
<Output>3d2fc1f7-ae0e-4ed1-bb93-c7e0e19ecf1d</Output>
<Output>d1e5880a-1558-4113-9298-05ecf40ceb11</Output>
</ConnectedOutputs>
<BlendMode>Add</BlendMode>
<DisconnectedValue>0</DisconnectedValue>
<UseNegativeRange>False</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Input>
</Inputs>
<Outputs>
<Output>
<UniqueID>c09d8a71-2a68-414b-a73d-0d524ad9aa67</UniqueID>
<DefinitionID>75c7d8b2-72a3-4c18-a6f7-65d5d9328c68</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeOutput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<MinValue>0</MinValue>
<MaxValue>1</MaxValue>
<UseNegativeRange>False</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Output>
</Outputs>
</Node>
<Node>
<UniqueID>c4694fa1-1bb4-46b7-a3be-edd449112241</UniqueID>
<AssemblyType>Embrio.NodeEngine.AgentController.Nodes.DynamicNode</AssemblyType>
<NodeType>Blend Inputs</NodeType>
<UserDefinedName></UserDefinedName>
<Description></Description>
<NodeColor>201,227,222,255</NodeColor>
<X>0</X>
<Y>18</Y>
<Width>260</Width>
<DefinitionID>8f8c642d-c95b-4088-bcaf-1899353fa0c7</DefinitionID>
<Inputs>
<Input>
<UniqueID>194a2271-5c44-44da-bae1-8770940f852b</UniqueID>
<DefinitionID>565ca39f-8d35-435f-9ac1-754fa531682f</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeInput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<ConnectedOutputs></ConnectedOutputs>
<BlendMode>Add</BlendMode>
<DisconnectedValue>0.282</DisconnectedValue>
<UseNegativeRange>True</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Input>
</Inputs>
<Outputs>
<Output>
<UniqueID>3bcee048-e4cb-417d-8806-b011001f2949</UniqueID>
<DefinitionID>75c7d8b2-72a3-4c18-a6f7-65d5d9328c68</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeOutput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<MinValue>-1</MinValue>
<MaxValue>1</MaxValue>
<UseNegativeRange>True</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Output>
</Outputs>
</Node>
<Node>
<UniqueID>77fe5ab6-24e8-436d-8402-f64c919dd573</UniqueID>
<AssemblyType>Embrio.NodeEngine.AgentController.Nodes.DynamicNode</AssemblyType>
<NodeType>Blend Inputs</NodeType>
<UserDefinedName></UserDefinedName>
<Description></Description>
<NodeColor>201,227,222,255</NodeColor>
<X>311</X>
<Y>0</Y>
<Width>260</Width>
<DefinitionID>8f8c642d-c95b-4088-bcaf-1899353fa0c7</DefinitionID>
<Inputs>
<Input>
<UniqueID>cc012ea5-f760-41c4-9982-7a18af39e521</UniqueID>
<DefinitionID>565ca39f-8d35-435f-9ac1-754fa531682f</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeInput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<ConnectedOutputs>
<Output>3bcee048-e4cb-417d-8806-b011001f2949</Output>
</ConnectedOutputs>
<BlendMode>Add</BlendMode>
<DisconnectedValue>0</DisconnectedValue>
<UseNegativeRange>False</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Input>
</Inputs>
<Outputs>
<Output>
<UniqueID>3d2fc1f7-ae0e-4ed1-bb93-c7e0e19ecf1d</UniqueID>
<DefinitionID>75c7d8b2-72a3-4c18-a6f7-65d5d9328c68</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeOutput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<MinValue>0</MinValue>
<MaxValue>1</MaxValue>
<UseNegativeRange>False</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Output>
</Outputs>
</Node>
<Node>
<UniqueID>275a90be-cd9e-4674-bca5-e0450302721c</UniqueID>
<AssemblyType>Embrio.NodeEngine.AgentController.Nodes.DynamicNode</AssemblyType>
<NodeType>Invert Value</NodeType>
<UserDefinedName></UserDefinedName>
<Description></Description>
<NodeColor>201,227,222,255</NodeColor>
<X>310</X>
<Y>101</Y>
<Width>260</Width>
<DefinitionID>f8162f5b-2bcc-40c2-b201-add2972f659a</DefinitionID>
<Inputs>
<Input>
<UniqueID>b40aed71-75da-4e44-ae88-1115fba434e8</UniqueID>
<DefinitionID>92125595-f823-47bf-9044-be02d4fd3ff6</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeInput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<ConnectedOutputs>
<Output>3bcee048-e4cb-417d-8806-b011001f2949</Output>
</ConnectedOutputs>
<BlendMode>Add</BlendMode>
<DisconnectedValue>0</DisconnectedValue>
<UseNegativeRange>True</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Input>
</Inputs>
<Outputs>
<Output>
<UniqueID>d1e5880a-1558-4113-9298-05ecf40ceb11</UniqueID>
<DefinitionID>2b23ee4f-159c-4427-99b4-5f2511d4ae0b</DefinitionID>
<DefaultName>Activation</DefaultName>
<CustomName></CustomName>
<IsDisplayed>True</IsDisplayed>
<IsNative>False</IsNative>
<TypeName>Numeric</TypeName>
<IsOutsideConnection>False</IsOutsideConnection>
<IOType>Embrio.NodeEngine.NodeIO.NumericNodeOutput</IOType>
<ShowGraph>False</ShowGraph>
<LinkedIOID>00000000-0000-0000-0000-000000000000</LinkedIOID>
<IsUserAdded>False</IsUserAdded>
<MinValue>0</MinValue>
<MaxValue>1</MaxValue>
<UseNegativeRange>False</UseNegativeRange>
<CanUseNegativeRange>True</CanUseNegativeRange>
</Output>
</Outputs>
</Node>
</Nodes>
It isolates the positive part with the top blend node, and also isolates the flipped value of the negative (notice the output on the bottom doesn't use the full range while the input does), then adds those two parts together.
There should be a built in node for the absolute value. It's actually pretty easy to make your own node, but that feature is currently only available with the licensed version. I'm still trying to decide if that's the best way to do that, maybe compiling a final program is enough of a feature to hold back without a license, people keep complaining about "crippleware". Here's the current documentation for that feature:
http://embrio.io/documentation/node-definitions/ There's still some work that needs to be done on it, but it works pretty well for now, most of the nodes in the software are created this way.
I'm building up features for users to share custom nodes and groups of nodes, so things that aren't built in can be added pretty easily. Stay tuned!
Edited by user Friday, April 03, 2015 9:33:06 AM(UTC)
| Reason: Not specified