houdini, scripts, vex VEX: split string and convert to integer September 20, 2018By gareth //Split @anotherAttribute based on ‘_’ string myString[] = split(s@anotherAttribute, “_”); //Use last element as attribute value s@tempString = myString[-1]; //convert string to integer i@myIntegerFromString = atoi(s@tempString);
I use opdigits()
That works too 🙂
Needed this! Couldn’t find it in my old archive.