All,
As usual, I was way over thinking this process. There were a few things I thought I had to build via a script that would create a scenario that would move device layers very specifically on the x axis. I wanted to move from left to right or right to left inside a pixel space, then when the layer reached a defined space it would start its move over again that the beginning of the pixel space. I had written a script that was being fired by a Script Output node that was watching an action node watching the Label attached to the incoming automation value. Everytime the label updated it would run the script.
- Code: Select all
L1 = TTa
IF L1 < L2
{
L2 = L1 + 1804
L2 = Math.Max (L2, 0)
}
ELSE
{
L2 -= 8.146
IF L2 <= 0
{
L2 = 23460
}
}
After Speaking with Dennis and support team, via the forum and via email. Team described how a node structure would be way more efficient and way more performant. This was the node structure for the first two X-axis control layers The Master layer, and the second layer.
These nodes allowed me to accomplish the above script only using three nodes. The Script nodes you see after are there to dissolve the layer off and on at the start and end of its movement. The incoming automation via Artnet, Modulo, and layer control accomplished the meat of what I was needing. I could plug in the values inside the modulo node to define the finish position which then would restart the layer at the start of the pixel space. Thanks everyone for chiming in on this. It was a brain twister for me. It really showed me how powerful the node structures are and how much more simple you can achieve your goal.... (though I'm sure not simple on the back end)...
Have a great Holiday everyone, thanks again!!