Search the Community
Showing results for tags 'strings'.
Found 2 results
Nandu posted a topic in Lighting & RenderingHi, This is Nandan from SPin Vfx. I am working on Material Style sheets in Houdini 16.5. I want to add add subdivision groups under Render Polygon as Subdivision (Mantra) on the rendering geo. I see I can create a Render Property override on the geo in the style sheet and set it to one. To specify the groups for subdivision (which is also a render property on the geo) I wanted to write an inline script in cvex to return an array of string to fill the subdivision parameter. My question is: 1) Can that be possible? Can I return a string from cvex and populate the subdivision group parm on the geo using style sheets. I do not want to hard code it, I want to return it from cvex 2) Should I be returning an Array of Strings from the cvex funtion, if there is more than a single group. 3) Can I get any reference to working example? Any help will be much appreciated.
Hi So basically I have a certain float value, lets say 3.68, and I want to get the digits before the comma (there are no functions that rounds to the lowest integer), so that I can later use that in some math operations. I know I can use split() to split to the point, and sprintf() to convert to string, but I cant get this last function to work, for example if I wrote float _x = sprintf("%g",3.68); But this gives me an error... Anyone knows how to convert to string and back to the original variable type? Thanks