Jump to content

catchyid

Members
  • Content count

    495
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by catchyid

  1. lava flow question

    hi, i need to fill a street with lava that is moving in one direction (plz see attached). To make the lava flow across the road and given the street is level, how should I do that? One solution is to adjust particles velocity in each frame (i.e. blend v such that on each frame 10% desired velocity, 90% existing velocity), would that work? if not, any other idea? I thought making the floor inclined or changing the gravity direction, but that would cause possible issues .... thx
  2. Hi, I am using Script solver inside a DOP RBD bullet sim, I was able to change velocities of individual RBD packed objects, however I don't know how to access/modify constraints network parameters (e.g strength, add/remove broken group, etc.)? The constraint network in defined globally "Relationships" subdata (i.e. not attached to each object), below is the code I am trying to write : from __future__ import with_statement def solveForObjects( solver_data, new_dop_objects, existing_dop_objects, time, timestep): dopsim = solver_data.simulation() relationships = dopsim.findRelationship("constraintnetwork1") constraintsnetwork = relationships.findSubData("constraintnetwork") # geometry lives inside 'constraintnetwork' subdata geo = constraintsnetwork.findSubData("Geometry") #that works, but it's not a hou.Geometry that can be edited! with constraintsnetwork.editableGeometry() as geo: #error: AttributeError: 'DopData' object has no attribute 'editableGeometry #.... do something here
  3. vex pretanslate question

    Hi, assuming: //xform is 4x4 matix //pivot is a 3D point then does pretranslate(xform, pivot) mean logically : move to -pivot, rotate, then move to +pivot, in terms of eq, should be look like this: Tr(-pivot) * xform * Tr(pivot), where Tr is a translation matrix? Thx
  4. Robust solution for RBD Fracture???

    just an update : I've tested all possible ideas mentioned above, it's seems to me a bug in the tool itself (or at least the implementation is not robust enough)...I could not find a bullet-proof solution, for each pieces, i've tried different methods (different seeds, different number of fraction points, always break per piece, pre-cut mesh with boolean fracture using simple planes, etc)...it worked finally for most pieces but again, it's a random process...
  5. Robust solution for RBD Fracture???

    Houdini 17.5 Hi, I am using RBD material fracture to break a building (it breaks floor by floor, elements by elements, so it would be a simple as possible to the fracture node!), however when I turn on "Edge Details", I get the cutting planes in the output geometry!! I've tried to play with attributes like Noise Height/Size, however it's like a random process, one keep trying until "some" values will work. My question: Is there any solid/robust solution to add details to RBD pieces?
  6. Hi, I have bullet sim, have static object, am connecting it to static solver...is there any use for adding this static solver? either way, the static object will collide with other dynamic objects? thx
  7. How to force a hython script to run

    an update if someone is having the same issue --> hou.time() makes code frame dependent so it will cook on each frame (even no input has changed) which fixes the problem
  8. Hi, I am loading assets using a python script node (see image). The assets are being cached on the farm and the first time the script runs, most probably, the cache would be empty hence the python code loads nothing (makes sense), after a while the cache gets created, HOWEVER, the script python node does not re-run and gives the previous cached result (which is empty cache) --> so, to force manual reevaluation of the code, I just go inside the script, add a space or do any modification and rerun the code and the now the cache gets loaded! Any ideas how to designate that this python script should be always run and not use the previous cached result? I am also open for a better approach if it exists cheers
  9. Hi, Is it possible in hython to load content of xyz.bgo.sc into houdini without using 'file' node? I need to load many geometry files to process them, I know i can use SOP for-loop with 'file' node and merge result, but I am wondering if it's possible to do that completely in hython? Thx
  10. how to load .bgo.sc without creating file node?

    I think i found the solution on another question: node = hou.pwd() geo = node.geometry() geo1 = hou.Geometry() geo1.loadFromFile('$HIP/geo/geo1.obj') geo2 = hou.Geometry() geo2.loadFromFile('$HIP/geo/geo2.obj') geo.merge(geo1) geo.merge(geo2)
  11. How to change HDA asset name?

    yup, it was easier than I thought thx
  12. How to change HDA asset name?

    Hi, I've created an HDA, gave it name "A", then after a while I realize "A" is not representative, so I need to change the name to "B"? So far I recreate a new asset and set the name to "B", but I am sure there is an easier way. Plz see attached image. Note I can change asset label and path as seen in the second image... Thx
  13. how to capture what is cooking while saving file?

    Thaanks Atom, super late I know... We have our own Farm so using TOPS would not be possible...I tried ALFRED and it spits out frame number but no details on what is being cooked now (e.g. pressure solve, advect, ...) ... If I use pre-render and post-render it will be able to know only frame number which is the same as ALFERD...anyways, sideFX "should" provide more APIs to do that...once more, thx for your ideas
  14. hi, Let's say you have a pyro sim, and you use file cache to save result. If an artist presses on "Save to Disk", he will get updates on what is cooking now (this way, he knows if one step is too heavy or at least which frame is being processed now) -- See blow: "it's solving GAS_Advect and on frame 42" Question: we do sims on the farm in batch mode (i.e. houdini engine) using a python script that emulates press button, e.g. node.parm('execute').pressButton(), and my goal is to capture the status bar or window status text (to store it as log), however, and I am not sure how to do that, any ideas? Thx
  15. how to capture what is cooking while saving file?

    just an update if someone is interested : no feature so far to do so in HOM, RFE 36966 has been logged by SideFX to support this function thx
  16. hi, I know it's possible to up res pyro (and maybe flip) simulation, and I am wondering if someone has used them? to be more specific: for super huge pyro sim, one could clusters, slices,...but i am thinking, up-res might also work...Is it worth investigation or it's not that useful? thx,
  17. create ROP OTL that accepts any # of input?

    okay, answer is simple, just when creating the asset, need to set max number of input to 999...
  18. Hi, In ROP context, I need to create an OTL that accepts any number of input connections? similiar to ROP fetch node? I tried to convert a ROP null to subnetwork then to OTL but the number of inputs must be chosen from 1 to 10 (plz see attached). Thx
  19. hi, I have a digital asset that has menu A and menu B --> I use "Menu Script" to generate dynamically the contents of each menu, however I have this dependency : Menu B contents depend on A (so if user changes menu A selection, menu B needs to dynamically regenerate itself). Currently the only way to "refresh" menu B when A is changed is to manually select Menu B which calls its "Menu Script" (counter-intuitive for end user!). So my question : is there a way to force Menu B to run its "Menu Script" when Menu A is changed?
  20. how to update a menu items (not using menu script)

    Thank you guys I've tested calling back the menu pressButton() function and does is exactly what I want I have not tested the first solution bc my knowledge with hou.ui is limited... Once more, thank you guys for your help
  21. how to update a menu items (not using menu script)

    B only gets update when I click on it (to display its items). So if A changes, B won't until I click on B
  22. how to run a bash command and show result to user?

    what can I say , thank you is not enough , really appreciate your help thx
  23. hi, houdini 17.5, linux, python 2.7 (the version that ships with houdini :)) i want to launch a hython script in a shell (e.g. xterm) and show its progress to end user (basically, I need to show to artist the progress of this script, also, I want this xterm to be independent of houdini, meaning, if the user shuts down houdini, i want xterm to be running and finishe the job). I am new to python, so I checked quickly and found a way to use subprocess.Popen(['xterm'],stdout=PIPE,stderr=PIPE) which starts a shell, but could not find anyway to send the command (e.g. my hython script) to the shell (tried process.communicate, ...but nothing worked!) I am thinking, maybe there is another ready to use gui/API in houdini to allow that? note: i don't want to use "run in the background" in file cache node because I need to run a script, plus i might run multiple instances of the same script (each one is doing processing different part of the hip file, it's all done on the fly, so I don't even know how many file cache node I need) Thx
  24. hda to get called back when hip file saved?

    thaaaaaaaaaaaanks Drew
  25. hi, I am developing an hda, and some of its parameters need to update themselves when the file is saved (e.g. if the user changes the file name, then i need to run a code in hda to update some paths accordingly). I found some event handlers (e.g. on Created, On Loaded, ...), but could not find a handler such as (On File Saved?) ... thx,
×