Jump to content

Johan

Members
  • Content count

    8
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Johan

  • Rank
    Peon

Contact Methods

  • Website URL
    www.johanboekhoven.com

Personal Information

  • Name
    Johan Boekhoven
  • Location
    Netherlands
  1. TOPs, keep polling

    Ok, so I have found a solution, which I think could be improved upon. This setup keeps a heartbeat runnig for 30 seconds and each second you can generate new work_items. You can obviously change number of heartbeats and wait time. So this allows you to fetch live data form a database or folder for example and act accordingly. There's no logic for tracking what was processed, you need to build that yourself. But it's at least a way to keep houdini polling. Now in the file, I have also 2 python generators which I think would be the proper solution, but can't get to work. I'd love to know if there's anything better of more robust perhaps. Hope it helps someone and if you have feedback please let me know! PDG_while_loop_tests.hiplc
  2. TOPs, keep polling

    I'm trying to figure out if a TOP's/PDG network can be made to keep alive while waiting for data from a database. Basically I want something like a while loop in python that keeps the TOP network waiting for new items to appear in the data base and then start processing once a new work_item is available. Is TOPs/PDG even meant for such a thing? Thanks! -Johan
  3. Set values of a multiparm folder

    Found it, the magic bullet was multiParmInstances and insertMultiParmInstance p = obj.parm('folders') instances = p.multiParmInstances() for i in range(9): num_instances = p.evalAsInt() p.insertMultiParmInstance(num_instances) Adds 9 new entries to multiparm block. If you use the naming scheme on the parms like value_# each parm name will increment and you can set values on them like normal. obj.parm('value_'+str(i)).set(yourval) Or something similar. Cheers, -Johan
  4. Hi all, I have a hard time understanding how to programmatically add values to a multiparm folder. I want to add new items to a multiparm I added on my HDA. I can see all sorts of code for multiparm template groups and how to construct and add them to a node, but hardly any code that actually adds data to the multiparm. Any pointers are greatly appreciated! Thanks, -Johan
  5. Non overlapping UV's

    Hi all, I'm looking for a way to ensure I generate guaranteed non overlapping UV's. (Besides exploding it into all triangles and a huge mess). The resulting UV's don't need to be super great, the importance of fixing the non overlapping issue is key. flattenUV and unwrap and all tools I tried on my sometimes complex meshes produce overlapping artefacts. Thanks for any help!
  6. Embed Texture in FBX

    I've build a post-render script in the fbx ROP. I export the file as name_temp.fbx and the script takes the name and builds the processing string. I've used the autodesk fbx exporter that's freely available. Here's the code in my HDA pythonModule that I call in the script field. def convertFBX(exe, tempfile, finalfile): # FBX_CNVRT = 'C:\\Program Files\\Autodesk\\FBX\\FBX Converter\\2013.3\\bin\\FbxConverter.exe' if exe != '' and tempfile != '' and finalfile != '': #print(arg) subprocess.call([exe, tempfile, finalfile, '/e']) if os.path.isfile(tempfile): os.remove(tempfile) #with open('Z:\\projects\\T3D_Scanner\\01_settings\\houdini\\convertFBX.log', 'a') as f: # f.write('{} : {}\n'.format(datetime.datetime.utcnow(), arg)) # f.close() else: print('Not enough args, need old name and new name')
  7. CPU usage questions

    Hi Jason, Thanks for for your answer, that sound like that makes sense. I've just bought and build a threadripper system and so far I'm very happy with it, it's just that I'm not sure I bought the right RAM modules. I got a decent deal on a 3200Mhz/128Gb kit and from what I gathered on the internet it would work fine. And it does, the only weird thing is that when I disable the XMP profile on the motherboard/ram it goes to 2133Mhz and the performance differences are negligible in benchmarking. So I was looking at a sim and noticed the utilization of my cpu not being 100% in all sim cases, I was wondering is this mem kit bottlenecking my CPU. It's quite hard to find a definitive answer on this, but what you say does make a lot of sense for Houdini related performance. If you have anymore mem/cpu insights I highly appreciate them! Cheers, -Johan
  8. Hi all, If my processor is simming and all cores are used but they are not utilized 100% does that mean the processor is waiting for the RAM to be available? Might the ram be too slow to catch up or is that the wrong way of thinking about it? (There's enough free RAM left in this sim). I saw when I lowered separation I can get the CPU usage up to 100%, but at some loads it's not using it fully. Trying to understand if my RAM is too slow, or if it's something normal. Thanks! -Johan
×