Notifications
Clear all

[Closed] Custom attributes iteration

Hi there.

It’s 5:30 in the morning and I give up: I am trying to iterate through the attributes added to an object, but with no luck. below is the code so far… any help is very welcome!

for obj in $* do
   (
 	print obj.name
 	parCount = custAttributes.count obj
 	print parCount
 	
 	for i = 1 to parCount do
 	(
 	  attr = custAttributes.get obj i
 	  print attr.name  
 	  -- so far, so good... now, how do I get the count of actual parameters inside this attribute? or how do I iterate through its members
 
 	)
   )
1 Reply

		for prop in (getPropnames attr) do (
			print prop
		)