Pixel-Composer/datafiles/Getting started/4 Looping operation.pxc
2023-02-19 08:13:19 +07:00

1 line
16 KiB
Plaintext

{"nodes":[{"group":-1,"x":160,"id":710959498,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,[64,64],[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,[32,32,9.0399999999999991473487170878798,8.9600000000000008526512829121202,0],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,3,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.5,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,[0,0],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.10000000000000000555111512312578,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,-4,[0,1],[0,0],0,0]],"anim":false,"visible":true,"unit":0,"from index":-1}],"attri":{},"type":"Node_Shape","y":-32,"name":"Shape"},{"group":171652176,"x":-320,"id":870229182,"inputs":[],"attri":{},"type":"Node_Iterator_Index","y":64,"name":"Index"},{"group":-1,"x":-416,"id":660826364,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Looping allows you to repeat the same operation multiple times with slight variation.",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-128,"name":"Display text"},{"group":171652176,"x":-320,"id":794727501,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,[0,1],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,4,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Iterator_Input","y":-96,"name":"Input"},{"group":171652176,"x":-160,"id":265354093,"inputs":[{"from node":252000456,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":870229182,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Array_Get","y":32,"name":"Array Get"},{"group":130818950,"x":-256,"id":987418939,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,[0,1],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Iterator_Input","y":-64,"name":"Input"},{"group":171652176,"x":-352,"id":869049526,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Another node used in loop is index. Index node output the current loop index. This can be use to get value in array",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,450,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":128,"name":"Display text"},{"group":130818950,"x":192,"id":787085982,"inputs":[{"from node":331368383,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":987418939,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":1}],"attri":{},"type":"Node_Iterator_Output","y":-64,"name":"Output"},{"group":-1,"x":-416,"id":676613630,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Getting started 4: Looping ",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.5,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-192,"name":"Display text"},{"group":-1,"x":-192,"id":628179710,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"The only property in loop node defines how many times you want to loop.",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,300,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-32,"name":"Display text"},{"group":130818950,"x":-320,"id":797189508,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Loop in-output have one special junction. This <spr s_node_junctions_single 9 0.5> junction define which data to reuse in each loop.",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-128,"name":"Display text"},{"group":-1,"x":-352,"id":130818950,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":-1}],"attri":{},"type":"Node_Iterate","y":-32,"name":"Loop"},{"group":171652176,"x":256,"id":217889613,"inputs":[{"from node":400135540,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":794727501,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":1}],"attri":{},"type":"Node_Iterator_Output","y":-96,"name":"Output"},{"group":130818950,"x":-288,"id":551539294,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"In this example, in each loop it will add value by 1. And use that value as a input in the next loop.",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":128,"name":"Display text"},{"group":-1,"x":-416,"id":741389209,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Rendering with loop can be unstable, try press <bt F5> multiple times until it output properly",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,400,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":64,"name":"Display text"},{"group":-1,"x":-416,"id":593948373,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"Welcome to Pixel Composer",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-224,"name":"Display text"},{"group":171652176,"x":-320,"id":252000456,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,[15726075,11260914,10854342,10251659,8277321,4466471],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,[0,1],[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Palette","y":0,"name":"Palette"},{"group":171652176,"x":0,"id":400135540,"inputs":[{"from node":794727501,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,4,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":265354093,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":false,"visible":true,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":false,"visible":false,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,true,[0,1],[0,0],0,0]],"anim":false,"visible":false,"unit":0,"from index":-1}],"attri":{},"type":"Node_Outline","y":-96,"name":"Outline"},{"group":-1,"x":-416,"id":714226318,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,16777215,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,"This can be done using loop node <spr loop 0 0.5>. Which works similiar to group.",[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,2,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0.75,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1000000,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1}],"attri":{},"type":"Node_Display_Text","y":-96,"name":"Display text"},{"group":-1,"x":320,"id":171652176,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,5,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":710959498,"on end":0,"data":[],"raw value":[[0,-1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0}],"attri":{},"type":"Node_Iterate","y":-32,"name":"Loop"},{"group":130818950,"x":-32,"id":331368383,"inputs":[{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":987418939,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":0},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":1,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,1,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":0,"visible":0,"unit":0,"from index":-1},{"from node":-1,"on end":0,"data":[],"raw value":[[0,0,[0,1],[0,0],0,0]],"anim":false,"visible":false,"unit":0,"from index":-1}],"attri":{},"type":"Node_Math","y":32,"name":"Math"}],"graph":{"graph_x":400,"graph_y":230},"version":1300,"metadata":{"author":"","alias":"","file_id":0,"contact":"","description":"","tags":[],"aut_id":0},"animator":{"framerate":15,"frames_total":12}}