Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Include custom Adobe Font files in the submitter job #46

Open
wants to merge 5 commits into
base: mainline
Choose a base branch
from

Conversation

Ahuge
Copy link
Contributor

@Ahuge Ahuge commented Jun 26, 2024

What was the problem/requirement? (What/Why)

When a user uses Adobe Fonts, those custom fonts get installed in their appdata directory and are not included in the job.
The resulting render does not have the correct fonts.

What was the solution? (How)

We query the scene and collect all of the custom adobe fonts. These fonts are uploaded as job attachments and the adaptor will install the fonts for the currently running user during the launch of After Effects.
When After Effects is closed, the fonts are uninstalled.

What is the impact of this change?

After Effects renders that use custom Adobe Fonts render correctly

How was this change tested?

I have tested it running a modified version of the standard AfterEffects submitter template with a local session-runner.
These files can be found here: https://gist.github.com/Ahuge/ab8da83c16e5ceadb8683bbde4d9155a
The main change in the template was goofing around with my VirtualEnv as a JobEnvironment

I will deploy this to my own Deadline farm and confirm things there as well.

Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.

Required: paste the contents of job_bundle_output_tests/test-job-bundle-results.txt here

Was this change documented?

Not yet

Is this a breaking change?

I suppose?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Ahuge Ahuge requested a review from a team as a code owner June 26, 2024 23:36
@Ahuge Ahuge force-pushed the ah/feature/fonts-in-submitter branch 2 times, most recently from da9e70c to 5c86725 Compare June 26, 2024 23:39
@Ahuge
Copy link
Contributor Author

Ahuge commented Jun 28, 2024

Will need a rebase once #44 gets merged in.

@Ahuge Ahuge force-pushed the ah/feature/fonts-in-submitter branch 2 times, most recently from 3598969 to 6fa85ce Compare June 28, 2024 20:44
These font files are required to render the job correctly and should be
included in the JobBundle

Signed-off-by: Alex Hughes <[email protected]>
@Ahuge Ahuge force-pushed the ah/feature/fonts-in-submitter branch 3 times, most recently from 6ab1729 to 482a6e8 Compare June 28, 2024 20:52
Our adaptor will now install any font files uploaded with the job as a
part of its "Launch After Effects" step.
It is installing these fonts to the User and not the System so Admin
permissions should not be required.

Signed-off-by: Alex Hughes <[email protected]>
@Ahuge Ahuge force-pushed the ah/feature/fonts-in-submitter branch from 482a6e8 to 00762dc Compare June 28, 2024 20:54
Ahuge and others added 3 commits July 5, 2024 23:53
The code change I made does adds a check for the User Font directory and create it if it don't exist. 

### Testing
With the script changes, it creates the Fonts folder under the "C:\Users\skarpree\AppData\Local\Microsoft\Windows\" if the path doesn't exists.
Copy link

sonarqubecloud bot commented Aug 1, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
13.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants