Skip to content

Commit

Permalink
Add support for injecting into .xfbin + fix error with creating new x…
Browse files Browse the repository at this point in the history
…fbin
  • Loading branch information
maxcabd authored Jul 31, 2024
1 parent d4c46be commit c21515e
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 170 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
bl_info = {
"name": "CyberConnect2 ANM XFBIN File Export",
"author": "Dei, TheLeonX",
"version": (1, 0, 0),
"version": (1, 0, 1),
"blender": (3, 6, 0),
"location": "File > Export",
"description": "Export XFBIN animation files found in CyberConnect2 Naruto Storm and JoJo games.",
Expand Down
6 changes: 3 additions & 3 deletions blender/addon.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import bpy


from .exporter import ExportAnmXfbin, menu_func_export
from .exporter import ExportAnmXfbin, menu_export


classes = (
Expand All @@ -13,11 +13,11 @@ def register():
for c in classes:
bpy.utils.register_class(c)

bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
bpy.types.TOPBAR_MT_file_export.append(menu_export)


def unregister():
for c in classes:
bpy.utils.unregister_class(c)

bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
bpy.types.TOPBAR_MT_file_export.remove(menu_export)
9 changes: 4 additions & 5 deletions blender/common/coordinate_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ def rotate_quaternion(seq: List[float]) -> Tuple[int, int, int, int]:
scale = Vector([abs(seq) for seq in values])[:]
return NuccAnmKey.Vec3(tuple(scale))





return values


Expand Down Expand Up @@ -135,5 +131,8 @@ def rotate_quaternion(seq: List[float]) -> Tuple[int, int, int, int]:
case 'fov':
return NuccAnmKey.FloatLinear(frame * 100, values[0])

case 'color':
color = [int(x * 255) for x in values]
return NuccAnmKey.Color(tuple(color))

return values
Loading

0 comments on commit c21515e

Please sign in to comment.