To fix decimal formatting issues with "sprintf()" function use %s or %g. it will use the same value as you assigned to variable and no decimal error. Thanks for the video!
Can't get ftrim function, If you can explain it would be life saver What I got is like // So if you want to trim 0.256143 to 3 decimal places // You'll write like sprintf("%.3f", 0.256143) ; //or sprintf("%0.3f", 0.256143) ; // Result will be 0.256
Hey! great video!! i got a question... can u use a string array to store variable names, and then acces that variables trought the array? Someting like: int val1 =0; int val2 =1; String array[] = {"val1","val2"}; int val3 = array[0]; ??
when I select the path to the attributewrangle, the "font" still shows not the text itself, but the path to the attributewrangle. What could be the problem?
Before you, for half a day I could not understand how to convert float into a string, thank you very much!
You're awesome Junichiro for sharing your infinite knowledge. Thank you!!!!!
If there's only 151 hits it's not because this isn't an excellent series. It's because learning VEX is not easy. Thanks for your meticulous lessons.
as of 1/14/22 (5 months later) there are 4k views.
I'm new in houdini and started to learn vex not so long ago. I can't thank you enough for helping me/us to demystify this software !!! :)))
Thanks Junichiro!!! This series should call JuniFlix. See you in the next chapter.
To fix decimal formatting issues with "sprintf()" function use %s or %g. it will use the same value as you assigned to variable and no decimal error. Thanks for the video!
these lessons are very usefull and interesting! thank you
Super useful, tyvm
if you struggle with too much decimal numbers, use the "ftrim" function to get rid of the unnecessary => 50.400000 to 50.4
Can't get ftrim function, If you can explain it would be life saver
What I got is like
// So if you want to trim 0.256143 to 3 decimal places
// You'll write like
sprintf("%.3f", 0.256143) ; //or
sprintf("%0.3f", 0.256143) ;
// Result will be 0.256
Great, as always!
Thank you !
Though string manipulation is... uh... not "fun", thanks again for doing this video! I've been enjoying them.
thank you sensei🙏
s@val1 gives me an error.. everything is exactly the same. any ideas?
Hey! great video!!
i got a question... can u use a string array to store variable names, and then acces that variables trought the array?
Someting like:
int val1 =0;
int val2 =1;
String array[] = {"val1","val2"};
int val3 = array[0]; ??
Thanks
want to learn python in houdini from you
As always Gold 👌
Thank You very much, Junichiro!
when I select the path to the attributewrangle, the "font" still shows not the text itself, but the path to the attributewrangle. What could be the problem?
Thanks!!!
35:05 mind blown again "you can consider strings the same as arrays, where each character occupies an index in the array" wow
s@val1 keeps giving me errors :( code is the same as yours
Sure enter single quotes !!!!!!!!! not this ' ,it shloud be ` 8:57
Thanks..I stopped for a long time...