Hi there,
I have two uv sets uv and uv2 (points), i want to access the individual components of uv2 in a wrangle. The wrangle will see uv.x but won't see uv2.x. Both uv attributes are applied in the same manner and are both uv 3flt(Tex). I thought perhaps it should be uv.0 as this is how it's listed in the geo spreadsheet but no dice. Invalid subscript for type: float.x (1,8:9) is the main error message I get from the node info but it means less than it should to me currently.
any clues you can throw me please?
cheers,
A>
Simple question about uv components and vex
2485 4 0- Andi Farhall
- Member
- 115 posts
- Joined: Feb. 2014
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
- Andi Farhall
- Member
- 115 posts
- Joined: Feb. 2014
- Offline
- FJSam
- Member
- 18 posts
- Joined: Aug. 2018
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
only uv attribute has the type info automatically set as texturecoord by default
uv2, uv3, ... are just arbitrary attribute names that Houdini doesn't make any assumption about so it will not assume they are texturecoord, color, normal, ... when you are creating them and will leave them without any specific type info
- you can replace this
- or if you want to create it in wrangle using the code above for example then you can set the type info directly in wrangle
assuming it is Vertex attribute in this case
- you can also use Attribute Create SOP to set the Type Info to Texture Coordinate
uv2, uv3, ... are just arbitrary attribute names that Houdini doesn't make any assumption about so it will not assume they are texturecoord, color, normal, ... when you are creating them and will leave them without any specific type info
- you can replace this
v@uv2 = @uv;
by Attribute Swap SOP in Copy mode, corresponding Class and set Type Info to Copy Source- or if you want to create it in wrangle using the code above for example then you can set the type info directly in wrangle
v@uv2 = ...; setattribtypeinfo(0, "vertex", "uv2", "texturecoord");
- you can also use Attribute Create SOP to set the Type Info to Texture Coordinate
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links