How do I manipulate a selection of point cloud points?

   2888   6   0
User Avatar
Member
10 posts
Joined: May 2016
Offline
I have imported a point cloud. Inside my point cloud node, I have made a selection (a subset of the points in the cloud). I would like to translate these selected points by a given amount.

Can anyone suggest how I might do this? I connected the point cloud output to a transform node, but the transform considers the whole cloud.
User Avatar
Member
24 posts
Joined: July 2014
Offline
If you make your selection into a group, you can tell the transform node to only transform that group.

You can make a group by selecting the points in the viewport, then while still hovering your mouse over the viewport press tab and select group from the menu.
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Try to group the selected points, and then specify the name of the new group in the transform nodes group field.

-b

EDIT: didn't see mart1jn's reply
http://www.racecar.no [www.racecar.no]
User Avatar
Member
8554 posts
Joined: July 2007
Offline
or maybe this can help
https://www.sidefx.com/index.php?option=com_content&task=view&id=3071&Itemid=404 [sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
10 posts
Joined: May 2016
Offline
Mart1jn, bonsak, thank you. That worked.

Tamte, the tutorial is useful. I must have missed it since it doesn't explicitly deal with point clouds. The technique is the same, though. Thanks
User Avatar
Member
10 posts
Joined: May 2016
Offline
I have a followup question. How do I then manipulate the selected points in a vex node?

I have created a group from my selected points, and input that to a vex node. For testing the vex node simply translates the points obtained from the global variables ‘P’ variable.

This configuration not only translates the selected points, but also the non-selected points. Can anyone tell me what is wrong, and why my vex node is applying it's change to all data instead of only the selected points?
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
The VEX node also has a group field. Enter the name of your new group there and the VEX node will only operate on the points in that group. Another way would be to use an if statement in the VEX node to test if the incoming point is a member of the group or not. Group membership is just an attribute set to either 0 or 1. Take a look in your geometry spreadsheet.

-b
http://www.racecar.no [www.racecar.no]
  • Quick Links