Geomerative | Text question

edited February 2017 in Library Questions

I am trying to modify an example script that uses geomerative as well as fisica to have letters with dynamic properties.

The issue I am having is that it currently only works with single letters and I want it to work with words.

The code that I need to figure out is probably this part.

 m_shape = RG.getText(txt);
    m_poly_group = RG.polygonize(m_shape);

    if (m_poly_group.countChildren() < 1) return;
     m_poly = m_poly_group.children[1];    // which letter

If I change the children[1] to children[2] for instance it will work with the 2nd letter of my string.

There is also function RGroup myGroup = font.toGroup(txt); that I think is needed.

Below is a link to my sketch.. (https://www.dropbox.com/s/5ao1s5b82n21lbb/Words.zip?dl=0)

Any tips would be great.

Thanks.

Phil

Sign In or Register to comment.