Alberto GZ
AlbertoGZ
About Me
専門知識
Freelancer
INDUSTRY
Film/TV
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Create list of variables with no hardcode (VEX, Python?... ) 2022年10月15日10:28
My mistake with ; at the end of line in the for loop :P
Create list of variables with no hardcode (VEX, Python?... ) 2022年10月15日10:22
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?... ) 2022年10月15日7:41
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!