From text to integer

Hello,

I am ashamed to ask for this, but I may not be on the right path to solve this.

The text panel is face mesh extraction I need as integer to be selected later.

From text to integer.gh (21.1 KB)

Thanks for help…

Use Text Split component?

From text to integer TextSplit.gh (18.5 KB)

From text to integer.gh (20.4 KB)

1 Like

So fast so easy…

Thanks a lot

Thanks but this is still text

1 Like

No, it’s not. Even if it were, Grasshopper has dynamic data types. Why do the developers always suggest coding solutions?


unformat path to integers _ vr.gh (26.7 KB)

1 Like

The problem with relying on automatic type conversion especially from data to text and text to data is that you will run into data loss eventually. If you search here on the forum you’ll find cases where the automatic conversion doesn’t do exactly as wanted.

Besides, this is one component without the need to rely on automatic data conversion, meaning it can be faster.

1 Like