output fn

This commit is contained in:
Tanasart 2024-09-04 08:57:11 +07:00
parent 27034ad8a1
commit e1a81fea4c
471 changed files with 633 additions and 637 deletions

View file

@ -54,11 +54,11 @@ function __Node_3D_Combine(_x, _y, _group = noone) : Node(_x, _y, _group) constr
["Objects", true],
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
output_display_list = [ 0, 2, 1 ]

View file

@ -51,13 +51,13 @@ function __Node_3D_Displace(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr
["Light", true], 6, 7, 8, 9, 10,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3,

View file

@ -55,13 +55,13 @@ function __Node_3D_Extrude(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro
["Light", false], 9, 10, 11, 12, 13,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3

View file

@ -13,7 +13,7 @@ function Node_3D_Light(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group)
in_light = array_length(inputs);
outputs[0] = nodeValue_Output("Light", self, VALUE_TYPE.d3Light, noone);
newOutput(0, nodeValue_Output("Light", self, VALUE_TYPE.d3Light, noone));
#macro __d3d_input_list_light ["Light", false], in_d3d + 0, in_d3d + 1, in_d3d + 2

View file

@ -4,7 +4,7 @@ function Node_3D_Mesh(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group) c
name = "3D Mesh";
in_mesh = array_length(inputs);
outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone);
newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone));
static processData = function(_output, _data, _output_index, _array_index = 0) {}
}

View file

@ -6,7 +6,7 @@ function Node_3D_Modifier(_x, _y, _group = noone) : Node_3D(_x, _y, _group) cons
in_mesh = array_length(inputs);
outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone);
newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone));
static modify_object = function(_object, _data, _matrix) { #region
return _object;

View file

@ -66,11 +66,11 @@ function __Node_3D_Obj(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
input_length = array_length(inputs);
input_display_len = array_length(input_display_list);
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
output_display_list = [
0, 2, 1

View file

@ -42,11 +42,11 @@ function __Node_3D_Plane(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
["Texture", false], 10, 11,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(2, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 1, 2

View file

@ -51,13 +51,13 @@ function __Node_3D_Cone(_x, _y, _group = noone) : Node_Processor(_x, _y, _group)
["Light", false], 5, 6, 7, 8, 9,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3

View file

@ -57,13 +57,13 @@ function __Node_3D_Cube(_x, _y, _group = noone) : Node_Processor(_x, _y, _group)
["Light", false], 13, 14, 15, 16, 17,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3

View file

@ -57,13 +57,13 @@ function __Node_3D_Cylinder(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr
["Light", false], 10, 11, 12, 13, 14,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3

View file

@ -51,13 +51,13 @@ function __Node_3D_Sphere(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou
["Light", false], 7, 8, 9, 10, 11,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []);
newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []));
output_display_list = [
0, 2, 1, 3
]

View file

@ -48,11 +48,11 @@
// input_length = array_length(inputs);
// input_display_len = array_length(input_display_list);
// outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
// newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
// outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
// newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
// outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
// newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
// output_display_list = [
// 0, 2, 1

View file

@ -63,11 +63,11 @@ function __Node_3D_Repeat(_x, _y, _group = noone) : Node(_x, _y, _group) constru
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
output_display_list = [
0, 2, 1

View file

@ -45,11 +45,11 @@ function __Node_3D_Transform(_x, _y, _group = noone) : Node_Processor(_x, _y, _g
["Light", true], 6, 7, 8, 9, 10,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); });
newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }));
outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone));
output_display_list = [
0, 2, 1

View file

@ -55,7 +55,7 @@ function Node_VFX_effector(_x, _y, _group = noone) : Node(_x, _y, _group) constr
["Effect", false], 8, 4, 5, 6, 7,
];
outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 );
newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 ));
UPDATE_PART_FORWARD

View file

