Hi! I want to be able to have handles for the points made by a scatter SOP so that I (or someone else) can tweak the positions of objects which are Copy-SOPed to them.
Can someone please tell me a way to do this procedurally? thanks
12++
procedural handles for scatter SOP points
3623 10 1- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
for having tons of points i cant really think of a way to make this usable. if youre going to have a more managable number of points, around 20 or so, you could set up a multi parm to control the transforms of a copy sop per copy, but a huge number of points and this would be useless.
its the same for any other system i can think of though. if theres few enough points for you to set up all the parameters by hand, you could just use groups and transforms and opinput() and name the first transorm p0, adn then copy and paste that little set up however many times you needed it, (houdini will up the number by 1 with each copy), and then highlight all of those nodes you just made and drag them into a merge, and then in the parameter editor you could select them all and drag them over quite easily.. but this is really not a very good solution at all.
if i had to do this i would have it not be procedural and use an edit sop. although there probobly is still a way i cant think of
its the same for any other system i can think of though. if theres few enough points for you to set up all the parameters by hand, you could just use groups and transforms and opinput() and name the first transorm p0, adn then copy and paste that little set up however many times you needed it, (houdini will up the number by 1 with each copy), and then highlight all of those nodes you just made and drag them into a merge, and then in the parameter editor you could select them all and drag them over quite easily.. but this is really not a very good solution at all.
if i had to do this i would have it not be procedural and use an edit sop. although there probobly is still a way i cant think of
.
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
It seems like maybe a foreach sop might work, but i have never used it before. I tried to put a transform in a foreach and set it to points and make the handles on the transform persistent….
but it didn't work.
but maybe i just set it up incorrectly.
I want to be able to give houdini an arbitrary 2D shape and have it be populated with trees (and rocks and other stuff, but we'll start with trees).
Then it would be nice to just be able to yank them around to a more precise positioning (if necessary) and have all those transforms be containined in some nice little thing so there aren't edit sops popping up all over the place.
It would also be nice if i could just make handles appear on command and not have to click on a little point to get a handle when what i'm trying to move is a tree in a forest of trees.
if ya'll have any ideas, that would be great. Otherwise I'll suffer little edit sops until i come up with a better idea.
12++
but it didn't work.
but maybe i just set it up incorrectly.
I want to be able to give houdini an arbitrary 2D shape and have it be populated with trees (and rocks and other stuff, but we'll start with trees).
Then it would be nice to just be able to yank them around to a more precise positioning (if necessary) and have all those transforms be containined in some nice little thing so there aren't edit sops popping up all over the place.
It would also be nice if i could just make handles appear on command and not have to click on a little point to get a handle when what i'm trying to move is a tree in a forest of trees.
if ya'll have any ideas, that would be great. Otherwise I'll suffer little edit sops until i come up with a better idea.
12++
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
afaik the foreach wont work because you cant go in and change the transforms one by one like youre thinking. as far as the edit sops go, you can just make one edit sop ahead of time to contain all of the transforms. just make sure it is selected and then do your point moving. then you wont get new ones being created.
.
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
you can merge all of them together into one node. then use pcopen in a vopsop to open that node as a point cloud. you can use the expression `opabsolute/path/to/node to tell houdini to cook that node as the pointcloud. then search for the two closest point and take the second one. then get the distance between that point and the current point. after that its the same as before
.
- twelveplusplus
- Member
- 194 posts
- Joined: Aug. 2011
- Offline
-
- Quick Links