PDA

View Full Version : Custom attributes iteration


mondragon
05-10-2009, 09:30 AM
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

)
)

ZeBoxx2
05-10-2009, 04:47 PM
for prop in (getPropnames attr) do (
print prop
)

CGTalk Moderation
05-10-2009, 04:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.