Skip to content

Commit

Permalink
impplement Shotgrid settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorrain authored and ClementHector committed Feb 7, 2022
1 parent e5e5698 commit 01e4f54
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 1 deletion.
30 changes: 30 additions & 0 deletions openpype/settings/defaults/project_settings/shotgrid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"shotgrid_project_id": 0,
"auth": {
"project_shotgrid_url": "",
"project_shotgrid_script_name": "",
"project_shotgrid_script_key": ""
},
"batch": {
"enabled": false,
"override": false
},
"event": {
"enabled": false
},
"fields": {
"asset": {
"type": "sg_asset_type"
},
"sequence": {
"episode_link": "episode"
},
"shot": {
"episode_link": "sg_episode",
"sequence_link": "sg_sequence"
},
"task": {
"step": "step"
}
}
}
4 changes: 3 additions & 1 deletion openpype/settings/defaults/system_settings/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@
},
"shotgrid": {
"enabled": true,
"shotgrid_url": ""
"shotgrid_url": "",
"shotgrid_script_name": "",
"shotgrid_script_key": ""
},
"timers_manager": {
"enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
"type": "schema",
"name": "schema_project_ftrack"
},
{
"type": "schema",
"name": "schema_project_shotgrid"
},
{
"type": "schema",
"name": "schema_project_deadline"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"type": "dict",
"key": "shotgrid",
"label": "Shotgrid",
"collapsible": true,
"is_file": true,
"children": [
{
"type": "number",
"key": "shotgrid_project_id",
"label": "Shotgrid project id"
},
{
"type": "dict",
"key": "auth",
"label": "Authentication",
"collapsible": true,
"children": [
{
"type": "label",
"label": "You can specify a shotgun instance here, use System settings if you leave it blank"
},
{
"type": "text",
"key": "project_shotgrid_url",
"label": "Server URL"
},
{
"type": "text",
"key": "project_shotgrid_script_name",
"label": "Script Name"
},
{
"type": "text",
"key": "project_shotgrid_script_key",
"label": "Script Key"
}
]
},
{
"type": "dict",
"key": "batch",
"label": "Batch",
"collapsible": true,
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "override",
"label": "Override existing project"
}
]
},
{
"type": "dict",
"key": "event",
"label": "Event Handler",
"collapsible": true,
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
}
]
},
{
"type": "dict",
"key": "fields",
"label": "Fields Template",
"collapsible": true,
"children": [
{
"type": "dict",
"key": "asset",
"label": "Asset",
"collapsible": true,
"children": [
{
"type": "text",
"key": "type",
"label": "Asset Type"
}
]
},
{
"type": "dict",
"key": "sequence",
"label": "Sequence",
"collapsible": true,
"children": [
{
"type": "text",
"key": "episode_link",
"label": "Episode link"
}
]
},
{
"type": "dict",
"key": "shot",
"label": "Shot",
"collapsible": true,
"children": [
{
"type": "text",
"key": "episode_link",
"label": "Episode link"
},
{
"type": "text",
"key": "sequence_link",
"label": "Sequence link"
}
]
},
{
"type": "dict",
"key": "task",
"label": "Task",
"collapsible": true,
"children": [
{
"type": "text",
"key": "step",
"label": "Step link"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@
"type": "text",
"key": "shotgrid_url",
"label": "Server URL"
},
{
"type": "text",
"key": "shotgrid_script_name",
"label": "Script Name"
},
{
"type": "text",
"key": "shotgrid_script_key",
"label": "Script Key"
}
]
},
Expand Down

0 comments on commit 01e4f54

Please sign in to comment.