Scale UV Islands individually from pivot
3430 5 0- NichoReynolds
- Member
- 4 posts
- Joined: May 2019
- Offline
- jparker
- Member
- 317 posts
- Joined:
- Offline
- tamte
- Member
- 8861 posts
- Joined: July 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 - May 27, 2021 02:57:12
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Bodhi5000
- Member
- 3 posts
- Joined: Oct. 2020
- Offline
- animatrix_
- Member
- 4733 posts
- Joined: Feb. 2012
- Offline
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 | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- Bodhi5000
- Member
- 3 posts
- Joined: Oct. 2020
- Offline
-
- Quick Links