so basic, so complicated ???????

   7730   14   3
User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
i just wanna snap the points from one group to the points of another.
i figured i could easely do this with a Fuse sop but it takes the position inbetween you can't specifie witch group you want to fuse 2.
User Avatar
Member
124 posts
Joined: July 2005
Offline
Have you tried the Ray SOP? Not sure exactly what you are trying to do but it might work for you.
User Avatar
Member
519 posts
Joined:
Offline
If you want the points in the first group to take the positions of the points in the second group you can use the Point sop and wire in the two groups then use $TX2,$TY2,$TZ2 in the position field…but as Stanley said, not sure what you are trying to do…
User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
i have got one group with points and another group.

basicly what i did was used a nearpoint() expression to find the nearest points of a object from another object.

now what i wanna do is i wanna take that nearest point and snap it to the point i used to find the nearest point

so basicly i just wanna snap the nearest point to the point.

i tryd using the fuse sop but it only consolates points.
the ray sop ray's just points to a surface not points to points.

the geomatry's are difrend from eachoter so i cant stick it in a point sop.
:cry: :cry: :cry: :cry:


hope that explains my problem. :shock:
User Avatar
Member
2199 posts
Joined: July 2005
Online
fuse sop does have an option to snap and not consolidate, does that help?
The trick is finding just the right hammer for every screw
User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
it still snaps the points to the center of those 2 points.

no i want to snap 1 point to another.

i basicly want to make one point inherit the other points location.
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Go to the Snap > Distance folder.
Snap Type can be Average Value, Least Point Number or Greatest Point Number.
Choose one of the latter two options to snap to the lower point number or the greater point number.

If you use always use the Fuse SOP in this way, you can save this as a permanent default. To do that, set up the Fuse SOP the way you want with the appropriate parameter settings, clear the group field then using the Gear in the parameters for this node, select the option: “Save As Permanent Defaults”. There are other options in the gear menu that should be self-evident. Another way is to create a new tool and call it say fuse_snap with your favourite parms set accordingly.

The answer is right there on the node parm interface. Most SOPs can work in many different ways. Also refer to the operator Help.
There's at least one school like the old school!
User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
this is still not what i'm after.

this is what the fuse sop is doing

Snaps both points “.” to the center
.–>.<–.

what i wanna do is snap point A to point B

. –>.

srry for this maby i'm just realy bad at explaining.
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Go to the Snap > Distance folder.
Snap Type can be Average Value, Least Point Number or Greatest Point Number.
Choose one of the latter two options to snap to the lower point number or the greater point number.
As I wrote above, choose either lower point number or greater point number to snap to either A or B.
There's at least one school like the old school!
User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
wel that still dosn't work because i wanna snap object A to Object B
and object A is also snapping to itself.
User Avatar
Member
509 posts
Joined: July 2005
Offline
attribute transfer?

cant try it right now but… just out of my mind…

create an attribute on group A which contains P …
attribute transfer with sample count to “1” … distance threshold to whatever you need… to group B …
give $ATTR ( vector) values to P to group B …

if point counts is the same.. should work somehow.. if it isnt.. just use a FuseSOP afterward…

just an idea.. might be totally useless though.

cheers
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
If the points along the shared edge are closer together than the points on the other edge, then yes you will get points fusing along each shared edge as you increase the distance.

What you may want to try is PolyStitch. It is used to snap edges together. All you need to supply are the corner points of the two edges you wish to snap together. The first corner point found is the surface that won't move. The other edge will snap to this edge.
There are options to consolidate the points as well.

Then there is the Point SOP as explained earlier.
There's at least one school like the old school!
User Avatar
Member
80 posts
Joined: July 2005
Offline
There's many ways to skin a cat… but that's gross, so I use expressions instead:

You're already using the nearpoint expression… just take it one step further:

Append a point sop to the points that you want to move (snap). In this example, the object that the points should snap to is called ‘goal’.

Position: point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,0)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,1)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,2)

nearpoint finds the closest point, and the point expression finds the position of that point and applies it to the current point being processed.

-z

Attachments:
dancing_cube.hipnc (100.3 KB)

User Avatar
Member
58 posts
Joined: Sept. 2007
Offline
thank you anakin78z that did the tric !!

now if i may, one more question ???

i'm tryng to now optimize a surface using dissolve.
i wanna disolve surtan points that have a atribute with the value 1.
i dont wan't to dissovle the points that have a value of 0.

here comes the tricky part:

i want to do this operation on a per-point basis and not for all the points at the same time because, if do this operation on all the points at the same time it wil first delete the points then calculates a new surface.

what i wanna do is delete a point calculate the surface and then move to the next point.

this way i hopefully can optimize the mesh keeping the surface intact.

(few, that was a hell lot easy'r to explain than the find nearest points, inhearit position thing.)
User Avatar
Member
12500 posts
Joined: July 2005
Online
You might be able to find a solution if you use the ForEach SOP stuff - where you can iterate over your geometry at your own discretion.

Check it out, its NEAT.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links