Help with Wire sim and constraints

   4801   3   0
User Avatar
Member
52 posts
Joined: Jan. 2009
Offline
Hi All,

Hopefully someone can help - I'm trying to create a metal chain with a hook on the end. I have successfully managed to create the wire sim driving the chain geometry but i can't figure out how to attach the hook on the end.

It seems like a relatively simple thing to do - i have managed to attach the hook with a rivet, but while this worked with position, it didn't have any rotation inherited so it looked wrong.

Does the hook have to be a RBD object to simulate accurately with the movement of the wire sim?

If someone could point me in the right direction, that'd be a great help.



Regards

Banks.
User Avatar
Member
8507 posts
Joined: July 2007
Online
there is orient attribute on your simulated wire which can be used to orient your hook

you can do it in SOPs with copy sop which will automatically use that attribute to orient copied object

or if you want to use rivet you can create N and up attributes according to the orient attribute for desired anchor point
to do this you can either:

create point by Add sop
create N (0,0,1) and up (0,1,0) vector attributes with Point sop
then copy this point to desired anchor point from your sim
then use result in your rivet object with Use Point Vector Attributes For Rivet Frame checked

or if you are familiar with VOPs:

just after your dopimport create vopsop
in which you can create N and up vectors and orient them according to orient attribute directly
then feed this to rivet
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
512 posts
Joined: July 2009
Offline
hi Banks,

you also could use the RBD pin constraint, have a look at this thread:

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=17949 [sidefx.com]

regards,

Manu
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
52 posts
Joined: Jan. 2009
Offline
you can do it in SOPs with copy sop which will automatically use that attribute to orient copied object

The magical copy SOP - is there anything it can't do?

I used the copy SOP to copy the hook to the end point of my wire sim and it worked like a charm! Exactly what i was looking for. Many thanks Tamte for you super swift reply.

@Manu,

Thanks to the link to that thread - i have downloaded your linked file and will take a good look at it, thanks for your help.


Banks.
  • Quick Links