delete point from point cloud

Discussions about SOFTIMAGEs© Interactive Creative Environment©
clankill3r
Posts: 131
Joined: 21 Oct 2012, 13:36

delete point from point cloud

Post by clankill3r » 27 Jan 2013, 21:24

I try to delete every point from a pointcloud that has a odd id.
Why do i get a error about a reference?

Image

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 14:00

Re: delete point from point cloud

Post by TwinSnakes007 » 27 Jan 2013, 21:31

Replace the "pointcloud.ID" node with a "Get Point ID" node.

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 12:49
Location: London, UK

Re: delete point from point cloud

Post by Tekano » 27 Jan 2013, 21:36

almost there Clankiller, just disconnect the In name on the delete point, you are already filtering that set of points by modulo you do not need the name as well
Gossip is what no one claims to like, but everybody enjoys.

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 09:02
Location: Montreal Canada

Re: delete point from point cloud

Post by xsisupport » 28 Jan 2013, 11:30

Also, the In Name on Delete Point is for the name of a point cloud (not the name of PointCloud.ID).
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

clankill3r
Posts: 131
Joined: 21 Oct 2012, 13:36

Re: delete point from point cloud

Post by clankill3r » 29 Jan 2013, 16:30

thanks guys, got it working.
I also deleted the if node.

clankill3r
Posts: 131
Joined: 21 Oct 2012, 13:36

Re: delete point from point cloud

Post by clankill3r » 29 Jan 2013, 19:26

one more,

how can i remove points that match a certain id?
Image

User avatar
nixx
Posts: 42
Joined: 09 Jun 2009, 18:25

Re: delete point from point cloud

Post by nixx » 29 Jan 2013, 20:18

clankill3r wrote:one more,

how can i remove points that match a certain id?
What you have now gives you an array of results for the specific point id compared against every one of the array members. That's why the output is an array of booleans.
Use "Find in Array" instead of the "equal to" comparison operator. That way, if the point id is "found in the array", the node will return "true" -> point will be deleted.
I 'm child, and man, and child again; the boy never gets older.

my Vimeo

angelous4x
Posts: 133
Joined: 06 Nov 2011, 04:24
Location: new York

Re: delete point from point cloud

Post by angelous4x » 29 Jan 2013, 20:35

one other thing is just use the filter particle ID, it looks for the ID you type in. then get a string to array node, and paste all the particles you want to delete and there you go.

clankill3r
Posts: 131
Joined: 21 Oct 2012, 13:36

Re: delete point from point cloud

Post by clankill3r » 30 Jan 2013, 11:39

thanks