POP GROUP rules
4385 5 0- SergeM
- Member
- 5 posts
- Joined: May 2010
- Offline
- Soothsayer
- Member
- 861 posts
- Joined: Oct. 2008
- Offline
Hmmmmm, is that all there is written?
We can use curly brackets to write multiline expressions. The following will, for example, group even numbered particles when typed into the Rule parameter of the group POP.
{
if($PT % 2 == 0){
return 1;
} else {
return 0;
}
}
Maybe it's part of a longer expression like that?
We can use curly brackets to write multiline expressions. The following will, for example, group even numbered particles when typed into the Rule parameter of the group POP.
{
if($PT % 2 == 0){
return 1;
} else {
return 0;
}
}
Maybe it's part of a longer expression like that?
--
Jobless
Jobless
- SergeM
- Member
- 5 posts
- Joined: May 2010
- Offline
This link http://forums.odforce.net/index.php?/topic/11658-flip-fluid-sand-girl/ [forums.odforce.net]
file fake_melt.hip
autodop\pop_network\popnet1\grp_y
In rule field 1==2 only
file fake_melt.hip
autodop\pop_network\popnet1\grp_y
In rule field 1==2 only
- Soothsayer
- Member
- 861 posts
- Joined: Oct. 2008
- Offline
- Soothsayer
- Member
- 861 posts
- Joined: Oct. 2008
- Offline
I looked a bit through that network. It appears that grp_y is an empty group, then populated in a voppop by choosing point numbers according to a rule, and then an attribute is set for the particles in the group.
I suppose the 1==2 is indeed to assure an empty group. I don't think it needs to be an expression. Perhaps previous versions did not evaluate properly if it was just set to 0, or perhaps there is a very subtle reason for this, but I think it is not needed.
Clever setup though.
I suppose the 1==2 is indeed to assure an empty group. I don't think it needs to be an expression. Perhaps previous versions did not evaluate properly if it was just set to 0, or perhaps there is a very subtle reason for this, but I think it is not needed.
Clever setup though.
--
Jobless
Jobless
- SergeM
- Member
- 5 posts
- Joined: May 2010
- Offline
-
- Quick Links