Code Monkey home page Code Monkey logo

Comments (5)

BigRoy avatar BigRoy commented on June 26, 2024

This was included in one of the earlier commits.

The two relevant plug-ins at the time were:
https://github.com/pyblish/pyblish-magenta/blob/ba658c67cc4b6cc684f98db89bfba4b54699f3aa/pyblish_magenta/plugins/_validate_scene_saved.py
https://github.com/pyblish/pyblish-magenta/blob/ba658c67cc4b6cc684f98db89bfba4b54699f3aa/pyblish_magenta/plugins/collect_scene_modified.py

Note that I disabled it back then because it was annoying that some of the Collectors or method calls would make Maya assume the scene was modified even if only queried for content. For example, does cmds.file(exportSelected=True, preview=True) trigger a scene modified? There are likely many commands that trigger it.

We should look into how it's made comfortable for the artist. Because from time to time I pressed save and then tried to publish directly and it got invalidated because the scene was supposedly modified.

from pyblish-magenta.

mottosso avatar mottosso commented on June 26, 2024

Mm, I remember, also experienced this.

Something to look out for. Perhaps it's ok to ensure it has been saved at least once. Though it would mean missing out on potentially new nodes leaving without a UUID.

Another alternative could be to add another callback to scene saved, imprint the time at which is was saved. The validator could then take this into account.

Not very clean, just throwing it out as an option.

from pyblish-magenta.

BigRoy avatar BigRoy commented on June 26, 2024

I think we're tackling the issue the wrong way.

Shouldn't the validator just validate that all nodes included in the extraction have a UUID? And in modeling also ensure they are unique? (Two separate validators I assume)

from pyblish-magenta.

mottosso avatar mottosso commented on June 26, 2024

Good thinking!

from pyblish-magenta.

BigRoy avatar BigRoy commented on June 26, 2024

Shall we close this since we covered this particular problem from that time with a lot of different solutions?

from pyblish-magenta.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.