mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
remove extra imports
This commit is contained in:
parent
05441eb2fe
commit
5ff73c064e
4 changed files with 6 additions and 8 deletions
|
|
@ -7,7 +7,6 @@ from avalon.blender import Creator, lib
|
|||
import pype.blender.plugin
|
||||
|
||||
|
||||
|
||||
class CreateAction(Creator):
|
||||
"""Action output for character rigs"""
|
||||
|
||||
|
|
@ -17,7 +16,6 @@ class CreateAction(Creator):
|
|||
icon = "male"
|
||||
|
||||
def process(self):
|
||||
import pype.blender
|
||||
|
||||
asset = self.data["asset"]
|
||||
subset = self.data["subset"]
|
||||
|
|
@ -29,9 +27,11 @@ class CreateAction(Creator):
|
|||
|
||||
if (self.options or {}).get("useSelection"):
|
||||
for obj in lib.get_selection():
|
||||
if obj.animation_data is not None and obj.animation_data.action is not None:
|
||||
if (obj.animation_data is not None
|
||||
and obj.animation_data.action is not None):
|
||||
|
||||
empty_obj = bpy.data.objects.new( name = name, object_data = None )
|
||||
empty_obj = bpy.data.objects.new(name=name,
|
||||
object_data=None)
|
||||
empty_obj.animation_data_create()
|
||||
empty_obj.animation_data.action = obj.animation_data.action
|
||||
empty_obj.animation_data.action.name = name
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ from avalon.blender import Creator, lib
|
|||
import pype.blender.plugin
|
||||
|
||||
|
||||
|
||||
class CreateAnimation(Creator):
|
||||
"""Animation output for character rigs"""
|
||||
|
||||
|
|
@ -17,7 +16,6 @@ class CreateAnimation(Creator):
|
|||
icon = "male"
|
||||
|
||||
def process(self):
|
||||
import pype.blender
|
||||
|
||||
asset = self.data["asset"]
|
||||
subset = self.data["subset"]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ from avalon import api
|
|||
from avalon.blender import Creator, lib
|
||||
import pype.blender.plugin
|
||||
|
||||
|
||||
class CreateModel(Creator):
|
||||
"""Polygonal static geometry"""
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ class CreateRig(Creator):
|
|||
# return found
|
||||
|
||||
def process(self):
|
||||
import pype.blender
|
||||
|
||||
asset = self.data["asset"]
|
||||
subset = self.data["subset"]
|
||||
|
|
@ -61,7 +60,7 @@ class CreateRig(Creator):
|
|||
|
||||
for subobj in obj.children:
|
||||
|
||||
objects_to_link.add( subobj )
|
||||
objects_to_link.add(subobj)
|
||||
|
||||
# Create a new collection and link the widgets that
|
||||
# the rig uses.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue