| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| getting the name of a bone -; using mouseover or from a list... | |
|---|---|
| Tweet Topic Started: Nov 22 2007, 01:26 PM (184 Views) | |
| apathyjoe | Nov 22 2007, 01:26 PM Post #1 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
this is for more of a program than a game, and i am wondering if there is a way to do this... import a model, and then populate a list with all of the 'bone names' and allow them to be renamed...or perhaps select on a bone using the mouse and rename them? thanks! |
![]() |
|
| MysteriXYZ | Nov 22 2007, 02:12 PM Post #2 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well you already need to know the names of the bones, you can't retrieve them from the model file using Ultimate 3D. But if you already know them and just want to put them in a list, then you can do this by adding them to an array - or even better, a ds_list, because then you can sort the names alphabetically for example. In normal GM it's quite easy to make a drop-down box using show_menu_pos(x,y,str,def), where each item would have a different bone name. If you then click on an item, it would get displayed in the box and if you right-click on that for example, you could use get_string(str,def) to enter a new name. But it still wouldn't be possible to alter the internal bone name of the model file. |
| U3D is like candy; after extensive consumption, it's Best to brush. | |
![]() |
|
| apathyjoe | Nov 22 2007, 02:43 PM Post #3 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
drat. curses. etc. i was hoping there'd be some way to retrieve the name or index of a bone somehow. the reason - if there are 6 different people working independently on models for this project and they each have different naming schemes for their bone structures, i was hoping there'd be a way to get those names or at least an index so that i could assign a universal naming scheme no matter what the naming scheme the model its creators used. for instance, the creation of a 'bone' selection tool that could retrieve the index of a bone and you could either assign or rename it as a value to a variable 'MyGameBoneRightHand", and then MyGameBoneHand would return the value of whatever the 'right hand bone" was named in the model...in turn MyGameBoneRightHand could be manipulated in u3d scripts no matter what the creator had named this bone in his modeling program. I knew it was a stretch...but i'm still hoping that there's a method. its not a huge deal but would certainly be nifty for my project! haha. thanks for the help. |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)




9:38 PM Jul 11