Jump to content

Search the Community

Showing results for tags 'filecache'.



More search options

  • 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
    • 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 6 results

  1. Python - Callbacks help

    Hey Guys, Still quite new to Python, hoping someone can help point me in the right direction on this that I've been grappling with for a while now. I have a simple filecache .hda that I'd like to change color if it can/can't find the cache on disk. I've been able to use hou.ui.addEventLoopCallback() to continuously track and check the file parameter to see if the cache exists, and the color changing now works as expected. Where I'm having trouble is removing the event loop when the .hda is deleted from the node graph. An error pops up because Houdini is still trying to access the deleted node. I've been trying to look for a way to use the OnDeleted event handler, or hou.nodeEventType.BeingDeleted, but no luck yet and I feel out of my depth with my limited python experience. The .hda is attached, and there's a preview of the code below. Any help would be appreciated! custom_filecache.hda ####PythonModule#### import os import hou def nodeColor(kwargs): node = kwargs["node"] def colorCallback(): filepath = node.evalParm("file") if(os.path.exists(filepath)): node.setColor(hou.Color((0.0, 0.8, 0.0))) node.setComment(filepath) node.setGenericFlag(hou.nodeFlag.DisplayComment,True) else: node.setColor(hou.Color((0.8, 0.0, 0.0))) node.setComment("File not found") node.setGenericFlag(hou.nodeFlag.DisplayComment,True) startCallback(colorCallback) #adding this code below crashes Houdini when hda is deleted #node.addEventCallback([hou.nodeEventType.BeingDeleted], endCallback(colorCallback)) def startCallback(callback): hou.ui.addEventLoopCallback(callback) def endCallback(callback): hou.ui.removeEventLoopCallback(callback) ####OnCreated#### kwargs["node"].hdaModule().nodeColor(kwargs)
  2. mm Quick Path Save Presets

    Hi there, I want share for free my presets for: Filecache Sops DOP I/O Sops ROP Geometry Sops ROP Alembic Sops ROP FBX Sops Included a litte PDF (english and italian language) with a small description. Why I create it? Because I'm "lazy" and I want save time when I should save my cache of sim and for a "quickly input" I create a simple strings where you can put inside some value/name and create for you a final string with the path where you want save. When use it? When you want save time and you "haven't time"... It's free, but a little donation is grateful Gumroad - https://gum.co/KScZC Cubebrush - http://cbr.sh/ex87j1 Have a nice day Matteo
  3. Hello everyone, I have a setup where I need to cache different bgeos along the way. For this I set up various file cache nodes (collider volume -> flip sim -> flip vdbs -> whitewatersource -> whitewatersim). I'm wondering if there is any way to run this multiple file cache nodes in an orderly fashion? Cheers, Diogo
  4. I made this HDA to streamline the process of versioning caches. It will automatically produce a file path and file name for your cache, and load it back in once it is exported. You can flip through different versions easily by using the version slider, or using the 'Create File Node for This Version' button and wiring the file nodes up to a switch node. You can write detail attribute strings to store notes about the cache such as simulation parameters - very useful when referring back to old sim caches. At the moment this is a non-commercial HDA. Download link down this page beneath the video. Get at me with thoughts, comments, questions etc. SOP_MI_version_filecache.hda
  5. I have a large number of wedges, but I used the wedge to simulate different section of one large simulation. Now I need to read them all in and merge them into a single geo. I have 82 wedges, is there a way to bring them in without having to use 82 filecache nodes? I tried to run a loop and collect all the files, I used the iteration detail attribute in place of the wedge to cont the numebr of times the filecache should loop, it doesn't work. i might be missing something, please enlighten me.
  6. I have multiple simulation output feeding into a switch node, and multiple filecahes on the output of it. I want filecache nodes to be generated based on the number of inputs connected to switch. I am looking for a way to make the switch connect to a specific filecache node depending on the input switch selects and be able to save all the filecaches in one go, instead of me having to do it manually.
×