Skip to content

Commit 0e58cb5

Browse files
authored
Merge pull request #6 from GPLgithub/main
Updates from SG basic config v1.7.0 and bootstrap hook
2 parents 0686e53 + ad5b84e commit 0e58cb5

37 files changed

+256
-203
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- id: trailing-whitespace
3636
# Leave black at the bottom so all touchups are done before it is run.
3737
- repo: https://github.com/ambv/black
38-
rev: 20.8b1
38+
rev: 22.3.0
3939
hooks:
4040
- id: black
4141
language_version: python3

SECURITY.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Security Policy
2+
3+
## Security
4+
5+
At Autodesk, we know that the security of your data is critical to your studio’s
6+
operation.
7+
As the industry shifts to the cloud, Flow Production Tracking knows that security
8+
and service models are more important than ever.
9+
10+
The confidentiality, integrity, and availability of your content is at the top
11+
of our priority list.
12+
Not only do we have a team of Flow Production Tracking engineers dedicated to
13+
platform security and performance, we are also backed by Autodesk’s security team,
14+
also invests heavily in the security for broad range of industries and customers.
15+
We constantly reassess, develop, and improve our risk management program because
16+
we know that the landscape of security is ever-changing.
17+
18+
If you believe you have found a security vulnerability in any
19+
Flow Production Tracking-owned repository, please report it to us as described
20+
below.
21+
22+
23+
## Reporting Security Issues
24+
25+
**Please do not report security vulnerabilities through public GitHub issues.**
26+
27+
Instead, please report them by sending a message to
28+
[Autodesk Trust Center](https://www.autodesk.com/trust/contact-us).
29+
30+
Please include as much information as you can provide such as locations,
31+
configurations, reproduction steps, exploit code, impact, etc.
32+
33+
34+
## Additional Information
35+
36+
Please check out the [Flow Production Tracking Security White Paper](https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_Administrator_ar_general_security_ar_security_white_paper_html).

core/core_api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
location:
1515
type: app_store
1616
name: tk-core
17-
version: v0.20.12
17+
version: v0.21.5

core/hooks/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This location is for core hook override files.
22

3-
The ShotGrid Pipeline Toolkit comes with a series of Core Hooks, essentially snippets of python
3+
The Flow Production Tracking Toolkit comes with a series of Core Hooks, essentially snippets of python
44
that contain key operations such as copying a file, creating directories etc.
55

66
These hooks are part of the platform distribution and are therefore bundled with the code itself.

core/hooks/bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def populate_bundle_cache_entry(self, destination, descriptor, **kwargs):
9797
if self.shotgun.config.proxy_handler:
9898
# Re-use proxy settings from the Shotgun connection
9999
opener = url2.build_opener(
100-
self.parent.shotgun.config.proxy_handler,
100+
self.shotgun.config.proxy_handler,
101101
)
102102
url2.install_opener(opener)
103103

@@ -138,7 +138,7 @@ def populate_bundle_cache_entry(self, destination, descriptor, **kwargs):
138138
for asset in response_d["assets"]:
139139
name = asset["name"]
140140
m = re.match(
141-
r"%s-py\d.\d-%s.zip" % (version, pname),
141+
r"%s-py\d.\d+-%s.zip" % (version, pname),
142142
name
143143
)
144144
if m:
@@ -229,7 +229,7 @@ def _download_zip_github_asset(self, asset, destination, token):
229229
if self.shotgun.config.proxy_handler:
230230
# Re-use proxy settings from the Shotgun connection
231231
opener = url2.build_opener(
232-
self.parent.shotgun.config.proxy_handler,
232+
self.shotgun.config.proxy_handler,
233233
auth_handler
234234
)
235235
else:

env/asset_step.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ engines:
3636
tk-shell: '@shell.asset_step'
3737
tk-photoshopcc: '@photoshopcc.asset_step'
3838
tk-aftereffects: '@aftereffects.asset_step'
39-
tk-3dsmaxplus: '@3dsmaxplus.asset_step'
4039
tk-3dsmax: '@3dsmax.asset_step'
4140
tk-alias: '@alias.asset_step'
4241
tk-vred: '@vred.asset_step'

env/includes/3dsmax/apps.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ includes:
1616
- ../common/apps.yml
1717
- ../common/settings/tk-multi-publish2.yml
1818

19-
# tk-3dsmaxplus app settings
20-
21-
3dsmaxplus.apps.tk-multi-publish2: &3dsmaxplus_apps_tk-multi-publish2
19+
3dsmax.apps.tk-multi-publish2:
2220
help_url: "@common.apps.tk-multi-publish2.help_url"
2321
collector: "{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py"
2422
publish_plugins:
@@ -27,19 +25,19 @@ includes:
2725
- name: Begin file versioning
2826
hook: "{engine}/tk-multi-publish2/basic/start_version_control.py"
2927
settings: {}
30-
- name: Publish to ShotGrid
28+
- name: Publish to Flow Production Tracking
3129
hook: "{self}/publish_file.py:{engine}/tk-multi-publish2/basic/publish_session.py"
3230
settings: {}
3331
location: "@common.apps.tk-multi-publish2.location"
3432

35-
3dsmaxplus.apps.tk-multi-loader2: &3dsmaxplus_apps_tk-multi-loader2
33+
3dsmax.apps.tk-multi-loader2:
3634
action_mappings:
3735
3dsmax Scene: [import, reference]
3836
Alembic Cache: [import]
3937
Image: [texture_node]
4038
Rendered Image: [texture_node]
4139
Texture: [texture_node]
42-
actions_hook: '{self}/tk-3dsmaxplus_actions.py'
40+
actions_hook: "{engine}/tk-multi-loader2/basic/scene_actions.py"
4341
download_thumbnails: true
4442
entities:
4543
- caption: Current Project
@@ -60,10 +58,13 @@ includes:
6058
publish_filters: [["sg_status_list", "is_not", null]]
6159
location: "@common.apps.tk-multi-loader2.location"
6260

63-
3dsmaxplus.apps.tk-multi-shotgunpanel: &3dsmaxplus_apps_tk-multi-shotgunpanel
61+
3dsmax.apps.tk-multi-shotgunpanel:
6462
shotgun_fields_hook: '{self}/shotgun_fields.py'
65-
actions_hook: '{self}/general_actions.py:{self}/tk-3dsmaxplus_actions.py'
63+
actions_hook: "{engine}/tk-multi-shotgunpanel/basic/scene_actions.py"
6664
action_mappings:
65+
Note:
66+
- actions: [ note_to_ip, note_to_closed ]
67+
filters: { }
6768
PublishedFile:
6869
- actions: [import]
6970
filters: {published_file_type: Alembic Cache}
@@ -91,14 +92,6 @@ includes:
9192
enable_context_switch: true
9293
location: "@common.apps.tk-multi-shotgunpanel.location"
9394

94-
# tk-3dsmax app settings
9595
3dsmax.apps.tk-multi-setframerange:
9696
hook_frame_operation: "{engine}/tk-multi-setframerange/basic/frame_operations.py"
9797
location: "@common.apps.tk-multi-setframerange.location"
98-
3dsmax.apps.tk-multi-publish2: *3dsmaxplus_apps_tk-multi-publish2
99-
3dsmax.apps.tk-multi-loader2:
100-
<<: *3dsmaxplus_apps_tk-multi-loader2
101-
actions_hook: "{engine}/tk-multi-loader2/basic/scene_actions.py"
102-
3dsmax.apps.tk-multi-shotgunpanel:
103-
<<: *3dsmaxplus_apps_tk-multi-shotgunpanel
104-
actions_hook: "{engine}/tk-multi-shotgunpanel/basic/scene_actions.py"

env/includes/3dsmax/asset_step.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@ includes:
1717
- ../common/apps.yml
1818
- apps.yml
1919

20-
3dsmaxplus.asset_step:
21-
apps:
22-
tk-multi-about: '@common.apps.tk-multi-about'
23-
24-
tk-multi-pythonconsole: '@common.apps.tk-multi-pythonconsole'
25-
26-
tk-multi-publish2: '@3dsmaxplus.apps.tk-multi-publish2'
27-
28-
tk-multi-loader2: '@3dsmaxplus.apps.tk-multi-loader2'
29-
30-
tk-multi-shotgunpanel: '@3dsmaxplus.apps.tk-multi-shotgunpanel'
31-
32-
location: "@common.engines.tk-3dsmaxplus.location"
33-
menu_favourites: []
34-
launch_builtin_plugins: [basic]
35-
36-
3720
3dsmax.asset_step:
3821
apps:
3922
tk-multi-about: '@common.apps.tk-multi-about'

env/includes/3dsmax/project.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ includes:
1717
- ../common/apps.yml
1818
- apps.yml
1919

20-
3dsmaxplus.project:
21-
apps:
22-
tk-multi-about: '@common.apps.tk-multi-about'
23-
24-
tk-multi-pythonconsole: '@common.apps.tk-multi-pythonconsole'
25-
26-
tk-multi-publish2: '@3dsmaxplus.apps.tk-multi-publish2'
27-
28-
tk-multi-loader2: '@3dsmaxplus.apps.tk-multi-loader2'
29-
30-
tk-multi-shotgunpanel: '@3dsmaxplus.apps.tk-multi-shotgunpanel'
31-
32-
location: "@common.engines.tk-3dsmaxplus.location"
33-
menu_favourites: []
34-
launch_builtin_plugins: [basic]
35-
3620
3dsmax.project:
3721
apps:
3822
tk-multi-about: '@common.apps.tk-multi-about'

env/includes/3dsmax/shot.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ includes:
1717
- ../common/apps.yml
1818
- apps.yml
1919

20-
3dsmaxplus.shot:
21-
apps:
22-
tk-multi-about: '@common.apps.tk-multi-about'
23-
24-
tk-multi-pythonconsole: '@common.apps.tk-multi-pythonconsole'
25-
26-
tk-multi-setframerange: '@common.apps.tk-multi-setframerange'
27-
28-
tk-multi-publish2: '@3dsmaxplus.apps.tk-multi-publish2'
29-
30-
tk-multi-loader2: '@3dsmaxplus.apps.tk-multi-loader2'
31-
32-
tk-multi-shotgunpanel: '@3dsmaxplus.apps.tk-multi-shotgunpanel'
33-
34-
location: "@common.engines.tk-3dsmaxplus.location"
35-
menu_favourites: []
36-
launch_builtin_plugins: [basic]
37-
3820
3dsmax.shot:
3921
apps:
4022
tk-multi-about: '@common.apps.tk-multi-about'

0 commit comments

Comments
 (0)