@ -62,7 +62,7 @@ function Node_Custom(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
for( var i = 0, n = array_length(info.outputs); i < n; i++ ) {
var _output = info.outputs[i];
outputs[i] = nodeValue_Output(_output.name, self, value_type_from_string(_output.type), _output.value)
newOutput(i, nodeValue_Output(_output.name, self, value_type_from_string(_output.type), _output.value))
.setVisible(_output.show_in_graph);
output_index_map[? _output.name] = i;

View file

@ -3,7 +3,7 @@ function Node_Process_Template(_x, _y, _group = noone) : Node_Processor(_x, _y,
newInput(0, nodeValue_Surface("", self));
outputs[0] = nodeValue_Output("", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone));
input_display_list = [ 0 ];

View file

@ -16,7 +16,7 @@ function Node_Shader(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
shader = noone;
shader_data = [];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
static setShader = function(_data) { #region
for( var i = 0, n = array_length(shader_data); i < n; i++ ) {

View file

@ -3,7 +3,7 @@ function Node_Template(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
newInput(0, nodeValue_Surface("", self));
outputs[0] = nodeValue_Output("", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone));
input_display_list = [ 0 ];

View file

@ -54,7 +54,7 @@ function _Node_Strand_Affector(_x, _y, _group = noone) : Node(_x, _y, _group) co
newInput(5, nodeValue_Float("Falloff", self, 0.2))
.setDisplay(VALUE_DISPLAY.slider);
outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone);
newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone));
input_fix_len = array_length(inputs);

View file

@ -23,7 +23,7 @@ function Node_MK_Delay_Machine(_x, _y, _group = noone) : Node(_x, _y, _group) co
newInput(8, nodeValue_Enum_Scroll("Blend Mode", self, 0, [ "Normal", "Alpha", "Additive" ]));
outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone));
input_display_list = [ 0,
["Delay", false], 1, 2,

View file

@ -62,8 +62,8 @@ function Node_2D_light(_x, _y, _group = noone) : Node_Processor(_x, _y, _group)
newInput(15, nodeValue_Bool("Active", self, true));
active_index = 15;
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
outputs[1] = nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
newOutput(1, nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone));
input_display_list = [ 15, 0,
["Shape", false], 1, 2, 6, 7, 8, 9,

View file

@ -72,12 +72,12 @@ function Node_3D_Camera(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group)
in_cam = array_length(inputs);
outputs[0] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone );
newOutput(0, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone ));
outputs[1] = nodeValue_Output("Normal", self, VALUE_TYPE.surface, noone )
newOutput(1, nodeValue_Output("Normal", self, VALUE_TYPE.surface, noone ))
.setVisible(false);
outputs[2] = nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone )
newOutput(2, nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone ))
.setVisible(false);
input_display_list = [ in_d3d + 4,

View file

@ -7,7 +7,7 @@ function Node_3D_Depth(_x, _y, _group = noone) : Node_Processor(_x, _y, _group)
newInput(2, nodeValue_Vec3("Rotation", self, [0, 0, 0] ));
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
input_display_list = [
["Texture", false], 0, 1,

View file

@ -25,7 +25,7 @@ function Node_3D_Material(_x, _y, _group = noone) : Node_3D(_x, _y, _group) cons
newInput(8, nodeValue_Bool("Anti aliasing", self, false ));
outputs[0] = nodeValue_Output("Material", self, VALUE_TYPE.d3Material, noone);
newOutput(0, nodeValue_Output("Material", self, VALUE_TYPE.d3Material, noone));
input_display_list = [ 0, 8,
["Properties", false], 1, 2, 3, 4, 7,

View file

@ -12,7 +12,7 @@ function Node_3D_Mesh_Stack_Slice(_x, _y, _group = noone) : Node(_x, _y, _group)
newInput(4, nodeValue_Vec3("BBOX Padding", self, [ 0, 0, 0 ]));
outputs[0] = nodeValue_Output("Outputs", self, VALUE_TYPE.surface, [])
newOutput(0, nodeValue_Output("Outputs", self, VALUE_TYPE.surface, []))
.setArrayDepth(1);
mesh_data = new Inspector_Label("", f_code);

View file

@ -19,7 +19,7 @@ function Node_3D_Point_Affector(_x, _y, _group = noone) : Node_3D_Object(_x, _y,
newInput(in_d3d + 5, nodeValue_Enum_Scroll("Shape", self, 0, [ new scrollItem("Sphere", s_node_3d_affector_shape, 0),
new scrollItem("Plane", s_node_3d_affector_shape, 1), ]));
outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.float, [ 0, 0, 0 ])
newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.float, [ 0, 0, 0 ]))
.setDisplay(VALUE_DISPLAY.vector);
input_display_list = [

View file

@ -33,7 +33,7 @@ function Node_3D_Repeat(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constr
newInput(12, nodeValue_Bool("Use Instance", self, true ))
outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone);
newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone));
input_display_list = [
["Objects", false], 0, 3, 4, 5,

View file

@ -1,7 +1,7 @@
function Node_3D_Scene(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constructor {
name = "3D Scene";
outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone);
newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone));
object_lists = [];

