Just curious dynamic datatype set possible?

   791   1   0
User Avatar
Member
97 posts
Joined: May 2015
Offline
Just got an idea but havent tested, but can you in python or Vex make data types dynamic.

Example:
int pts = npoints(1);// Example lets say its 4 
int DatatypeHold[];

for(int i = 0; i < pts; i++)
{
  //Set data type: int or float (mostly commonly used type)
  //give each a name Var_#
  //Store in a Array DatatypeHold.
  
  
}
// DatatypeHold = [{Var_1,Var_2,Var_3, Var_4}] <--- not manually but dynamically. 
User Avatar
Member
97 posts
Joined: May 2015
Offline
Also if anyone is interested on my Pipe Generation that gets from Point A to B. Let me know and ill soon make a breakdown on the algorithm. https://www.artstation.com/artwork/Jl5Av0 [www.artstation.com]
  • Quick Links