Jump to content
  1. General

    1. 26.4k
      posts
    2. 2.1k
      posts
    3. 1.6k
      posts
    4. Marketplace

      For all commercial tools, HDA's etc.

      429
      posts
  2. Houdini

    1. 65.6k
      posts
    2. 49k
      posts
    3. 12.3k
      posts
    4. 5k
      posts
    5. 15.2k
      posts
    6. 1.1k
      posts
    7. 697
      posts
    8. 691
      posts
  3. Coders Corner

    1. 6.3k
      posts
    2. 13.2k
      posts
    3. 4.8k
      posts
  4. Art and Challenges

    1. 3.5k
      posts
    2. 9.8k
      posts
    3. 572
      posts
    4. Effects Challenge Archive

      This is where the cool unofficial challenges live on!

      297
      posts
  5. Systems and Other Applications

    1. Other 3d Packages

      Maya,XSI,Blender,etc

      1.6k
      posts
    2. 1.5k
      posts
    3. Hardware

      Graphics cards etc.

      2.1k
      posts
    4. 422
      posts
  6. od|force

    1. 1.5k
      posts
  • Posts

    • maybe it can be useful @racdew  example_bakeAnimation(1).hipnc
    • In solaris I have a material library with materials that match the name property of each primitive mesh in the scene graph. I can use use the material assignment node to assign one material to one primative. This works and in the scene graph you can see the material binding. see attached image below: However I want to do this with a wrangle and assign all materals to matching prims. in a wrangle : string name = usd_name(0, s@primpath); string mats = "/materials/"+name; usd_addrelationshiptarget(0, s@primpath, "material:binding", mats); as shown in this tutorial in the scene graph it looks like it has assigned the material relationship but the materail doen't show up in the viewport.    If there is an obvious mistake or if there is a beter way to assign all materials with the same names as prims in solaris please let me know.  Thanks you for  your attention.    
    • There is no simple solution to this. First of all where you need keys on obj level or inside geo sop? If on obj level you need to create geo sop per each piece, extract transforms and apply to geo sop and put pies to origin than bake animation with python script. if in geo sop you can just bake with python script. this is example script for bake camera you need to modify it: import hou selectedNode = hou.selectedNodes()[0] bakingNode = hou.node('/obj').createNode('cam', selectedNode.name() + '_bake') hou.setFrame(int(hou.playbar.playbackRange()[0])) for f in range(int(hou.playbar.playbackRange()[0]), int(hou.playbar.playbackRange()[1])+1): hou.setFrame(f) bakingNode.setWorldTransform(selectedNode.worldTransform()) bakingNode.parm("tx").setKeyframe(hou.Keyframe(bakingNode.parm("tx").eval())) bakingNode.parm("ty").setKeyframe(hou.Keyframe(bakingNode.parm("ty").eval())) bakingNode.parm("tz").setKeyframe(hou.Keyframe(bakingNode.parm("tz").eval())) bakingNode.parm("rx").setKeyframe(hou.Keyframe(bakingNode.parm("rx").eval())) bakingNode.parm("ry").setKeyframe(hou.Keyframe(bakingNode.parm("ry").eval())) bakingNode.parm("rz").setKeyframe(hou.Keyframe(bakingNode.parm("rz").eval())) bakingNode.parm('focal').setKeyframe(hou.Keyframe(selectedNode.parm('focal').eval())) bakingNode.parm('aperture').setKeyframe(hou.Keyframe(selectedNode.parm('aperture').eval())) bakingNode.parm('near').setKeyframe(hou.Keyframe(selectedNode.parm('near').eval())) bakingNode.parm('far').setKeyframe(hou.Keyframe(selectedNode.parm('far').eval())) bakingNode.parm('resx').setKeyframe(hou.Keyframe(selectedNode.parm('resx').eval())) bakingNode.parm('resy').setKeyframe(hou.Keyframe(selectedNode.parm('resy').eval())) bakingNode.parm('winsizex').setKeyframe(hou.Keyframe(selectedNode.parm('winsizex').eval())) bakingNode.parm('winsizey').setKeyframe(hou.Keyframe(selectedNode.parm('winsizey').eval())) bakingNode.parm('shutter').setKeyframe(hou.Keyframe(selectedNode.parm('shutter').eval())) bakingNode.parm('aspect').setKeyframe(hou.Keyframe(selectedNode.parm('aspect').eval()))  
    • Can you tell me which nodes are responsible for this? Or at least a similar tutorial if you have one, because I have not found anything similar for my situation(
    • There is no keys in simulation and you cant get them with export. If you need keys per each piece you can bake them after simulation and export baked geometry
  • Topics

×
×
  • Create New...