mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
18 lines
No EOL
548 B
Text
18 lines
No EOL
548 B
Text
function Node_Iterate(_x, _y, _group = noone) : Node_Iterator(_x, _y, _group) constructor {
|
|
name = "Loop";
|
|
|
|
newInput(0, nodeValue_Int("Repeat", self, 1 ))
|
|
.uncache();
|
|
|
|
custom_input_index = array_length(inputs);
|
|
|
|
if(NODE_NEW_MANUAL) { #region
|
|
var input = nodeBuild("Node_Iterator_Input", -256, -32, self);
|
|
var output = nodeBuild("Node_Iterator_Output", 256, -32, self);
|
|
|
|
input.inputs[2].setValue(4);
|
|
output.inputs[1].setFrom(input.outputs[1]);
|
|
} #endregion
|
|
|
|
static getIterationCount = function() { return getInputData(0); }
|
|
} |