This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MIT License | |
| // Copyright (c) 2026 nemurigi | |
| using System; | |
| using System.IO; | |
| using System.Reflection; | |
| using UdonSharp; | |
| using UdonSharp.Compiler; | |
| using UdonSharpEditor; | |
| using UnityEditor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hou | |
| def get_declare(name, attrib): | |
| data_type = attrib.dataType() | |
| size = attrib.size() | |
| attrib_name = attrib.name() | |
| if not (data_type == hou.attribData.Float or data_type == hou.attribData.Int): | |
| return '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://github.com/bdunderscore/modular-avatar/blob/main/Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs | |
| dict get_bone_mapper(){ | |
| dict bone_mapper; | |
| bone_mapper["Hips"] = {"Hips", "Hip"}; | |
| bone_mapper["LeftUpperLeg"] = { | |
| "LeftUpperLeg", "UpperLeg_Left", "UpperLeg_L", "Leg_Left", "Leg_L", "ULeg_L", "Left leg", "LeftUpLeg", | |
| "UpLeg.L" | |
| }; | |
| bone_mapper["RightUpperLeg"] = { |