Pattern gradient render issues

Hello :smiley:,

I wrote a code (if that’s how you say it), to create a gradient of patterns, using an image as the input. It all works fine, but the code takes a long time to run, let alone adjust the many parameters that I need to adjust it for it’s purposes. The code works with a kind of resolution, which is represented by the amount of patterns used. At lower resolution adjustments are made easily, but at the resolution I need it to be, rhino crashes all together.

I would greatly appreciate any help, workarounds etc.

Thanks in advance :slight_smile:

pattern gradient.gh (3.3 MB)

Maybe to rephrase my question: Is there any way to speed up render time? Or can anyone look at my code and point out some obvious mistake or more appropriate method?

Hi @moau_kanea, I just saw your question in your other thread
sorry that this one has been left unanswered.

I opened your definition and activated the lower group. Here it computes in about 8 seconds, so not all that slow. I don’t know which setting you change from this file that makes it slow or crashes your computer.

To better answer your problem, I would like to ask you to better organize your file. With clear code blocks and clear ins and outs.

Hi, since I asked this question I totally changed the code. I thought using “tween between curves”, would decrease render time and be more effective for other applications.

However, the code is still very slow, but that can also be related to slightly outdated hardware. At least it served it’s purpose, but I might ask about it again if I need it. Thank you for your reply