property cycling via index

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
lya98
Posts: 15
Joined: December 7th, 2006, 10:39 pm

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!
Darkmoon_UK
Posts: 62
Joined: September 5th, 2006, 3:45 am
Location: Chiswick, London, UK
Contact:

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
Post Reply