Alberto GZ
AlbertoGZ
About Me
EXPERTISE
Freelancer
INDUSTRY
Film/TV
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Create list of variables with no hardcode (VEX, Python?... ) Oct. 15, 2022, 10:28 a.m.
My mistake with ; at the end of line in the for loop :P
Create list of variables with no hardcode (VEX, Python?... ) Oct. 15, 2022, 10:22 a.m.
Thank you Andr, but it seems only create one attrib with the last number in the loop.
Create list of variables with no hardcode (VEX, Python?... ) Oct. 15, 2022, 7:41 a.m.
How to create a list of variables, as well attributes, like myVar1, myVar2, myVar3, etc, with no hardcode?
What I find:
What I tried:
It seems only works for string value, and not at time variable/attrib creation.
Thanks!
What I find:
//Variables: string myVar1 = "text1"; string myVar2 = "text2"; string myVar3 = "text3"; //... //Attributes: s@myAttrib1 = myVar1; s@myAttrib2 = myVar2; s@myAttrib3 = myVar3; //...
What I tried:
int i = 0; for (i=0; i<5; i++); string myVar+itoa(i) = "text+"itoa(i); s@myAttrib+itoa(i) = myVar+itoa(i);
It seems only works for string value, and not at time variable/attrib creation.
Thanks!