Grid

From Synfig Studio :: Documentation
Jump to: navigation, search
m (Using the Canvas MetaData panel)
m (Enabling and disabling snapping to a grid)
Line 92: Line 92:
  
 
You can use the {{Literal|Snap to grid}} checkbox to enable or disable snapping the grid, and then press the {{Literal|OK}} or {{Literal|Apply}} button.
 
You can use the {{Literal|Snap to grid}} checkbox to enable or disable snapping the grid, and then press the {{Literal|OK}} or {{Literal|Apply}} button.
 +
 +
===Using the Canvas MetaData panel===
 +
 +
Although there is no real advantage in using this method, you can enable or disable snapping to the grid using the {{l|Canvas MetaData Panel|Canvas MetaData Panel}}.
 +
 +
The {{l|Canvas MetaData Panel}} starts off empty, so to enable or disable snapping to the grid on a canvas without canvas metadata you would have to:
 +
 +
# Select the {{l|Canvas MetaData Panel}} in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
 +
# Press the {{l|Canvas MetaData Panel}} {{Literal|Add New MetaData entry}} icon (the one that looks like this [[File:Add_new_metadata_entry.png]])
 +
# Type {{Literal|grid_snap}} and press {{Shortcut|enter}}.
 +
# Double click on the Data column next to the {{Literal|grid_show}} Key in the {{l|Canvas MetaData Panel}}. This will allow you to enter a value.
 +
# Type {{Literal|0}} to disable snapping to the grid or {{Literal|1}} to enable snapping to the grid and press {{Shortcut|enter}}.
 +
 +
To enable or disable snapping to the grid on a canvas that already has canvas metadata you would:
 +
 +
# Select the {{l|Canvas MetaData Panel}} in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
 +
# Double click on the Data column next to the {{Literal|grid_snap}} Key in the {{l|Canvas MetaData Panel}}. This will allow you to enter a value.
 +
# Type {{Literal|0}} to hide the grid or {{Literal|1}} to show the grid and press {{Shortcut|enter}}.
 +
 +
The {{Literal|guide_snap}} Key in the {{l|Canvas MetaData Panel}} stores whether snapping to the grid is enabled or disabled. It stores {{Literal|0}} if snapping to the grid is disabled or {{Literal|1}} if snapping to the grid is enabled.
  
 
==Changing the spacing of grid lines==
 
==Changing the spacing of grid lines==

Revision as of 15:25, 11 February 2012

Languages Language: 

English • română


Navigation Navigation:  <<Manual>>

Introduction

You can add a grid of horizontal and vertical lines to your canvases to help you to position items precisely. The grids won't appear in your finished animations, but they will be saved with your documents. Each canvas has its own grid. The spacing of the horizontal and vertical lines in a grid can be changed independently, so you can have grids made up of rectangles as well as grids made up of squares.

If you imagine the grid's lines are made of metal, ducks act like magnets around grid lines, snapping onto them when they get close enough. This means that, using grids, it is easy to ensure ducks are in particular places.

Position ducks, vertex ducks, tangent ducks, radius ducks, width ducks and angle ducks can all snap onto grid lines. This means that you can use grids to accurately position anything and everything in Synfig Studio.

Appearance

A grid looks like this when you display it in the canvas window:

Grid.png

As you can see above, the grid appears as grey dashed lines that extend across your working area to the edges of the canvas window.

Showing and hiding a grid

There are four ways to show or hide a grid in your canvas window. You can use a button on the canvas window toolbar, you can use the Canvas View Menu, you can use the Options dialog box that you'll find on the Canvas File Menu or you can use the Canvas MetaData Panel.

Using the Canvas Window Toolbar button

There is a show/hide grid button on the canvas window toolbar.

  • When the button looks like this Show Grid.png the grid is hidden. If you press it the grid will be shown.
  • When the button looks like this Hide Grid.png the grid is shown. If you press it the grid will be hidden.

Using the Canvas View menu

You can open the Canvas Menu using the Canvas Menu Caret button and then use "View → Show Grid" to hide or show the grid.

Using the Options dialog box

You can open the Canvas Menu using the Canvas Menu Caret button and then use "File → Options" to display the Options dialog box.

You can use the "Show Grid" checkbox to show or hide the grid, and then press the "OK" or "Apply" button.

