-
Notifications
You must be signed in to change notification settings - Fork 129
Unreal: animation, layout and setdress updates #695
Unreal: animation, layout and setdress updates #695
Conversation
This layout is made to work with Blender. The layout exports a json file with the reference to the blend files in ftrack that generated the fbx that has been imported in Unreal. In Blender, when the layout is loaded, pype will load the assets from the blend files and set the transform from the layout.
When reopening the Unreal project, the skeleton was not connected to the skeletal mesh anymore. Some materials were not assigned to the mesh either.
rep = None | ||
pub_repr = i.data.get('published_representations') | ||
for elem in pub_repr: | ||
if pub_repr.get(elem).get('representation').get('name') == "fbx": |
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.
line too long (81 > 79 characters)
@@ -0,0 +1,49 @@ | |||
import json | |||
|
|||
from avalon import io |
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.
'avalon.io' imported but unused
|
||
self.log.info("Extracted instance '{}' to: {}".format( | ||
instance.name, json_representation)) | ||
|
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.
blank line at end of file
json_dict = {} | ||
json_dict['subset'] = i.data.get('subset') | ||
json_dict['container'] = container.name | ||
json_dict['instance_name'] = container.get('avalon').get('instance_name') |
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.
line too long (89 > 79 characters)
|
||
import bpy | ||
|
||
class ExtractSetDress(pype.api.Extractor): |
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
|
||
for c in bpy.data.collections: | ||
metadata = c.get('avalon') | ||
if metadata: |
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.
trailing whitespace
import logging | ||
from pathlib import Path | ||
from pprint import pformat | ||
from typing import Dict, List, Optional | ||
|
||
from avalon import api, blender | ||
from avalon import api, blender, pipeline |
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.
'avalon.pipeline' imported but unused
@@ -1,11 +1,15 @@ | |||
"""Load a layout in Blender.""" | |||
|
|||
import json | |||
from logging import log, warning | |||
import math |
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.
'math' imported but unused
@@ -1,11 +1,15 @@ | |||
"""Load a layout in Blender.""" | |||
|
|||
import json | |||
from logging import log, warning |
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.
'logging.log' imported but unused
'logging.warning' imported but unused
from avalon import api, blender | ||
import pype.hosts.blender.plugin | ||
|
||
class CreateSetDress(blender.Creator): |
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
Update to launch Unreal 4.26 from ftrack action: #746 |
46534d7
to
461dc0e
Compare
happy to merge in this state. |
No description provided.