-
Notifications
You must be signed in to change notification settings - Fork 41
user references google
CardMaker supports reference data pulled from Google. You should be roughly familiar with References Basic and References Defines before continuing.
This section assumes you do not have an existing Google Spreadsheet. If you already do just skip the first step.
-
Create your Spreadsheet in Google. I'm not going to detail this process as I might be out of date...
-
Each sheet in your Google Spreadsheet can act like a single reference in the application. If you plan to use project-wide defines you should create a sheet and name it defines (case sensitive!). You can also setup defines per reference by creating a sheet named the same with _defines as the suffix (example sheets: items and items_defines).
-
Setup your data! Remember the first column of a reference is the card count column and defines always use the first two columns for the define name and value.
-
You should use your default browser to log into Google. If you do not CardMaker will attempt to prompt you for authorization in the default browser, potentially forcing you to log in again.
-
Launch CardMaker and create/load a project. For the examples below assume the project file name is
My New Game.cmp
-
(optional) Global (Project-wide) defines can be be connected to the project a number of different ways.
- Use a local defines file.
- Right-click
Layouts
and selectProject Settings...
- Verify the
Default Define Reference Type
is set toCSV
and the override field is blank/empty. -
Create a defines CSV file and save it with the file name
[project name without extension]_defines.csv
-- Example:My New Game_defines.csv
- Right-click
- Use a Google Spreadsheet named
[project name without extension]
with a sheet calleddefines
- Right-click
Layouts
and selectProject Settings...
- Verify the
Default Define Reference Type
is set toGoogle
and the override field is blank/empty. - Create a new Google Spreadsheet named
[project name without extension]
with a sheet nameddefines
-- Example:My New Game
- Right-click
- Use a Google Spreadsheet named whatever you want with a sheet called
defines
- Right-click
Layouts
and selectProject Settings...
- Verify the
Default Define Reference Type
is set toGoogle
- Use the
...
button next to the override field and select the Google Spreadsheet containing thedefines
sheet.
- Right-click
- Use a local defines file.
-
Save your project. If you haven't already, please do so. The application wants you to have a project file!
-
On any layout you want to reference a Google sheet just right-click and select Add Google Spreadsheet Reference... The application will attempt to guide you through the authentication process. You will be prompted to browse to an authorization page. After the authorization is accepted you will need to manually copy the key from the web page into the application. The key is valid for an hour. This limitation and the copy/paste key are all due to the implementation of Google authentication.