Using the Canvas MetaData panel

Although there is no real advantage in using this method, you can show or hide the grid using the Canvas MetaData Panel.

The Meta Data Panel starts off empty, so to show or hide the grid on a canvas without canvas metadata you would have to:

  1. Select the Meta Data Panel in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
  2. Press the Meta Data Panel "Add New MetaData entry" icon (the one that looks like this Add new metadata entry.png)
  3. Type "grid_show" and press ↵ Enter.
  4. Double click on the Data column next to the "grid_show" Key in the Meta Data Panel. This will allow you to enter a value.
  5. Type "0" to hide the grid or "1" to show the grid and press ↵ Enter.

To show or hide the grid on a canvas that already has canvas metadata you would:

  1. Select the Meta Data Panel in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
  2. Double click on the Data column next to the "grid_show" Key in the Meta Data Panel. This will allow you to enter a value.
  3. Type "0" to hide the grid or "1" to show the grid and press ↵ Enter.

The "guide_show" Key in the Meta Data Panel stores whether guides are visible or not. It stores "0" if guides are hidden or "1" if guides are visible.

Note

As well as "0" or "1", you can also enter "true" or "false" (without quotes) to enable or disable boolean values in the Canvas MetaData Panel.
note end


Enabling and disabling snapping to a grid

The grid does not do anything until snapping to the grid is enabled. Once snapping is enabled, when you move a duck close to a grid line it will "snap" onto it, in much the same way as a magnet will snap onto a piece of metal. Once a duck has snapped to a grid line you will find it takes a stronger than normal movement to detach it from the grid line, again as if you were pulling a magnet off of something metallic.

Having ducks snapping to grid lines is usually very useful, but sometimes it can be very annoying! Fortunately you can easily turn snapping to the grid off.

There are four ways to enable or disable snapping to the grid in your canvas window. You can use a button on the canvas window toolbar, you can use the Canvas View Menu, you can use the Options dialog box that you'll find on the Canvas File Menu or you can use the Canvas MetaData Panel.

Note

If snapping to the grid is enabled, it will still work even if the grid is hidden.
note end


Using the Canvas Window Toolbar button

There is a enable/disable snapping to the grid button on the canvas window toolbar.

  • When the button looks like this Enable snapping.png snapping to the grid is disabled. If you press it snapping to the grid will be enabled.
  • When the button looks like this Disable snapping.png snapping to the grid is enabled. If you press it snapping to the grid will be disabled.

Using the Canvas View menu

You can open the Canvas Menu using the Canvas Menu Caret button and then use "View → Snap to Grid" to enable or disable snapping to the grid.

Using the Options dialog box

You can open the Canvas Menu using the Canvas Menu Caret button and then use "File → Options" to display the Options dialog box.

You can use the "Snap to grid" checkbox to enable or disable snapping the grid, and then press the "OK" or "Apply" button.

Using the Canvas MetaData panel

Although there is no real advantage in using this method, you can enable or disable snapping to the grid using the Canvas MetaData Panel.

The Meta Data Panel starts off empty, so to enable or disable snapping to the grid on a canvas without canvas metadata you would have to:

  1. Select the Meta Data Panel in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
  2. Press the Meta Data Panel "Add New MetaData entry" icon (the one that looks like this Add new metadata entry.png)
  3. Type "grid_snap" and press ↵ Enter.
  4. Double click on the Data column next to the "grid_show" Key in the Meta Data Panel. This will allow you to enter a value.
  5. Type "0" to disable snapping to the grid or "1" to enable snapping to the grid and press ↵ Enter.

To enable or disable snapping to the grid on a canvas that already has canvas metadata you would:

  1. Select the Meta Data Panel in the Params, Children, Keyframes, Timetrack, Curves, Canvas MetaData window.
  2. Double click on the Data column next to the "grid_snap" Key in the Meta Data Panel. This will allow you to enter a value.
  3. Type "0" to hide the grid or "1" to show the grid and press ↵ Enter.

The "guide_snap" Key in the Meta Data Panel stores whether snapping to the grid is enabled or disabled. It stores "0" if snapping to the grid is disabled or "1" if snapping to the grid is enabled.

Changing the spacing of grid lines


Languages Language: 

English • română