Snap to grid

   3459   7   1
User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
I am very new to Houdini,I am a Maya user.
I am watching a basic tutorial, it is in Houdini 16, I'm on Houdini 18.
In the tutorial, the person grabs the top points on the torus SOP,turns on snap to grid, presses T and moves the points up. All the points snap to the grid.
However, I can't seem to get point to snap to grid; they are all remaining relative to one another.
Is there a setting I am missing?
Thanks
Image Not Found

Attachments:
snapToGrid.PNG (227.0 KB)

User Avatar
Member
10 posts
Joined: Sept. 2016
Offline
Hopefully this guideline will work:
(image 1): You click on the point you want to snap and hold left mouse buttom.
(image 2): If you drag the selected point (while still holding left click) near to a grid point it should become visible.
(image 3): Then just drag your selected point on the visible grid point to snap it.

Attachments:
1.png (451.7 KB)
2.png (330.2 KB)
3.png (444.0 KB)

User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
in the tutorial he selects and snap only one row of points to the grid,
while you have selected two
though i'm interested too:
how to snap points to the grid without keeping distance (spacing) between them (so that both selected rows will snap to one grid's line) (?)
Edited by ryuku - Dec. 18, 2019 12:10:56

Attachments:
snap points to grid 01.gif (295.0 KB)
snap points to grid 02.gif (597.9 KB)

User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
Thanks for responding.
After I posted I noticed that in the tutorial, the person only selected one row.
I too am curious how you could get multiple rows to snap to the grid.
I'm not really sure if there is a node or a setting on the Edit node that is required?
Maybe you need to group the points in a group node?
I'm just grabbing at straws though.
I'm still trying to figure out all the various nodes and how to use them.
User Avatar
Member
171 posts
Joined: Oct. 2016
Offline
right now i may invent snapping without spacing only in this way:
snap to points + scale to seems zero by y (appears in red 0.00x) + then snap to grid
though during scaling something crazy is going on in the parameters and i manually set sy to 0
somewhy i think it makes points being exactly on one line
not sure why rotation and shear participate in it
(or doing sy=0 just in parameters without scaling in viewport)
Edited by ryuku - Dec. 18, 2019 13:29:47

Attachments:
snap points to points and scaling.gif (515.4 KB)
snap points to points and scaling.JPG (61.0 KB)
snap points to points and scaling 01.JPG (29.1 KB)
snap points to points and scaling 01.gif (2.0 MB)

User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
I tried that method as well.
However, I'm not sure that I can guarantee that all the points are at the same Y value.
I wanted to see if I could do this using nodes rather than manually in the scene view.

I used a group, and a transform SOP(?)
What I did was selected the primitive(faces) and under the Base Group Attribute of the Group SOP, I manually typed in the numbers of the primitives I had selected. I used the Geometry Spread sheet to help with the numbers. Unfortunately, I don't know how to add selected faces to a group.

I then used the Transform SOP, set the scale.y = 0
I used snap to grid to move the points in the scene view.
I'm sure there is a better way and this is not how to do it.

Still learning.
Edited by mayanim8 - Dec. 18, 2019 13:47:48

Attachments:
snapToGrid2.PNG (235.7 KB)

User Avatar
Member
10 posts
Joined: Sept. 2016
Offline
You can do everything in one edit sop. Select all the points you want and snap them to a grid position. Then enter a 0 value in the scaling direction to align the points on a line. Works for me without any problems. There is no group or transform sop needed.
User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
Thanks,
Much quicker!
  • Quick Links