Jump to content

Search the Community

Showing results for tags 'variables'.



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 14 results

  1. Hey all, I'm trying to set the environment variable HOUDINI_USER_PREF_DIR - to a specific folder. I have other environment variables working perfectly, but I cannot get this one to work regardless of whether I use a windows environment variable or place this inside the Houdini.env, Everytime I open Houdini and check the shell using hconfig, it says my temp directory is set to the default directory, does anyone have any ideas? My only guess is this is being set elsewhere and their fore overriding my manually created env varaibles. (Ive checked spelling etc. and this is what my windows env variable looks like; name = ‘HOUDINI_USER_PREF_DIR’, value = ‘D:\Houdiniprefs’ ) Thanks Chris.
  2. The Artist's Guide to Technical Direction in Houdini - Volume 0: Hscript Back in 2005 I got my start as an intern at Side Effects Software Inc. Over the past decade of using Houdini, I've worked around the world in the film (Starz Animation, Dr. D, Digital Domain) and games (The Coalition, BioWare, EA Motive) industries. In this time, I've had the pleasure of working with many artists who were new to Houdini and sharing some of the insight I've gained. While most people are pretty excited to get their hands on the flashier parts of the software such as FLIP and Pyro, I think that Houdini's greatest strength comes from it's sheer flexibility. And that flexibility is something that only opens up the deeper you delve into how things work. What I like most about Houdini is discovering new ways of doing things. One complaint I've heard time and again, is that after following a tutorial, new artists are often left with something that looks pretty but with little understanding of how anything actually works. I'm always hearing complaints about how steep the learning curve is with Houdini. I'm seeking to help fix that with 7 hours of new training material that focus specifically on HScript scripting in Houdini. This course I've designed for artists who are either lacking a technical background, or who may have experience in other packages but want to understand Houdini better. We'll avoid creating pretty things in this series. Instead, I want to keep a sharp focus on how things work. That means learning about procedural networks, variables and attributes, functions, and for-each loops. Most importantly, I address how to self-learn Houdini. My hope is that this course will build a solid foundation for you to get the most of any future training you pursue and help you to understand how to get the most out of your Houdini networks. If you'd like to become more adept at scripting in Houdini, please consider signing up for my course: https://mixtrn.com/course/the-artists-guide-to-technical-direction-in-houdini-hscript/ Have a Great Day!
  3. Custom VEX function input type

    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
  4. Hello all, So ive been customing the Houdini env variables within the Houdini docs folder. All working correctly with my job and hip file paths set as I wish. I was wondering is it possible to reference a system environment variable within the Houdini env variables script? (So set a environment variable called HOME to a certain path in the systems env variables) (Then call HOME within the Houdini env variables to set JOB or whatever). Any guidance or help appreciated as always Thanks C.
  5. Global variable using python

    Hi guys Can you set global variables using python within an HDA? I have an ordered menu that is being populated by a python menu script. Is it possible to set a global variable from in there? Thanks!
  6. Hey all, I'm trying to do a set up in a point vop using houdini 15.5 and it calls for a Global Variable that was produced in someones set up in Houdini 12 but I cannot seem to find it or something that is similar? Is there another node? I cannot figure out a work around. Please help!!! (attached is a screen grab from the older set up using the node) Thanks,
  7. Hi Is it possible to modify, from inside a function, a variable that was declared outside that function? For example this code wont work: void functionX() { y = 5; } int y; functionX(); Is there a way to reference that variable inside the function?
  8. Temporary variables in VEX Help

    Hi I'm new to this wrangle node programming, I've been busting my head over why this doesn't work for three days, it's so simple therefor i must be missing out on some general vex concepts. If anyone can please point me in the right direction that would be greatly appritiated. I have a bunch of points on a grid and their moving up and down via noise. I am trying to set up a point attribute that has a value of 1 when a point if moving up (positivly in the Y axis) and a value of 0 when a point is moving down (negativly in the Y axis). This attribute is called Direction, I'm computing the logic on temporary VEX variables and then writing them out to the attributes. Here's how it looks like : // 0 is going down, 1 is going up, -1 means the point has no direction // on the first frame they have no direction so the points just take their current heights so they can use them for comparison on the second and every other frame int temporary_Direction; float temporary_Previous_Frame_Height; if(@Frame == 1) { temporary_Direction = -1; temporary_Previous_Frame_Height = @P.y; } else { temporary_Direction = @Direction; // ------------> this is where the problem is (this is here so that the temporary variable get's the value of the currently proccesing point every frame) temporary_Previous_Frame_Height = @P.y; if(temporary_Direction == -1) // If the point has no direction { if(temporary_Previous_Frame_Height < v@P.y) // If it's going up { temporary_Direction = 1; temporary_Previous_Frame_Height = v@P.y; } if(temporary_Previous_Frame_Height > v@P.y) // If it's going down { temporary_Direction = 0; temporary_Previous_Frame_Height = v@P.y; } } } // Out_Values i@Direction = temporary_Direction; f@Previous_Frame_Height = temporary_Previous_Frame_Height; // Out_Values The problem here seems to be when I declare "temporary_Direction = @Direction", for some reason on the second frame when I read @Direction the value wich is given to temporary_Direction is 0 instead of -1 wich was given to every @Direction on the first frame. Temporary_Previous_Frame_Height updates just fine but temporary_Direction doesnt. Also writing "if(temporary_Direction == -1)" doesnt seem to work either. Is my thought process even slightly right here, what am i doing wrong, are temporary variables created in vex something that exist globally and in order to use them per point we need to read each point's values or are temporary variables something that exist for every point. Also why do i have to give values to all attributes every single frame or else they will reset to 0 (hense the Out_Values section). //////////////////////////// Update Thank you everyone for replying. I've tried out the time shift sop and it work's fine now( I dont even need the Previous_Frame_Height attribute anymore). I've updated the main post with the original hip file and the one with the time shift sop. Learning about the time shift sop is great, but i would still like to improve my thought process on writing code. It would be greatly appritiated if someone can take a look at the original hip file and possibly shed some light on the problem. I've added notes inside the original hip file for clarity. Any help would be appritiated Thanks in advance Original.hip Time-Shift SOP.hip
  9. Hi What if I want to print in the textport (or read somewhere) the value of the $HDA_TABLE_NAME variable? Variables like that are not visible in the "Aliases and Variables" window...
  10. Exporting variable from SHOPS

    Hi there Please forgive my noob status but is there some way of passing variables from a shop node (material shader builder) back up to sops level to evaluate in the node structure? I have tried bind export but no dice. Thanks in advance.
  11. Hi guys. I have an array of points with an attribute @mesh_path and @map_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
  12. Hi guys. I have a point with an attribute @mesh_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
  13. Hi guys. I have a point with an attribute @mesh_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file?
  14. Hi all! I'm pretty noob with houdini so maybe this will be a silly question :-) As the title says, I can't find a "direct" way to access to global variables in point/attribute wrangle nodes( maybe it's not possible?). In my case I would access to $NFRAMES global variable to pass as parameter in fit() function to normalize frames count, but obvioulsy as reference guide say: Now I found a workaround: I create an attribute(with attributeCreate node) with $NFRAMES as value and then I can access in the wrangle code snippet. It works but I don't like this method because: for now I have just a bunch of points and the memory footprint is relatively low but what if I crank up the value for thousands of points? if I'm not wrong, integer values are handled as C small int so 4bytes*100.000 points will increase the memory footprint( I know that are just of bunch of KB but I'm "obsessed" with time/space performance). There are some "clean" way of get global variables? Thanks in advance
×