View file

@ -4,7 +4,7 @@ function Node_3D_Transform(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _gro
newInput(in_d3d + 0, nodeValue_D3Mesh("Mesh", self, noone))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone);
newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone));
input_display_list = [ in_d3d + 0,
["Transform", false], 0, 1, 2,

View file

@ -35,9 +35,9 @@ function Node_3D_Transform_Image(_x, _y, _group = noone) : Node_3D_Mesh(_x, _y,
outputs[0].setVisible(false);
outputs[1] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone);
newOutput(1, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone));
outputs[2] = nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone);
newOutput(2, nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone));
output_display_list = [ 1, 2 ]

View file

@ -19,7 +19,7 @@ function Node_3D_Transform_Scene(_x, _y, _group = noone) : Node_3D(_x, _y, _grou
newInput(6, nodeValue_Enum_Scroll("Scaling type", self, 0, [ "Additive", "Multiplicative", "Override" ]));
outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone);
newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone));
input_display_list = [ 0,
["Transform", false], 1, 2, 3,

View file

@ -11,7 +11,7 @@ function Node_3D_UV_Remap(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _grou
newInput(in_d3d + 2, nodeValue_Int("Bake UV", self, 0))
.setDisplay(VALUE_DISPLAY.button, { name: "Bake", onClick: function() { attributes.bakedUV = !attributes.bakedUV; triggerRender(); } });
outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone);
newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone));
input_display_list = [
["Transform", false], 0, 1, 2,

View file

@ -13,7 +13,7 @@ function Node_3DSurf(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
newInput(3, nodeValue_Float("Distance", self, 4 ));
outputs[0] = nodeValue_Output("3DSurf", self, VALUE_TYPE.dynaSurface, noone);
newOutput(0, nodeValue_Output("3DSurf", self, VALUE_TYPE.dynaSurface, noone));
input_display_list = [ 0,
["Camera", false], 1, 2, 3,

View file

@ -10,7 +10,7 @@ function Node_9Slice(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
newInput(3, nodeValue_Enum_Scroll("Filling modes", self, 0, [ "Scale", "Repeat" ]));
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();
attribute_interpolation();

View file

@ -8,7 +8,7 @@ function Node_FFT(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) const
newInput(1, nodeValue_Enum_Scroll("Preprocess Function", self, 0, [ "None", "Hann" ]));
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, [])
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, []))
.setArrayDepth(1);
static processData = function(_outSurf, _data, _output_index, _array_index) {

View file

@ -16,7 +16,7 @@ function Node_FLIP_Add_Rigidbody(_x, _y, _group = noone) : Node(_x, _y, _group)
["Collider", false], 1,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
obstracle = new FLIP_Obstracle();
index = 0;

View file

@ -42,7 +42,7 @@ function Node_FLIP_Apply_Force(_x, _y, _group = noone) : Node(_x, _y, _group) co
["Obstracle", false], 1, 5,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
obstracle = new FLIP_Obstracle();
index = 0;

View file

@ -25,7 +25,7 @@ function Node_FLIP_Apply_Velocity(_x, _y, _group = noone) : Node(_x, _y, _group)
["Velocity", false], 4, 1, 2, 5, 3,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
static getDimension = function() {
var domain = getInputData(0);

View file

@ -22,7 +22,7 @@ function Node_FLIP_Destroy(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(5, nodeValue_Float("Ratio", self, 1 ))
.setDisplay(VALUE_DISPLAY.slider);
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region
var _pos = getInputData(1);

View file

@ -46,7 +46,7 @@ function Node_FLIP_Domain(_x, _y, _group = noone) : Node(_x, _y, _group) constru
["Physics", false], 7, 13, 10, 11,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone);
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone));
#region attributes
array_push(attributeEditors, "FLIP Solver");

View file

@ -40,7 +40,7 @@ function Node_FLIP_Render(_x, _y, _group = noone) : Node(_x, _y, _group) constru
["Post Processing", false], 8, 7, 1,
];
outputs[0] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone));
seed = irandom_range(100000, 999999);
temp_surface = [ noone ];

