Page 1 of 1

Wire: elegant way to stop instances looping around and filling empty slots?

Posted: Mon Nov 01, 2021 13:21
by 4ndrw
Hey there,

I have a basic effect I'm working on, it involves getting data from slices and adjusting opacity for them.

But, if I'm expecting 8 slices, and the user only loads in 6, I get some bizarre behaviour that I'd like to change. Basically, stuff intended to control "slice 7" and "slice 8" will end up controlling slice 1 and 2.

What I'd like is for them to do nothing!

I've played around with "indices", "size", "expand" I'm not really having any luck.

Any ideas?

Re: Wire: elegant way to stop instances looping around and filling empty slots?

Posted: Mon Nov 01, 2021 13:37
by 4ndrw
It gets pretty hard that there's no concept of slice information while inside Wire

But having some luck debugging things by using the "text render", running a variable to it and seeing what shows up inside Arena ;)

Re: Wire: elegant way to stop instances looping around and filling empty slots?

Posted: Mon Nov 01, 2021 14:29
by Zoltán
Well have a dummy slice input to test with in the future.

Try using the indices form Slice in, to Read from the controls.

--begin-wire-patch--
783.3ocqVtrahCCEF9UYjWmT4Km3jvNlVFoNKlEcVVwBShAhlfMJW5EUw69X6PIFAXQu.RDh46br8++IG7anBsRIK5pzpVzjGeCsrQuw7EbDR22ssuCMOB0oMiPhPUJy.Xz7cQG3XmvQiL4rtdHmGwRemEe.FNaRImBRsfkxWLblgT5RoY49FBa+Pz00TsnuaXnJUamPULbS2qaknIHU+lExFTD5IQcuY.X2tHzBcupzQsVVsZcGZRlYVdtpraMZBgYTfWLWovMYzTVFjCYoLLvyRShPuhlPIran.fYrLBCR4IbZhIqE0h1g0QoYhSS44oTdRrjSVFCzBbbFgJhwkEBLHSAST1kkro0pVSvtLnK9mI1mpJkZjSM0Ml6WZdwEXraH2lra+F1J+ia115pB43d8QUecczweL2t+WWUVJMy4i6yfUWEarY3u1L7i6UHCE4TEdYs9Yu4yc6goC0VsRIpsgN3rwkUajp1gBrCA4M33JElOF0.2Ad2EuIwsGOuKZct2cw7DmKRwYNOiAvMLHgBILNgQMVQ.KaZJgFC2lCw47Y2EylRlwRS3ylxm9sXY3uhmMZV2qJqrU6lekdpWM9n3GvGnXqQ3EZXyvT.H5FLbySneb+1Fz0WSYoCudpTcxUlG2c3cxls5ZgqYzXDEq0GI3n+nURa.O2H1tsRsJD6CxsR6F9rUeIYmT8A.an5KiFpZ6t67p1foImsZi7Ip17ZGejBa1CidAN5pdevw7R0658II6RkrOHEkVwl846sX5nGWrVX9uq5PM5o1mNupp2yalD3D2jjSctIvwW1MYoLSuCZoHlmvjwK3.oDDPNkBe0dG6203K6ktrNPQtLEwiJPxH9YKT57yGM.G0iiEfi4wAA3.Otj.bIdb7.bbOtz.bodbYA3x73xCvkOxEP97Tu.hmm1EP57Tt.BmmtEP17Ts.hlmlEPx7Tr.BV9EZt7ack6fKvW4fKe5iPdl1+778G9fGn8+r7YjX3mSuMNOEnwlglkPwoSIX129gMtPq+K0s9WGZP1Ha08MC5xtc+GHnecT
--end-wire-patch--

Re: Wire: elegant way to stop instances looping around and filling empty slots?

Posted: Tue Nov 02, 2021 11:40
by 4ndrw
ahhhhhh so creating the array first, and then iterating through it is it the secret, so it has a minimum size that is bigger than what you could address

gotcha!