saturday06 / VRM-Addon-for-Blender

VRM Importer, Exporter and Utilities for Blender 2.93 to 4.2
https://vrm-addon-for-blender.info
MIT License
1.33k stars 141 forks source link

Feature request: Eyedropper for bone selection #76

Open saturday06 opened 2 years ago

saturday06 commented 2 years ago

Is your feature request related to a problem? Please describe.:バグじゃないけどアドオンの動作でなにか困ってることがあれば A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like:どう動いてほしいかをどうぞ A clear and concise description of what you want to happen.

Describe alternatives you've considered:他にこんなんでもいいよ、というのがあれば A clear and concise description of any alternative solutions or features you've considered.

Additional context::なんかほかに書きたいことがあれば Add any other context or screenshots about the feature request here.

saturday06 commented 2 years ago

これは無理かも。選択中のボーンを選択肢の一番上にするくらいはできそう

FujiSunflower commented 2 years ago

bpy_extras.view3d_utils.region_2d_to_vector_3d()を使用して、レイキャストを行うとボーンの選択が可能になるかもしれませんね。KDTreeを使用すると、高速で最短距離を出せます。