Jump to content
garf

UDIM for each geo procedurally

Recommended Posts

I've got some geo with 120+ leaf geometries and I'd like to procedurally move each geos uvs to it's own separate UDIM. I'm currently using a for-loop and some modulos but it's not quite working right

transform x on uvtransform28 = detail("../foreach_begin8_metadata1", "iteration", 0)%10*2

transform y on uvtransform32 detail("../foreach_begin8_metadata1", "iteration", 0)-detail("../foreach_begin8_metadata1", "iteration", 0)%10

image.png.566128fb2898f158bd37c46c84f5c373.png

Any ideas?

Share this post


Link to post
Share on other sites

improvement:

transform y on uvtransform32 = (detail("../foreach_begin8_metadata1", "iteration", 0)-detail("../foreach_begin8_metadata1", "iteration", 0)%10)/10

image.png.0e5cf8a691b55d1d9b9a645e9b767423.png

Share this post


Link to post
Share on other sites

Hi,

you can use uv layout SOP with i@udim primitive attribute.

 

udim.png

udim.hipnc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×