Vector4 UV is possible?

   1748   4   1
User Avatar
Member
4 posts
Joined: March 2018
Offline
Hi,

I'm trying to save data in UV but i can't do that

p@uv4=set(1,@uv4.y,@uv.z,@uv4.w); //this is not working


v@uv4=set(1,@uv4.y,@uv.z); //That's OK

Someone to help?

Thanks
User Avatar
Member
8539 posts
Joined: July 2007
Online
what does it mean not working, do you get any error?

it works for me correctly
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
4 posts
Joined: March 2018
Offline
I'm not getting an error.
but when i'm select v4 attribute wrangle i can't see UV4 channel but v3 wrangle is OK.
Edited by pan - April 5, 2020 12:23:25

Attachments:
v3.jpg (58.8 KB)
v4.jpg (58.0 KB)

User Avatar
Member
8539 posts
Joined: July 2007
Online
pan
I'm not getting an error.
but when i'm select v4 attribute wrangle i can't see UV4 channel but v3 wrangle is OK.
then it sounds like you already have v@uv4 attribute on the input geo instead of p@uv4
just running p@uv4 = something on next wrangle would not cast uv4 from float3 fo float4, so make sure your input attribute is correct type
but if you don't see it at all, then maybe something else is going on, post a file

EDIT: aaah, you don't see it in that list, not in geometry spreadsheet
for those you need to set attribute type info to texturecoords
setattribtypeinfo(0, "point", "uv4", "texturecoord");
even though it still doesn't seem to show up, so maybe submit rfe, just know that your float4 attribute exists and you can use it to do whatever you want with it
but it will at least show up in texture related sops like uvtransform if you set the type info
Edited by tamte - April 5, 2020 12:35:40
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
4 posts
Joined: March 2018
Offline
Yes, i debug that in Unity it's working, i get float from UV4.w

I saw a warning and i added UVproject node (group type : point) everythig is ok for now but ,it's seeing on the uv list.

Thanks

Attachments:
UV4Warning.jpg (203.6 KB)

  • Quick Links