12-22-2010, 02:42 AM
01-10-2011, 11:57 PM
Without an example of the code I don't know what the Bone object implements, this is how you would define and instance method on the bone object:
# manipulate the name here
If you post up the Bone class code it would help us to be able to shoe you how to actually change/assign the name. You may simply be able to do something like this:
Which would create getter and setter methods for the @name attribute
01-11-2011, 01:20 AM
Thanks for the the reply. I'm onto something else but will return soon to try out your suggestions. Thanks
01-18-2011, 06:01 AM
Here's the file. It is not made by me, but I want to use it as a required file to set up a skeleton. I need to give the bones names in my own code so that I can find and rotate them.
I am sure what you noted is fine but I am still not sure how to implement it.
01-20-2011, 07:24 AM
Just figured out how to fit it in - works great! Thanks
08-24-2011, 09:12 AM
... if you want to add methods to a class someone else has created. In my case, the original author had no need to name instances, but I did because I wanted to identify and animate each
... that was a long time ago!