Notifications
Clear all

[Closed] Digging Sub-properties?

is ther a way to scan through an objects’ properties and sub-properties?

sumthing like this:


for i in 1 to $.SUBPROP.count do
(
if $[i].SUBPROP.name == "SubpropertyName" then
	 (
	 --code goes here
	 )
)

maybe if i hav an object with multiple list controllers… is there a way to get a certain controllers’ name by scanning/digging through it? sorta like looking at an objects’ track view, with everything shown and expanded, one-by-one.
or a certain materials’ submaterials name or maptype…

show $ only shows the first level of an objects property…i hope theres a command to show all the sub-levels (not sure how its called).

hmm… looking through subanims now… i hope im in the right track…

2 Replies

Yup, by the sounds of things subAnims are your best bet. They are tricky to navigate at times but once you get a good recursive loop going getting all of an objects preperties will be made available to you.

Thank you very much Wahooney. I’ll try a couple of loops when I hav time (been very busy) and try to work this out.