DOP and Foreach
7302 8 1- zanozza
- Member
- 13 posts
- Joined: July 2006
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- johner
- Staff
- 822 posts
- Joined: July 2006
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- asnowcappedromance
- 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
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
- asnowcappedromance
- 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
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
- asnowcappedromance
- 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
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
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- asnowcappedromance
- 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
:?
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
:?
-
- Quick Links