I have an animated chain (falling getting caught and falling again) but wondering how to effect the weight of the points on the chain ?
Im wanting one end to be heavier so that it falls faster.
Lyonz
A point weight node
5392 8 0- Lyonz
- Member
- 114 posts
- Joined: Oct. 2009
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Offline
i suppose you are talking about wire DOPs
then you can look in help for supported attributes
http://www.sidefx.com/docs/houdini10.0/nodes/dop/wireobject [sidefx.com]
you can see mass is one of them (or density too)
so simply create float attribute named “mass” with different values per point on source SOP geometry
then you can look in help for supported attributes
http://www.sidefx.com/docs/houdini10.0/nodes/dop/wireobject [sidefx.com]
you can see mass is one of them (or density too)
so simply create float attribute named “mass” with different values per point on source SOP geometry
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Lyonz
- Member
- 114 posts
- Joined: Oct. 2009
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Offline
- Lyonz
- Member
- 114 posts
- Joined: Oct. 2009
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Offline
if you are creating for example attribute called “density” with attribcreate SOP
then
in name write: density
class: Point
Type: Float
size: 1
and your expression goes to first Value field
if you want first point to have value of 5 and the rest 1 then you can write something similar to your expression:
if($PT<1,5,1)
but if you are not into expression right now you may choose other methods i described above like Paint SOP or directly editing in spreadsheet
then
in name write: density
class: Point
Type: Float
size: 1
and your expression goes to first Value field
if you want first point to have value of 5 and the rest 1 then you can write something similar to your expression:
if($PT<1,5,1)
but if you are not into expression right now you may choose other methods i described above like Paint SOP or directly editing in spreadsheet
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Lyonz
- Member
- 114 posts
- Joined: Oct. 2009
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Offline
you need to name that attribute according to attributes in help page i posted before
the idea behind this is that if Wire Object/Solver finds certain attribute on the source geometry, it will use that to override/multiply one of it's parameters
so if it finds float attribute called “mass” it will override mass parameter on wire object per point. if it finds density it'll multiply that attribute value with density parameter on wire object
the same for other mentioned attributes(angvel, orient, width, klinear, …)
you called yours attribute WEIGHT so it'll do nothing since it'll not be recognized by wire object
here is modified file
i also simplified chain_Thickness network, and added some Drag and increased stiffness on wire object
and it's not a good idea to crosspost, especially in case where you already have a live thread with the same topc
od-force and sidefx forums are usually read by the same people so it is easier to follow if the topic is discussed only in one of them rather than split in two
the idea behind this is that if Wire Object/Solver finds certain attribute on the source geometry, it will use that to override/multiply one of it's parameters
so if it finds float attribute called “mass” it will override mass parameter on wire object per point. if it finds density it'll multiply that attribute value with density parameter on wire object
the same for other mentioned attributes(angvel, orient, width, klinear, …)
you called yours attribute WEIGHT so it'll do nothing since it'll not be recognized by wire object
here is modified file
i also simplified chain_Thickness network, and added some Drag and increased stiffness on wire object
and it's not a good idea to crosspost, especially in case where you already have a live thread with the same topc
od-force and sidefx forums are usually read by the same people so it is easier to follow if the topic is discussed only in one of them rather than split in two
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Lyonz
- Member
- 114 posts
- Joined: Oct. 2009
- Offline
-
- Quick Links