ForEach and Rop Output Driver Problem

   2590   4   1
User Avatar
Member
24 posts
Joined: Dec. 2013
Offline
I've got a problem, that I do not understand.

I've got points. I calculate v_length of those points with forEach. Then I do magic trick to delete them based on some values.

And now funny part: if I write them with Rop Output Driver, it writes out… points before magic trick. It also does NOT write attrib @v_length (despite it does write other @xxxxx test value).

I'm little confused why and where am I doing mistake.

Tried earlier versions of Houdini, most current one: same behavior.


Minor things:

1. No I cannot delete point on pop level. Pop in file is just to create points.

2. fluidsource is there because that is a cause and purpose of whole thing. I cannot write out volume from it with foreach operation.




Any tips and help most appreciated.

Attachments:
test_rop.hipnc (341.9 KB)

User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Hi
I'm not sure if your supposed to be able to pass point attributes into a Fluid Source directly like that. Correct me if i'm wrong.

This might have to do with resolution but your attribute wranglers #1 an #2 are not catching anything:
if (@xxxxxxxx > .23) {
i@tooslow = 1;
s@_debug = “too_slow”;
}
else {
s@_debug = “pass”;
}
if ( @tooslow == 1) {
removepoint (0, @ptnum) ;
s@_debug = “remove”;
}
I tried this code and “s@_debug” is always set to “pass” for all points.

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
24 posts
Joined: Dec. 2013
Offline
Thing is, that you can bypass fluid source, and export just the points - effect is the same.

And yes, you can (this it tutorial-follow-up, just he does not deletes points like I have to).

I also delete all attributes, just in case that fluid source is making some error with custom attribs.


if (@xxxxxxxx > .23) {
i@tooslow = 1;
s@_debug = “too_slow”;
}
else {
s@_debug = “pass”;
}
if ( @tooslow == 1) {
s@_debug = “remove”;
}
removepoint (0, @ptnum) ;

This prevents you to see “remove” points. Because they are gone

Attachments:
rop_error.png (50.3 KB)

User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Ok. I see how the if tests are evaluated if i use printf instead
As to your other problems, i don't know.

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
24 posts
Joined: Dec. 2013
Offline
Well… in conclusion: nevermind. I had to use foreach on points in previous system… had some problem with calculating length of all points, not individual ones. Was surprised then, but it only worked with foreach.

Now I've checked pointvop and it's doing it's thing without foreach loop.

Aha… this is where my stupidity shines: add attrib in attribvop gives me probably average of all points, bind export gets me per point values. I don't understand why for now, but will get there someday. Probably it just creates attrib with some default value, not per-point attrib.


Case closed. Slap in the ass earned.
  • Quick Links