View file

@ -21,7 +21,7 @@ function Node_FLIP_Repel(_x, _y, _group = noone) : Node(_x, _y, _group) construc
["Repel", false], 1, 2, 3,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
static getDimension = function() { #region
var domain = getInputData(0);

View file

@ -44,7 +44,7 @@ function Node_FLIP_Spawner(_x, _y, _group = noone) : Node(_x, _y, _group) constr
["Physics", false], 10, 6, 11,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
spawn_amo = 0;
prev_position = [ 0, 0 ];

View file

@ -9,7 +9,7 @@ function Node_FLIP_to_VFX(_x, _y, _group = noone) : Node(_x, _y, _group) constru
newInput(0, nodeValue_Fdomain("Domain", self, noone))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] );
newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] ));
attributes.part_amount = 512;
array_push(attributeEditors, ["Maximum particles", function() { return attributes.part_amount; },

View file

@ -19,7 +19,7 @@ function Node_FLIP_Update(_x, _y, _group = noone) : Node(_x, _y, _group) constru
["Timestep", false], 2, 3,
];
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone);
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone));
static update = function(frame = CURRENT_FRAME) {
var domain = getInputData(0);

View file

@ -24,7 +24,7 @@ function Node_FLIP_Vortex(_x, _y, _group = noone) : Node(_x, _y, _group) constru
["Vertex", false], 1, 2, 3, 4,
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
static getDimension = function() { #region
var domain = getInputData(0);

View file

@ -15,7 +15,7 @@ function Node_FLIP_Wall(_x, _y, _group = noone) : Node(_x, _y, _group) construct
["Collider", false], 1
]
outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone );
newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ));
obstracle = new FLIP_Obstracle();

View file

