We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@niftools/blender-niftools-addon-reviewer -
Before creating a new issue, ensure that
Helpful resources
The issue will get closed off immediately as invalid if
Fill out the template below to the best of your ability, including .blend files, nifs, logs; help us to help you.
For games that use interpolators rather than keyframe controllers, the rest pose has to be set on the interpolator. As reported by @kormákur
[Provide version information for the Blender Niftools Addon the issue occurs with, available in Blender in the Add-On section]
[Provide information on which version of Blender the issue is seen]
[Provide a brief overview of what OS your running on]
Workaround:
def apply_skeleton_to_interpolators(controller_sequence): directory = os.path.dirname(NifOp.props.filepath) skeleton_path = directory + '\\' + 'skeleton.nif' skeleton_file = NifFormat.Data() try: with open(skeleton_path, "rb") as _file: skeleton_file.read(_file) except OSError: raise NifError(f"skeleton.nif is missing in path '{directory}'") for controlled_block in controller_sequence.controlled_blocks: try: ninode = next(s_block for s_block in skeleton_file.blocks if type( s_block) is NifFormat.NiNode and s_block.name == controlled_block.node_name) except: break if not ninode: NifLog.warn(f"Couldn't find skeleton NiNode {controlled_block.node_name}") continue interp = controlled_block.interpolator interp.scale = ninode.scale interp.translation.x = ninode.translation.x interp.translation.y = ninode.translation.y interp.translation.z = ninode.translation.z scale, quat = ninode.rotation.get_scale_quat() interp.rotation.x = quat.x interp.rotation.y = quat.y interp.rotation.z = quat.z interp.rotation.w = quat.w NifLog.info("Finished applying skeleton to interpolators")
[Ordered list of the steps required for recreating the issue, including settings] #.
[Describe what you expected to have resulted from this process]
Interpolator transform is zeroed.
[Optional, suggest fixes, improvement or reasons for the bug might have occurred]
[If relevant, include a screenshot]
[Provide logs file generated during the error as well as the blend and nif files are related to the issue]
[Output from the Info View, available at top of Blender viewport, drag to expand]
[Set the logging level to 'Debug' and attach the output of the console. Enable via Window -> Toggle Console]
[Attach the blend file if the issue is reproducible]
[Attach input or output files, samples of what the expected output should be and reproducing the issue]
[Reference any known issues - https://github.com/niftools/blender_niftools_addon/issues]
[Anything else you feel is relevant]
The text was updated successfully, but these errors were encountered:
Store bind pose on NiTransformInterpolator - closes niftools#458
870c23b
Idk why this didn't autoclose with the merge.
Sorry, something went wrong.
neomonkeus
Successfully merging a pull request may close this issue.
@niftools/blender-niftools-addon-reviewer -
Before creating a new issue, ensure that
Helpful resources
links on the right-hand side.The issue will get closed off immediately as invalid if
Fill out the template below to the best of your ability, including .blend files, nifs, logs; help us to help you.
Issue Overview
For games that use interpolators rather than keyframe controllers, the rest pose has to be set on the interpolator. As reported by @kormákur
Version Information
Blender Niftools Addon Version Info
[Provide version information for the Blender Niftools Addon the issue occurs with, available in Blender in the Add-On section]
Blender Version Info
[Provide information on which version of Blender the issue is seen]
Platform information
[Provide a brief overview of what OS your running on]
Context
Workaround:
Steps to Reproduce
[Ordered list of the steps required for recreating the issue, including settings]
#.
Expected Result
[Describe what you expected to have resulted from this process]
Actual Result
Interpolator transform is zeroed.
Possible Fix
[Optional, suggest fixes, improvement or reasons for the bug might have occurred]
Screenshot
[If relevant, include a screenshot]
Logs and Files
[Provide logs file generated during the error as well as the blend and nif files are related to the issue]
Info Bar Output
[Output from the Info View, available at top of Blender viewport, drag to expand]
Console Output
[Set the logging level to 'Debug' and attach the output of the console. Enable via Window -> Toggle Console]
Blend File
[Attach the blend file if the issue is reproducible]
Nif File
[Attach input or output files, samples of what the expected output should be and reproducing the issue]
Similar Known Issues
[Reference any known issues - https://github.com/niftools/blender_niftools_addon/issues]
Additional Information
[Anything else you feel is relevant]
The text was updated successfully, but these errors were encountered: