Skip to content

v0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ScanMountGoat ScanMountGoat released this 17 Oct 21:32
· 154 commits to main since this release

ssbh_data_py

See the examples and readme for up to date sample code.

Installation

The package can be installed for a supported python version using pip on the latest version of Windows, Linux, or MacOS. The prebuilt wheels (.whl files) are included only for situations where pip might not be available such as for plugin development for applications.

Installing: pip install ssbh_data_py
Updating: pip install ssbh_data_py --upgrade

Changes

  • Fields and function parameters that used to only accept lists of floats or ints now accept sequences such as tuples or numpy arrays. For example, bone.transform = numpy.zeros((4,4)), mesh_object_data.vertex_indices = numpy.arange(12), and attribute_data.data = [(1,0,0), (0,1,0)] now work as expected without requiring any conversions.
  • Improved the printed representation of ssbh_data_py.anim_data.Transform and ssbh_data_py.anim_data.UvTransform
  • Added ssbh_data_py.mesh_data.calculate_smooth_normals and ssbh_data_py.mesh_data.calculate_tangents_vec4 functions from ssbh_data
  • Fixed an issue where the 4th value of Transform.rotation would sometimes be set to NaN.
  • Improved the readability of Python exceptions triggered by panics in Rust code.

Breaking Changes

ssbh_data_py.anim_data

  • Renamed all UvTransform fields
  • Changed the expected type from float to integer for Transform.compensate_scale
  • Added the final_frame_index field to AnimData. This should be set to frame_count - 1 or 0 for empty animations.