This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Unreal: animation, layout and setdress updates #695
Merged
mkolar
merged 24 commits into
ynput:2.x/develop
from
simonebarbieri:feature/unreal-support
Dec 16, 2020
Merged
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1718635
Unreal support for model and rig assets
simonebarbieri 9d737c2
Implemented layout asset in Unreal
simonebarbieri 3c65258
Blender can load layout exported from Unreal as json
simonebarbieri 1c27e66
Updated the loading of the layout to support nested containers
simonebarbieri 5d1d88a
Implemented remove method for layout asset
simonebarbieri daba0c0
Implemented update for the layout
simonebarbieri c80dfdf
Fix rotation when loading from Unreal
simonebarbieri f95f997
Improved generation of custom context
simonebarbieri ea248a4
Implemented creator for setdress and updated creator for animation
simonebarbieri e4e4387
Updated naming for some variables
simonebarbieri 525c4fe
Create the subset for animation and setdress when loading a layout
simonebarbieri bce22ac
Implemented extraction of the animation and setdress
simonebarbieri 2ac826f
Implemented loading of animation and setdress in Unreal
simonebarbieri 8581339
Fix the drivers to link to the local objects
simonebarbieri 3fb4ee1
Fixed problem with rig loader
simonebarbieri 15b782f
Improved remove and update for layout loader
simonebarbieri 24703b0
Improved loading and update for rigs and staticmeshes
simonebarbieri 41bede0
Improved loading for setdress and animation and implemented update
simonebarbieri 53d2423
Improvements on loading for unreal
simonebarbieri 6e0c621
Handle exception if asset container is not found when extracting layout
simonebarbieri 3dab7be
Improved remove function to delete parent directory if empty
simonebarbieri a06bac6
Fix problem with update that didn't update some metadata
simonebarbieri b59887b
Pep8 compliance
simonebarbieri be59efa
Fixed constraints not referencing the local objects
simonebarbieri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import bpy | ||
|
||
from avalon import api, blender | ||
import pype.hosts.blender.plugin | ||
|
||
class CreateSetDress(blender.Creator): | ||
"""A grouped package of loaded content""" | ||
|
||
name = "setdressMain" | ||
label = "Set Dress" | ||
family = "setdress" | ||
icon = "cubes" | ||
defaults = ["Main", "Anim"] | ||
|
||
def process(self): | ||
asset = self.data["asset"] | ||
subset = self.data["subset"] | ||
name = pype.hosts.blender.plugin.asset_name(asset, subset) | ||
collection = bpy.data.collections.new(name=name) | ||
bpy.context.scene.collection.children.link(collection) | ||
self.data['task'] = api.Session.get('AVALON_TASK') | ||
blender.lib.imprint(collection, self.data) | ||
|
||
return collection |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected 2 blank lines, found 1