Quad leaves UV tiling

Hello,

I've been looking around couple of days now for a script that does a job same as the one of djx script, but for 3ds max.

Script page:
http://www.djx.com.au/blog/2011/03/10/maya-paintfx-leaf-uv-layout-script/

also the one that does grass is here:
http://www.djx.com.au/blog/2012/07/28/djpfxuvs-for-maya-now-has-a-ui-and...

What it basically does is take the quad geometry leaf UVs and tile them into your choice of (2x2) (3x3) or (4x4) and so on.

My workflow in rendering the variation (3dsmax) is using the MaterialByElement modifier and having a multisubobject material. I find the UV Tiling method way much easier and faster.

All I wanna know is there any similar workflow for 3ds max or any script that does the same?

I'd really appreciate any help, :)