Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / iterate over custom attribute properties?
  RSS 2.0 ATOM  

iterate over custom attribute properties?
Rate this thread
 
26439
 
Permlink of this thread  
avatar
  • adriand
  • Posted: 30 April 2009 02:37 AM
  • Total Posts: 14
  • Joined: 22 August 2006 10:12 AM

This is probably a simple question, but I just can’t find the right help doc/example.

How can I get a list of properties for a given custom attribute block (or from the MyObject.baseObject node).  I want to iterate over all the parameters i’ve made, determine it’s type (float, int, point3, etc) and apply the correct controller.

Thanks,
Adrian



Replies: 0
avatar
  • Stokes
  • Posted: 30 April 2009 11:50 AM
  • Location: Boston Area, Massachusetts
  • Total Posts: 198
  • Joined: 22 August 2006 03:52 PM
  • Permlink of this post

what about using getPropNames() and weeding out the ones you don’t want? You can then use getProperty() to access the properties by name.



David “Stokes” Stokes
Senior Technical Artist, Blue Fang Games

Replies: 0