Jump to content

Search the Community

Showing results for tags 'printf'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 5 results

  1. printf

    I'm confused about printf. I don't know c++ and so never had to use it before leaning vex. I'm wondering about all letters you can use for the arguments in the printf function. I've seen %f used for a float. %d also used for float (decimal i guess), %s for string, and %i for integer. the docs state: The conversion of the argument is specified by a single letter: g, f, s, d, x, c, p. it goes on to show: %g, %p, %c Print an integer float, vector, vector4, matrix3, matrix or string in "general" form. %f, %e, %E Print a float, vector, vector4, matrix3 or matrix in floating point form. The first example shows 3 argument types and 7 data types. Does this mean i can use any of the listed %letter arguments with any of the data types shown?
  2. Dear all, Sorry if my question looks naive, as you're all surely usual with this : matrix reading /printing. But i'd like to "printf" it element by element. Usually, generally a matrix looks like : matrix M[r][c] -> then your iter through. eg : print(M[1][1]+"\n"); But here in Hou it is : matrix M Yes printf() prints the thing but the whole thing. Then, how to read elements one by one separatly, please? i humbly dunno. Am usual with this practice in other languages because Matrices could be used as a fantastic "Chest" to store values, compiling vectors pack, and on and on... So any advices to this practical question are welcome. Thank you a lot. Bests,
  3. So I was writing some vex code for a scene Im working on, and while I was debugging the code to correct an issue I placed various printf() functions in the code to check the state of the attributes right after I made some changes to them, and I noticed that if I load an attribute in a variable and print it, modify the attribute, reload it in the same variable and then print the variable out again, it wont show the newer value if the loading&printing process is done in the same wrangle node of where the attribute was modified. Here's an example scene wich exactly recreates my scenario. Am I missing something stupid here? Test_attribute.hipnc
  4. Hi This may be really stupid but I was working on a volume wrangle, and I noticed that the printf() function does not work on this kind of wrangle node... Is it just me or am I making some kind of stupid mistake? In the pic the node to the left prints nothing, instead of the node of the right (wich has the same code), wich actually prints "Hello" to the Houdini console.
  5. Hi, guys. My friend find a strange VEX problem. When we first create a 10*10 grid, and use a point wrangle run points level(detail level works correct) with: if(@Frame == 2){ printf("%s\n", "ss"); } The console show "ss", it was a right way. But if we change the grid to 40* 40, or much bigger. The console show two or more the two lines. Does it concerned with the number of threads?
×