Forum: Poser - OFFICIAL


Subject: EZMat

Snarlygribbly opened this issue on Dec 17, 2013 ยท 582 posts


bagginsbill posted Tue, 14 January 2014 at 5:52 PM

Suppose you want to do a double houndstooth, with two different sets of colors, each doing 8 repetitions of its color pair. You could write 4ababababababababcdcdcdcdcdcdcdcd. But such things are error prone and what if you wanted to change it to some other number of repetitions.

So I added support for parenthetical subsequences. Basically if you put parentheses around a sequence, it becomes a unit, which can be repeated.

So 4abababababababab has 8 copies of 4ab, which can be reduced to

8(4ab)

Similarly, the 4...cdcdcdcdcdcdcdcd part can be redued to 8(4cd). So I can use

8(4ab) 8(4cd)

In fact, I forgot that the 8 carries forward in the same "word" and I could have simplified this to:

8(4ab)(4cd)

Note that the 4 has to be given again inside the parentheses because when you enter the parentheses, the repeat count is 1 unless you say otherwise.

This is because we expect that 8(ab) is the same as 8(1ab) not 8(8ab).


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)