Jump to content

Search the Community

Showing results for tags 'function'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering + Solaris!
    • 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

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Name


Location


Interests

Found 8 results

  1. Hi, this is my first post here. I've been trying to call a vector array function in VEX, but it either returned "Internal Compiler Error" or "Syntax error, unexpected identifier, expecting ';'". I also checked Array help file and the example as below didn't work at all: To specify a literal array, use curly braces, with the array members separated by commas: vector[] rgb_array() { return { {1, , }, {, 1, }, {, , 1} }; } Here is the simple code I tried to compile, but it returned an error message "Syntax error, unexpected identifier, expecting ';'." vector an_array[] = {{1,1,1}, {2,2,2}}; vector a[]; vector[] testFunction(vector[] a){ return a; } a=testFunction[an_array]; Does anyone know if VEX supports array function? Thank you very much!
  2. Hi Everyone, I was wondering if there is anyway in Python to run a function only when the left mouse bottom being held down? Thanks,
  3. Hello! I defined a custom vex function in Attribute Wrangle node, and i can call it only from this node, when i call it from different Attribute Wrangle node i get Undefined Function error. Is there a way to declare a function in one node and to call it from the other node? The only way i found is to use external files with the #include filename.
  4. I created my vex function, ofcourse i can <include> it in wrangle. But can i compile and use it as intrinsic vex function? I tried to do this, but after all, function is still undefined. I compiled with this command: vcc.exe -c cvex --generate-intrinsic-lib myfunc.vfl After that i copied in houdini\vex\intrinsics directory What i did wrong? Or it's not possible?
  5. Hi there, I'm trying to wrap my head around custom vex functions, mainly from a theoretical point at this stage so not really addressing a specific use, just general knowledge. When I create a VEX function I believe that I have to specify exactly what type of data it is expecting from the arguments and exactly what type of data it will return. eg. function int my_function(float a){ return int(a); } in which case I have to feed it an INT argument and it will always return an INT value. My question is this, is there any way of creating a VEX function which can accept multiple arguments, but not fail if one or more of those arguments are absent when the function is called? Or better yet a way of taking a single argument with out specifying what type of data that argument should be? I'm guessing that this is somehow possible as most of the existing Houdini VEX functions work with multiple flavours of input. Thanks in advance. M
  6. Hi there, I'm playing around with creating some custom VEX functions and came across something a bit odd that I just can't seem to get working. If I want to create a custom function that returns an array, say a vector array I will need to declare the return type at the beginning, according to the docs the following should work // A function which returns an array of vectors vector[] rgb_array() { ... }; However if I run this in a wrangle I get a syntax error on line1. Is this a bug? Or am I declaring my function type incorrectly? Thanks in advance m
  7. NOOB ALERT! Hi, folks! How can I learn function and expression and it's usage? Exhelp or Houdini help is a great tool but like I have encountered today and is encountering everyday finding right function or making the expression correct is a big issue for me. I didn't know what prim() does. Didn't know it actually exists. Then I saw some tut where everyone is using it, then went to exhelp and understood it. I hope you can understand my situation. So, how can I learn them fast or may be a direction to have them all? Here in Odforce or Sidefx many words are alien to me. How can I overcome it? Please, if you can, share with me how you have learnt function and expression Thanks for your great help!
  8. Hey guys, I've been trying to find a way of making a recursive function in VEX. I'm trying to aggregate infromation from points and build an return array, but can't get any recursive funtions to work. For example, when ever I try running something like- void printer(int count){ count+=1; printf("\n %c", count); if(count < 10){ printer(count); } } printer(1); It throws the error- "Call to undifiend function 'printer'" I know I can go the messy route with while loops and maintaining variables by adding and subtracting elements and having a result variable... but this is needlessly insane to try to do a basic recursive function. I've tried giving pointer variables, and it seems like vex doesn't want to accept standard C pointer code. Or at least doesn't like * in the input variables of a void definition. Has anyone had success with this and might be able to point me in a useful direction for vex code? (No, this can't be done with nodes or a python node for the real node I'm working on) Thanks in advance! -Kevin
×
×
  • Create New...