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

Fix: dirmap wasn't using local site values #728

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Jul 1, 2024

Changelog Description

Some DCC(Maya, Nuke) offer dirmap functionality, eg. remapping file paths from source to destination. If dirmap is enabled and artist is using local site, it should use as a source root value from Site Settings (which might be different for each artist) rather than static mapping from ayon+settings://nuke/dirmap?project=ayon_test for example.

Testing notes:

  1. enable dirmap in Nuke in ayon+settings://nuke/dirmap?project=ayon_test
  2. you might keep mapping there empty, values from Local Settings should be used
  3. open Nuke and look for
    image
    where values in active roots overrides should match what artist has in Site Settings
    image

Has wrong arguments, it would require SiteSync addon. Used only in dirmap file, where it could be replaced directly by SiteSync addon's method.
Addon's get_site_root_overrides should return overridden root values for any site which is overridden by Site Settings.
'studio' site is currently overridden by `Roots` tab and comes from project settings directly.
@ynbot
Copy link
Contributor

ynbot commented Jul 1, 2024

Task linked: OP-8272 Dirmap does not work with sitesync

@ynbot ynbot added type: bug Something isn't working size/XS labels Jul 1, 2024
Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have followed testing steps and all looking as supposed to...so all good!

My settings:
Screenshot 2024-07-02 115103

And console after launching showing dir remap in use...

Screenshot 2024-07-02 115119

@kalisp kalisp assigned iLLiCiTiT and unassigned MilaKudr Jul 3, 2024
@kalisp kalisp merged commit a969d00 into develop Jul 3, 2024
1 check passed
@kalisp kalisp deleted the bugfix/AY-1232_Dirmap-does-not-work-with-sitesync branch July 3, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants