Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refitters not working in Blender 4.3+ #192

Open
FreshOrphan opened this issue Jan 6, 2025 · 1 comment
Open

Refitters not working in Blender 4.3+ #192

FreshOrphan opened this issue Jan 6, 2025 · 1 comment

Comments

@FreshOrphan
Copy link

The below error comes up with all body options for refitting a mesh. I've attempted with Blender 4.3.0, 4.3.1 and 4.3.2:

bpy.context.scene.cp77_panel_props.refit_json = 'Lush'
Python: Traceback (most recent call last):
File "C:\Users\wwoma\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\i_scene_cp77_gltf\meshtools_init_.py", line 307, in execute
CP77Refit(context, refitter, addon, target_body_path, target_body_name, addon_target_body_path, addon_target_body_name,self.useAddon, props.fbx_rot)
File "C:\Users\wwoma\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\i_scene_cp77_gltf\meshtools\meshtools.py", line 252, in CP77Refit
autofitter(context, refitter, addon, target_body_path, useAddon, addon_target_body_path, addon_target_body_name, target_body_name, fbx_rot)
File "C:\Users\wwoma\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\i_scene_cp77_gltf\meshtools\meshtools.py", line 311, in autofitter
new_lattice = setup_lattice(r_c, fbx_rot, lattice_object_name, target_body_name, control_points, lattice_points, lattice_object_location, lattice_object_rotation, lattice_object_scale,lattice_interpolation_u, lattice_interpolation_v, lattice_interpolation_w)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wwoma\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\i_scene_cp77_gltf\meshtools\meshtools.py", line 356, in setup_lattice
flat_lattice_points = [lattice_points[w + v * lattice.points_u + u * lattice.points_u * lattice.points_v] for u in range(lattice.points_u) for v in range(lattice.points_v) for w in range(lattice.points_w)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wwoma\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\i_scene_cp77_gltf\meshtools\meshtools.py", line 356, in
flat_lattice_points = [lattice_points[w + v * lattice.points_u + u * lattice.points_u * lattice.points_v] for u in range(lattice.points_u) for v in range(lattice.points_v) for w in range(lattice.points_w)]
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

@Simarilius-uk
Copy link
Contributor

believe this is fixed in main, please test the build below
https://github.com/WolvenKit/Cyberpunk-Blender-add-on/actions/runs/12855741405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants