Grasshopper

algorithmic modeling for Rhino

Use of Special Characters in Construct Path Component For Masking

It would be nice to be able to use special characters in the Construct Path component, mostly for purposes of masking.

I had initially tried to make my own component to do this but getting the component to be dynamically responsive to the number of inputs on a Python node is pretty hacky compared to the GUI elements available in nodes like Merge.

See image below for further clarification.

Views: 1898

Replies to This Discussion

The Construct Path component outputs an actual path though, which only supports integer elements. The component would have to output a string for what you want. This can be done, as correctly formatted strings can always be converted into paths, but I'm not happy making this change.

The attached C# script does what you want I think?

Attachments:

"That's it!"

The Python equivalent.

The next task is to write something that allows for a list output. Below does the trick, but one still has to manually alter the code. Would be nice to automatically pull and format the variable input data as it's created. Going to try to take advantage of what Giulio outlined here for me.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service