Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Attribute Type in Object Type  (Read 8119 times)

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Attribute Type in Object Type
« on: July 21, 2008, 06:25:07 pm »

Steve,
With the 0.97b preview, you added the Attribute type to the Object Type.  What do you have planned for the Attribute type?  I have been using it in my scripts as a user input ability for command scripts, but I am hesitant to continue this practice if you have something else in mind.

If the attributes for objects is destined to become a user input ability, then would it be possible to add a "SetAttribute" method?  That way a script could preload the attributes and not require manual input, where typos are all too probable.

Are you also planning to add the Attribute type to Materials too? 
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: Attribute Type in Object Type
« Reply #1 on: July 30, 2008, 02:55:37 am »

Attributes are for adding new properties to Objects, Materials, Elements, etc.  You may use them as you like.  I've also chosen to use them to extend Materials properties for thr ART ray tracer but that doesn't mean they are reserved. Obviously there is a small chance that the same attribute name will be used by two people for different things but that's not too likely I think.

Adding a SetAttribute function to objects and materials and GetAttributes to materials, etc. is a good idea.  I'll see if I can get those added in theo next preview or so.

It's a bit of work to add and test the SetAttribute functions.  There's a lot of data types to handle, different cration functions, etc.  That's why I didn't add it initially.  I just didn't get it all finished.
Logged