Scale UV Islands individually from pivot
2508 5 0- NichoReynolds
- Member
- 4 posts
- Joined: 5月 2019
- Offline
- jparker
- Member
- 278 posts
- Joined:
- Online
- tamte
- Member
- 8444 posts
- Joined: 7月 2007
- Offline
you can get island id using connectivity SOP in UV connectivity mode
and then this Vertex Wrangle should take it from there
and then this Vertex Wrangle should take it from there
vector t = chv("t"); vector r = chv("r"); vector s = chv("s")*chf("scale"); string geo = geounwrap(0, "uv"); int island = prim(0, "island", @primnum); vector center = getbbox_center(geo, "@island=" + itoa(island) ); matrix xform = maketransform(0, 0, t, r, s, center); v@uv *= xform;
Edited by tamte - 2021年5月27日 02:57:12
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Bodhi5000
- Member
- 2 posts
- Joined: 10月 2020
- Offline
- animatrix_
- Member
- 4454 posts
- Joined: 2月 2012
- Online
Bodhi5000
What if you want to move the island to the origin?
Hi,
You can do something like this in a Vertex Wrangle after creating a Connectivity SOP set to use UV Connectivity:
string geo = geounwrap ( 0, "uv" ); int cls = prim ( 0, "class", @primnum ); vector center = getbbox_center ( geo, "@class=" + itoa ( cls ) ); @uv -= center;
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- Bodhi5000
- Member
- 2 posts
- Joined: 10月 2020
- Offline
-
- Quick Links