Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: Vray scene publishing #1013

Merged
merged 7 commits into from
Feb 19, 2021
Merged

Maya: Vray scene publishing #1013

merged 7 commits into from
Feb 19, 2021

Conversation

antirotor
Copy link
Member

@antirotor antirotor commented Feb 12, 2021

Feature

This PR adds ability to work with vrayscene type with more control. It inherits basic principles from rendering family. So when you create vray scene instance, it monitors render layers and create set under instance for each of them, tracking changes. If you leave that set empty, it will export whole scene under that render layer context to vrayscene. However if you add objects/sets there, it will export only those under render layer context.

This is currently publishing only on local computer (not utilizing render farm) and it doesn't support multi-frame sequences of vray files.

Changes in renderning publishing

This PR is also introducing changes in current rendering publishing system. It drops LAYER_ prefix in names of sets created under rendering instance. Instead it prefix them with Maya namespaces. By default new namespace is determined by name of render instance with added underscore before it - renderingDefault and render layer FOO will result in _renderingDefault:FOO named set under rendering instance. If _renderingDefault exists and is not empty, it will try to create next available name appending increasing number at the end, so next available namespace would be _renderingDefault1.

This change mitigate chance of name conflicts in scene as Maya doesn't allow two objects under one namespace to share name.

🎫 Freshdesk: 67
📖 Documentation: ynput/pypeclub.github.io#34

@antirotor antirotor added type: enhancement Enhancements to existing functionality host: Maya labels Feb 12, 2021
@antirotor antirotor requested a review from a team February 12, 2021 13:58
@antirotor antirotor self-assigned this Feb 12, 2021
@antirotor antirotor marked this pull request as ready for review February 16, 2021 10:32
@mkolar mkolar added this to the 2.15.2 milestone Feb 16, 2021
Copy link
Member

@mkolar mkolar left a comment

Choose a reason for hiding this comment

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

missing 3.x PR

@mkolar mkolar merged commit 4be4383 into 2.x/develop Feb 19, 2021
@mkolar mkolar deleted the 2.x/vrayscene branch March 12, 2021 16:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants