DOP and Foreach

   7302   8   1
User Avatar
Member
13 posts
Joined: July 2006
Offline
Hi!

Is it possible to let this working together?

Idea is to create dynamic procedural chain. Foreach should create hinge constraint between 2 boxes on input.

Thank you!
User Avatar
Member
512 posts
Joined: July 2009
Offline
I want to refresh this thread a little by asking the question once again:

is there anything similar to the foreach SOP in DOP context ??

regards,

Manuel
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Staff
822 posts
Joined: July 2006
Offline
Look at the Apply Relationship DOP. In particular the Chain example that's referenced from its help card.
User Avatar
Member
512 posts
Joined: July 2009
Offline
hi Johner,

thx for the reply, i already stumbled over the apply relationship node and did some basic tests with it, i think the stamping function will make my intentions possible!

regards,

Manuel
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
is it possible to create variables inside the apply relationship node based on attributes that where created in the SOP context?

like when you highlight the RBDfracturedobject. go to the details view and click on geometry you see all the attributes that where imported.

So i want to create 3 variables that contain a vector's position x,y and z parameters.

I thought maybe an expression like this
variable1: point(“/obj/DOPNET:$OBJNAME/Geometry”, 0, “attributename”, 0)
variable2: point(“/obj/DOPNET:$OBJNAME/Geometry”, 0, “attributename”, 1)
variable3: point(“/obj/DOPNET:$OBJNAME/Geometry”, 0, “attributename”, 2)

but this only brings Houdini to crash :?
any ideas how to do this? is it possible in the first place?
or should i use an other method? i need to stamp these variables to get for each object a different RBDPinConstraint affector position!

regards,

Manuel
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
hi guys,

looks like i could need a little help here :?
I'm still trying to get those variables inside the apply relationship DOP node to work, at the moment i get a “bad parameter reference” error, although the point expression should be correct. What am i doing wrong ?

please have a look at my hipfile, i'm struggeling here )

regards,

Manuel

Attachments:
tubes_break_off_test.hipnc (200.8 KB)
bad_parameter_reference.jpg (222.1 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
realllllly ? 800 views and no answer ??? :shock:

I tried to solve this problem on my own, without luck.
Instead of an apply relationship node i tried a modify date node and created a variable “mypositionx” under objname/Position/Options.

As you can see in the file and also the image i attached, the expression is working, even if i call the expression with the echo command in the textport i get the right results.
Still - the modify date node has criss-cross yellow lines and says “bad parameter reference”.

this is really driving me nuts, what am i doing wrong ???
help would really be appreciated,

best regards,

Manuel

Attachments:
tubes_break_off_edit_02.hipnc (200.5 KB)
bad parameter reference 2.jpg (132.5 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
just wanted to push this topic to the top, it's kind of urgent :?
would be really nice to get an answer to this issue, please help me,
can't be that complicated right??
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
512 posts
Joined: July 2009
Offline
got a new update on this project,
to summarize everything:

I have some arrows hitting the ground. As they collide I create a procedural breakpoint for each arrow. In the foreach SOP I create also an attribute called “lowest_point” which is a vector describing $YMIN of each object.
Now my goal is it to create in DOP level a pinconstraint for EACH top arrow piece with the “lowest_point” coordinates as it's constrained location.

What workes is the constrained location for ONE arrow piece, the rest of the constraints go to the origin 0,0,0. That's not what I want,
each peace should get it's own constrained location.

Something must be wrong with my stamping variables, it would be REALLY AWESOME if one of the pros give me a hint what's wrong with my scene!

at least a little tip

:?

Attachments:
tubes_break_off_edit_03.hipnc (215.5 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
  • Quick Links