Polywire random withs?

   14791   10   4
User Avatar
Member
30 posts
Joined: Oct. 2009
Offline
Hi

Messing with wire solver to get a wild vortex of lines. Im using copy stamp to alter the length of the lines but after applying a polywire or wireframe is there a way to apply a random wire radius to multiple wires?

So in short, copy stamp the radius of wires after they've been simulated?
mpejak
User Avatar
Member
696 posts
Joined: March 2009
Offline
Hi,

You can create a $WIDTH attribute to your points, randomize it on a per-wire basis and then connect the merged wires to a polywire SOP with $WIDTH for radius.

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
339 posts
Joined: Aug. 2007
Offline
You can use an AttribCreate to create a Primitive Integer which stores $PR, then use a AttribPromote to change it from Prim to Point class. The Polywire has access to Point class attributes so now that the primitive number is stored on your points you can randomize based on this.
Jesse Erickson
Fx Animator
WDAS
User Avatar
Member
30 posts
Joined: Oct. 2009
Offline
Thank you for your responses

ok so i tried both methods, with promoting the attributes i was getting weird extrusions, along with massive inconsistencies with the entire shape.

for just adding the $WIDTH attribute, it looked like i was getting variations but, each wire would taper in and out of it self, how could i fix that?

I also tried using wireframe for this method and it does not accept $WIDTH, why is that?

Attachments:
wireproblem.jpg (109.7 KB)

mpejak
User Avatar
Member
696 posts
Joined: March 2009
Offline
Can you post a scene with some of those wires? One static frame would be enough.

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
30 posts
Joined: Oct. 2009
Offline
here you go

Attachments:
wire_help.zip (319.6 KB)

mpejak
User Avatar
Member
339 posts
Joined: Aug. 2007
Offline
Here's the correct setup for randomizing based on primitive number.

Attachments:
abstract_wire_forum.hip (252.8 KB)

Jesse Erickson
Fx Animator
WDAS
User Avatar
Member
696 posts
Joined: March 2009
Offline
in your rand() expression, use $PR, instead of $PT. the first will return a different value per wire, and the second will return a different value per point of the wire, hence the ins and outs of the extrusion.
Unfortunately $PR is only accessible from a primitive context, so I had to do a little hack here, check the attached file.

Cheers

Attachments:
abstract_wire_forum.hipnc (306.2 KB)

Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
696 posts
Joined: March 2009
Offline
Guess you get two options afterall!
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
30 posts
Joined: Oct. 2009
Offline
OOOOHHHH OK!

wow thank you so much! both of you!
mpejak
User Avatar
Member
30 posts
Joined: Oct. 2009
Offline
yeh no kidding!
mpejak
  • Quick Links