@ -18,9 +18,9 @@ function Node_FXAA(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
["Effect", false], 2, 3,
]
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("Mask", self, VALUE_TYPE.surface, noone);
newOutput(1, nodeValue_Output("Mask", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();

View file

@ -5,7 +5,7 @@ function Node_PCX_Array_Get(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c
newInput(1, nodeValue("Index", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _arr = getInputData(0);

View file

@ -7,7 +7,7 @@ function Node_PCX_Array_Set(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c
newInput(2, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _arr = getInputData(0);

View file

@ -7,7 +7,7 @@ function Node_PCX_Condition(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c
newInput(2, nodeValue("False", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _cond = getInputData(0);

View file

@ -6,7 +6,7 @@ function Node_PCX_Equation(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) co
newInput(0, nodeValue_Text("Equation", self, ""));
outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.PCXnode, noone );
newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.PCXnode, noone ));
argument_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
argument_renderer.x = _x;

View file

@ -13,7 +13,7 @@ function Node_PCX_fn_Math(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) con
newInput(3, nodeValue("z", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
static syms = [ "+", "-", "*", "/", "$", "%", "abs", -1, "round", "floor", "ceil",

View file

@ -7,7 +7,7 @@ function Node_PCX_fn_Random(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c
newInput(2, nodeValue_Bool("Integer", self, false));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
input_display_list = [ 2, 0, 1 ];

View file

@ -3,7 +3,7 @@ function Node_PCX_fn_Surface_Height(_x, _y, _group = noone) : Node_PCX(_x, _y, _
newInput(0, nodeValue("Surface", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _surf = getInputData(0);

View file

@ -3,7 +3,7 @@ function Node_PCX_fn_Surface_Width(_x, _y, _group = noone) : Node_PCX(_x, _y, _g
newInput(0, nodeValue("Surface", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _surf = getInputData(0);

View file

@ -4,7 +4,7 @@ function Node_PCX_fn_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) cons
newInput(0, nodeValue("Default Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _def = getInputData(0);

View file

@ -5,7 +5,7 @@ function Node_PCX_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) constru
newInput(1, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, -1));
outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone);
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
static update = function() {
var _name = getInputData(0);

View file

@ -9,7 +9,7 @@ function Node_VCT(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) const
vct.createDialog();
} });
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
input_display_list = [ 0,
["Automations", false],

View file

@ -23,7 +23,7 @@ function Node_VFX_Override(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(6, nodeValue_Surface("Surface", self))
.setVisible(true, false);
outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 );
newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 ));
static update = function(frame = CURRENT_FRAME) {
var parts = getInputData(0);

View file

@ -42,7 +42,7 @@ function Node_VFX_Renderer(_x, _y, _group = noone) : Node(_x, _y, _group) constr
setDynamicInput(2, true, VALUE_TYPE.particle);
dyna_input_check_shift = 1;
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
insp2UpdateTooltip = "Clear cache";
insp2UpdateIcon = [ THEME.cache, 0, COLORS._main_icon ];

View file

@ -17,10 +17,10 @@ function Node_VFX_Spawner(_x, _y, _group = noone) : Node_VFX_Spawner_Base(_x, _y
newInput(input_len + 1, nodeValue_Int("Step interval", self, 1, "How often the 'on step' event is triggered.\nWith 1 being trigger every frame, 2 means triggered once every 2 frames."));
outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] );
outputs[1] = nodeValue_Output("On create", self, VALUE_TYPE.node, noone );
outputs[2] = nodeValue_Output("On step", self, VALUE_TYPE.node, noone );
outputs[3] = nodeValue_Output("On destroy", self, VALUE_TYPE.node, noone );
newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] ));
newOutput(1, nodeValue_Output("On create", self, VALUE_TYPE.node, noone ));
newOutput(2, nodeValue_Output("On step", self, VALUE_TYPE.node, noone ));
newOutput(3, nodeValue_Output("On destroy", self, VALUE_TYPE.node, noone ));
array_insert(input_display_list, 0, ["Trigger", true], input_len + 0, input_len + 1);

View file

@ -17,7 +17,7 @@ function Node_VFX_Trail(_x, _y, _group = noone) : Node(_x, _y, _group) construct
newInput(2, nodeValue_Bool("Color", self, false ));
outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self);
newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self));
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region
draw_set_color(COLORS._main_accent);

View file

@ -27,7 +27,7 @@ function Node_VFX_Triangulate(_x, _y, _group = noone) : Node(_x, _y, _group) con
newInput(5, nodeValue_Bool("Inherit Color", self, false ));
outputs[0] = nodeValue_Output("Triangles", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Triangles", self, VALUE_TYPE.surface, noone));
input_display_list = [ 0,
[ "Particles", false], 1,

View file

@ -13,43 +13,43 @@ function Node_VFX_Variable(_x, _y, _group = noone) : Node(_x, _y, _group) constr
input_display_list = [ 0 ];
outputs[0] = nodeValue_Output("Positions", self, VALUE_TYPE.float, [] )
newOutput(0, nodeValue_Output("Positions", self, VALUE_TYPE.float, [] ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[1] = nodeValue_Output("Scales", self, VALUE_TYPE.float, [] )
newOutput(1, nodeValue_Output("Scales", self, VALUE_TYPE.float, [] ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[2] = nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 )
newOutput(2, nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[3] = nodeValue_Output("Blending", self, VALUE_TYPE.color, 0 )
newOutput(3, nodeValue_Output("Blending", self, VALUE_TYPE.color, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[4] = nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 )
newOutput(4, nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[5] = nodeValue_Output("Life", self, VALUE_TYPE.float, 0 )
newOutput(5, nodeValue_Output("Life", self, VALUE_TYPE.float, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[6] = nodeValue_Output("Max life", self, VALUE_TYPE.float, 0 )
newOutput(6, nodeValue_Output("Max life", self, VALUE_TYPE.float, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[7] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone )
newOutput(7, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[8] = nodeValue_Output("Velocity", self, VALUE_TYPE.float, [] )
newOutput(8, nodeValue_Output("Velocity", self, VALUE_TYPE.float, [] ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);
outputs[9] = nodeValue_Output("Seed", self, VALUE_TYPE.float, 0 )
newOutput(9, nodeValue_Output("Seed", self, VALUE_TYPE.float, 0 ))
.setDisplay(VALUE_DISPLAY.none)
.setVisible(false);

View file

@ -20,7 +20,7 @@ function Node_Active_Canvas(_x, _y, _group = noone) : Node(_x, _y, _group) const
newInput(8, nodeValue_Range("Distance", self, [ 1, 1 ] , { linked : true }));
outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone );
newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone ));
input_display_list = [ 0,
[ "Brush transform", false ], 7, 2, 3, 4,

View file

@ -21,7 +21,7 @@ function Node_Alpha_Cutoff(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro
["Cutoff", false], 1,
]
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();

View file

@ -6,7 +6,7 @@ function Node_Alpha_Grey(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
newInput(1, nodeValue_Bool("Active", self, true));
active_index = 1;
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
input_display_list = [ 1,
["Surfaces", false], 0,

View file

@ -16,7 +16,7 @@ function Node_Alpha_Hash(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
newInput(0, nodeValue_Surface("Surface in", self));
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();

View file

@ -17,7 +17,7 @@ function Node_Ambient_Occlusion(_x, _y, _group = noone) : Node_Processor(_x, _y,
["Effect", false], 3, 1, 4,
];
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
attribute_surface_depth();

View file

@ -13,7 +13,7 @@ function Node_Anim_Curve(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
newInput(4, nodeValue_Bool("Animated", self, false));
outputs[0] = nodeValue_Output("Curve", self, VALUE_TYPE.float, []);
newOutput(0, nodeValue_Output("Curve", self, VALUE_TYPE.float, []));
input_display_list = [ 0, 4, 1, 2, 3 ];

View file

@ -8,7 +8,7 @@ function Node_Application_Out(_x, _y, _group = noone) : Node(_x, _y, _group) con
name = "GUI Out";
update_on_frame = true;
outputs[0] = nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone));
APP_SURF_OVERRIDE = true;

View file

@ -16,7 +16,7 @@ function Node_Area(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
newInput(3, nodeValue_Enum_Scroll("Type", self, 0, [ "Center Span", "Two Point" ]));
outputs[0] = nodeValue_Output("Area", self, VALUE_TYPE.float, [ 0, 0, 0, 0, AREA_SHAPE.rectangle ])
newOutput(0, nodeValue_Output("Area", self, VALUE_TYPE.float, [ 0, 0, 0, 0, AREA_SHAPE.rectangle ]))
.setDisplay(VALUE_DISPLAY.vector);
input_display_list = [ 3,

View file

@ -10,7 +10,7 @@ function Node_Argument(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
newInput(2, nodeValue_Text("Default value", self, ""));
outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.text, "");
newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.text, ""));
static step = function() { #region
var typ = getInputData(1);

View file

@ -138,7 +138,7 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
return bone;
} #endregion
outputs[0] = nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone);
newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone));
#region ++++ attributes ++++
attributes.bones = new __Bone(,,,,, self);

View file

@ -27,12 +27,12 @@ function Node_Armature_Bind(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr
newInput(4, nodeValue_Float("Bone scale", self, 1))
.setDisplay(VALUE_DISPLAY.slider, { range: [ 0.1, 2, 0.01 ] });
outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone);
newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone));
outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])
newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []))
.rejectArrayProcess();
outputs[2] = nodeValue_Output("Bind data", self, VALUE_TYPE.struct, [])
newOutput(2, nodeValue_Output("Bind data", self, VALUE_TYPE.struct, []))
.setArrayDepth(1);
attribute_surface_depth();

View file

@ -6,7 +6,7 @@ function Node_Armature_Path(_x, _y, _group = noone) : Node(_x, _y, _group) const
.setVisible(true, true)
.rejectArray();
outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self);
newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self));
lines = [];

View file

@ -9,7 +9,7 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
["Bones", false]
]
outputs[0] = nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone);
newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone));
boneMap = ds_map_create();

View file

@ -11,7 +11,7 @@ function Node_Armature_Sample(_x, _y, _group = noone) : Node(_x, _y, _group) con
newInput(2, nodeValue_Float("Sample point", self, 0))
.setDisplay(VALUE_DISPLAY.slider);
outputs[0] = nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ])
newOutput(0, nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ]))
.setDisplay(VALUE_DISPLAY.vector);
#region ++++ attributes ++++

