Search the Community
Showing results for tags 'global'.
-
Hi. I am trying to implement a function that will set "on parameter" to false, and set "opacity parameter" to 0 on a Octane light node, when it's display flag is turned off. I would like to implement it in "pythonrc.py" or another similar structure, to keep it global, instead of implementing it into the light asset, but what event function can I use to get calls whenever display flags are changed?
-
hello! I am trying to get a python Variable to be brought into Houdini under the "alias and Variables" windows. I was wondering if anyone else has solve this issue and would be able to assist [ cusompaths = test hou.hscript("setenv = $custompaths") hou.hscript("varchange $custompaths") ][/code] thanks josh
-
Where can i find every available global variable?? specifically i am looking for the number of points, i think its something like $NPT but i would like to have a list of every global variable so that i can search. its really difficult to find it, i only managed to find some about frames etc but nothing more. A link would be much appreciated
-
Hi, It seems that generally when animating objects in scene/object level, you are only able to animate variables globally. I have a scene with a spinning propeller, and this spinning propeller needs to rotate around its own axis, while being placed in a certain spot in the scene. How is this achieved? All transforms in the scene are global space, so if you need to rotate the object 30 degrees on the X axis, the Y axis will not follow the local transforms and the propeller will spin sideways in circles. Followup question: I briefly had a teacher from Lost Boys school of VFX and he showed me how to properly load animation data into a dopnet. Unfortunately I was just starting out with Houdini as he showed me, so I did not catch the method. I gathered that this should not be done in sop-level ('Use deforming geometry'), and rather with motion / 'RBD keyframe active' operators in the dopnet -- how do I load in my animation data, so the velocities are correct with proper interpolation? Thank you,
-
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!
-
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?
-
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...
-
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