Delete Custom Attribute in Attribute Holder

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys,
I'm totaly stuck with Custom Attribute and Attribute Holder
I have created several customs attributes in an attribute holder but I want to be able to delete some of these attributes that will be useless when the parametering has been done
Thanks to a post on ScriptSpot I can list and get all the value using :
obj = $ CA_GMod = (custAttributes.get obj.modifiers[1] 1) propsNamesArr = getPropNames (CA_GMod) propsValuesArr = for n in propsNamesArr collect (getproperty CA_GMod n)
I thought I could delete the attribute number 2 to 6 using
for n = 1 to propsNamesArr.count do ( if n > 1 and n < 7 then ( custAttributes.delete obj.modifiers[1] n ) )
But it's not working
I found out that custAttributes.delete obj.modifiers[1] 1 would delete all my custom attributes not the first one...
I have spent a lot of time trying codes found on internet to delete custom attributes and they are working on Base Level but with a modifier, there's nothing
And finally what is the advantage to use Attribute Holder as we can set attributes without using it (and do some wiring) ?
Thanks a lot