View file

@ -30,7 +30,7 @@ function Node_Array(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
input_display_list = [ 0, 1, ["Contents", false], array_adjust_tool, ];
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, []);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, []));
static createNewInput = function() {
var index = array_length(inputs);

View file

@ -8,7 +8,7 @@ function Node_Array_Add(_x, _y, _group = noone) : Node(_x, _y, _group) construct
newInput(1, nodeValue_Bool("Spread array", self, false ))
.rejectArray();
outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.integer, 0);
newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.integer, 0));
input_display_list = [ 1, 0 ];

View file

@ -10,7 +10,7 @@ function Node_Array_Composite(_x, _y, _group = noone) : Node(_x, _y, _group) con
.setArrayDepth(1)
.setVisible(true, true);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0))
.setArrayDepth(1);
static composite = function(arr, com) {

View file

@ -10,7 +10,7 @@ function Node_Array_Convolute(_x, _y, _group = noone) : Node(_x, _y, _group) con
.setArrayDepth(1)
.setVisible(true, true);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0))
.setArrayDepth(1);
static convolute = function(arr, ker) {

View file

@ -10,7 +10,7 @@ function Node_Array_Copy(_x, _y, _group = noone) : Node(_x, _y, _group) construc
newInput(2, nodeValue_Int("Size", self, 1));
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0))
.setArrayDepth(1);
static step = function() {

View file

@ -7,7 +7,7 @@ function Node_Array_CSV_Parse(_x, _y, _group = noone) : Node(_x, _y, _group) con
newInput(1, nodeValue_Int("Skip line", self, 0));
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0))
.setArrayDepth(1);
static update = function(frame = CURRENT_FRAME) {

View file

@ -9,7 +9,7 @@ function Node_Array_Find(_x, _y, _group = noone) : Node(_x, _y, _group) construc
.setVisible(true, true)
.rejectArray();
outputs[0] = nodeValue_Output("Index", self, VALUE_TYPE.integer, 0);
newOutput(0, nodeValue_Output("Index", self, VALUE_TYPE.integer, 0));
static update = function(frame = CURRENT_FRAME) {
var _arr = getInputData(0);

View file

@ -11,7 +11,7 @@ function Node_Array_Get(_x, _y, _group = noone) : Node(_x, _y, _group) construct
newInput(2, nodeValue_Enum_Scroll("Overflow", self, 0, [ "Clamp", "Loop", "Ping Pong" ]))
.rejectArray();
outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.any, 0));
static step = function() {
inputs[0].setType(VALUE_TYPE.any);

View file

@ -13,7 +13,7 @@ function Node_Array_Insert(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(3, nodeValue_Bool("Spread array", self, false ))
.rejectArray();
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0));
static update = function(frame = CURRENT_FRAME) {
var _arr = getInputData(0);

View file

@ -5,7 +5,7 @@ function Node_Array_Length(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Size", self, VALUE_TYPE.integer, 0);
newOutput(0, nodeValue_Output("Size", self, VALUE_TYPE.integer, 0));
static step = function() { #region
inputs[0].setType(inputs[0].value_from == noone? VALUE_TYPE.any : inputs[0].value_from.type);

View file

@ -12,7 +12,7 @@ function Node_Array_Pin(_x, _y, _group = noone) : Node(_x, _y, _group) construct
bg_spr_add = 0;
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, []);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, []));
static createNewInput = function() {
var index = array_length(inputs);

View file

@ -11,7 +11,7 @@ function Node_Array_Range(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou
newInput(2, nodeValue_Float("Step", self, 1))
.rejectArray();
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, []);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, []));
static processData = function(_outSurf, _data, _output_index, _array_index) {
var st = _data[0];

View file

@ -11,7 +11,7 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
newInput(1, nodeValue_Int("Orders", self, []))
.setArrayDepth(1);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0))
.setArrayDepth(1);
type = VALUE_TYPE.any;

