WIP on UI for selecting animations to export in PSA.
This commit is contained in:
@@ -33,10 +33,13 @@ else:
|
||||
from .psa import operator as psa_operator
|
||||
|
||||
import bpy
|
||||
from bpy.props import IntProperty, CollectionProperty
|
||||
|
||||
classes = [
|
||||
psk_operator.PskExportOperator,
|
||||
psa_operator.PsaExportOperator
|
||||
psa_operator.PsaExportOperator,
|
||||
psa_operator.PSA_UL_ActionList,
|
||||
psa_operator.ActionListItem
|
||||
]
|
||||
|
||||
def psk_menu_func(self, context):
|
||||
@@ -51,8 +54,12 @@ def register():
|
||||
register_class(cls)
|
||||
bpy.types.TOPBAR_MT_file_export.append(psk_menu_func)
|
||||
bpy.types.TOPBAR_MT_file_export.append(psa_menu_func)
|
||||
bpy.types.Scene.psa_action_list = CollectionProperty(type=psa_operator.ActionListItem)
|
||||
bpy.types.Scene.psa_action_list_index = IntProperty(name='index for list??', default=0)
|
||||
|
||||
def unregister():
|
||||
del bpy.types.Scene.psa_action_list_index
|
||||
del bpy.types.Scene.psa_action_list
|
||||
bpy.types.TOPBAR_MT_file_export.remove(psa_menu_func)
|
||||
bpy.types.TOPBAR_MT_file_export.remove(psk_menu_func)
|
||||
from bpy.utils import unregister_class
|
||||
|
||||
Reference in New Issue
Block a user