Using Hatch Patterns in Compute

Hey everyone,

I want to develop a workflow where I could have hatch patterns as input and use them in Compute.
The current status is that you can’t internalize Model Hatch Patterns in GH, so a workaround I came up with is to assign the desired pattern to a Hatch, and internalise that instead, then extract the parameters and reapply them as desired. Here’s an example:


test_hatch.gh (20.5 KB)

The last code segment is designed to visualize the hatch pattern in a webapp. However, the pattern curves don’t seem to be computed on a local appserver, only the test line goes through. I get the following errors:

I assume the hatch info is somewhat internalized when used in GH but doesn’t translate in Compute (?)

Any ideas how to get around this?

Thanks,
Abdo.

I don’t think this will work. Even though you’re internalizing the Hatch, I don’t think the pattern will come across correctly. We are working on a way to be able to properly serialize/deserialize model objects which would make this work for you… but there needs to be a little more testing before it can be released.

Thanks Andy for the insights. What’s weird is that this workflow works shockingly well on GH, it just doesn’t go through on compute, even when running locally.

Any ETA on this fix ? (So I can adapt my development accordingly)

I welcome your ideas of workarounds for this situation :slight_smile:

Cheers.