View file

@ -16,7 +16,7 @@ function Node_Array_Remove(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(4, nodeValue_Bool("Spread array", self, false ))
.rejectArray();
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0));
static step = function() {
var type = getInputData(1);

View file

@ -5,7 +5,7 @@ function Node_Array_Reverse(_x, _y, _group = noone) : Node(_x, _y, _group) const
newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0));
static update = function(frame = CURRENT_FRAME) {
var _arr = getInputData(0);

View file

@ -9,7 +9,7 @@ function Node_Array_Sample(_x, _y, _group = noone) : Node(_x, _y, _group) constr
newInput(1, nodeValue_Float("Step", self, 1))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0)
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0))
.setArrayDepth(1);
static sample = function(arr, stp) {

View file

@ -10,7 +10,7 @@ function Node_Array_Set(_x, _y, _group = noone) : Node(_x, _y, _group) construct
newInput(2, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0))
.setVisible(true, true);
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0));
static update = function(frame = CURRENT_FRAME) {
var _arr = getInputData(0);

View file

@ -8,7 +8,7 @@ function Node_Array_Shift(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou
newInput(1, nodeValue_Int("Shift", self, 0))
outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0);
newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0));
static processData = function(_outSurf, _data, _output_index, _array_index) {
var _arr = _data[0];

View file

@ -10,7 +10,7 @@ function Node_Array_Shuffle(_x, _y, _group = noone) : Node(_x, _y, _group) const
.setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[1].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) })
.rejectArray();
outputs[0] = nodeValue_Output("Shuffled array", self, VALUE_TYPE.any, []);
newOutput(0, nodeValue_Output("Shuffled array", self, VALUE_TYPE.any, []));
static update = function(frame = CURRENT_FRAME) {
var arr = getInputData(0);

Some files were not shown because too many files have changed in this diff Show more