I am trying to understand the difference and relation between wrangle and snippet.
I have 1000 points at {0,0,0} and I want to organize them in cube shape (10x10x10).
I wrote this code in point wrangle SOp:
int i, j, k;
i=0;
j=0;
k=0;
for ( k; k<11; k++){
for ( j; j<11; j++){
for ( i; i<11; i++){
@P.z = @ptnum%10;
}
@P.x = (@ptnum/10)%10;
}
@P.y
@ptnum/100)%10; }
It works as excepted even If I assume it should better way to do this.
When I paste it to a Snippet VOP inside an Attribute VOP, it gives me an error if the Global Parameters node is present :
Read only expression for read/write parameter. (1,35)
When I erase the Gobal Parameters node, the error disappear but the code doesn't seems to do anything ( all points remains at {0,0,0}).
I don't understand this behavior inside the snippet in my VOP.
I would like to make my snippet to work exactly like the wrangle. How can I do that ?
Thanks for your help,
Vincent
PS : well … I just see the smiley.
I add space in the code and it works




