Jump to content

Search the Community

Showing results for tags 'scripting scale fracture'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
  • 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 1 result

  1. Quick scripting question...

    Hi guys, I couldnt figure out something, need your help. So I want to pre scale individual primitives with foreach sop before generating the voronoi fracturing (it is a wood mesh). The classic work flow, scale it down so can get the splinter look when you scale it back after the fracturing. So I just want to make sure I control pre scale the each individual piece by their longest side. Thats kinda it, I ve been trying to do it with vopsop and attrwrangle but I just couldnt make it work correctly. I would much appreciate some help. Thanks! I was going for this kinda solution. Change the name of the string that I might use to scale, and compare the each axis with each other.. but again if you guys know a better way, Im ready to learn. s@mysizeName = "X"; if ( v@sizeAttr.z > v@sizeAttr.x ||v@sizeAttr.z >v@sizeAttr.y) s@mysizeName = "Z"; else s@mysizeName = s@mysizeName; if (v@sizeAttr.x >v@sizeAttr.y ||v@sizeAttr.x >v@sizeAttr.z) s@mysizeName = "X"; else s@mysizeName = s@mysizeName; if (v@sizeAttr.y >v@sizeAttr.x ||v@sizeAttr.y >v@sizeAttr.z) s@mysizeName = "Y"; else s@mysizeName = s@mysizeName;
×