setvertexattrib group ?

   1144   2   0
User Avatar
Member
23 posts
Joined: Feb. 2019
Offline
Hi all,


setvertexattrib syntax is :
int setvertexattrib(int geohandle, string name, int prim_num, int vertex_num, <type>value, string mode="set".

Second argument (string name) is supposed to be a group :
name : The name of the group to modify.

I use it in a wrangle node set to run over points, with linear vertices indexes, under a "if" condition.
I have no vertex group to provide since I have to run the wrangle node over all points and change uv vertex value only if "if" condition is right.

I don't know what to put in this group argument. I tried an empty chain "", but it does not work.


Thanx to explain me what i don't understand to make "setvertexattribute" work when no group is needed.
Senior 3d artist - many 3d softwares.
User Avatar
Member
9571 posts
Joined: July 2007
Online
The name is not group name but name of the attribute you want to set, so in your case it sounds like you want to put "uv" there

The docs says group name which likely sounds like the help was copied from setvertexgroup() help page and group name was not changed to attribute name
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
23 posts
Joined: Feb. 2019
Offline
Thanx Tomas !

I am an idiot ! I hadn't noticed that I hadn't specified which attribute to change !
It's been a long day !

Anyway, good to have fast answers when a problem occurs. Thank you again.
Edited by Jip - June 4, 2024 02:53:49
Senior 3d artist - many 3d softwares.
  • Quick Links