Page 1 of 1

property cycling via index

Posted: November 15th, 2007, 8:39 pm
by lya98
Is it possible to get the index for the total number of property
groups in a layer as well as the index for the total number of
properties within the group?
Thanks!

Posted: December 5th, 2007, 5:03 am
by Darkmoon_UK
Hi lya,

Yes this is possible through JavaScripts Reflection function. Its probably best for both of us if I just point you to my simple 'Explore' script that demonstrates the use of Reflection. The code should be fairly self explanatory and show you how to explore properties and methods of any object. You can get it from my scripts page here:

http://chrishatton.homeip.net/?page_id=22

If you still have questions after looking at the script please ask.

Incidentally, the ExtendScript toolkit is capable of showing very detailed information about the whole Dynamic Object Model available to it, but by default this is switched off! (Can you have too much information?) Simply right click in the data browser and turn on the three unticked options.

Hope this helps,

Chris