After creating an object type with RegisterObjectType, I want to let the users of my program dynamically add and remove properties for the object type, and also let them access the properties with the convenient .xxx style of coding.
So I use RegisterObjectMethod to create the necessary get_xxx and set_xxx functions, and everything works great. To make this easily reversible later, I enclose it in a BeginConfigGroup/EndConfigGroup.
The trouble is, using RemoveConfigGroup after this does not seem to remove these object methods. No errors or other problems occur, but the get_xxx/set_xxx functions remain as if they had not been removed, and can happily be used still.
The same RegisterObjectMethod procedure can then be repeated, also with no errors, but this seems to cause a duplicate of the functions to be registered, so that scripts fail to compile with the message "Found multiple get accessors for property 'xxx'"
Just wondering if this is the expected behavior. And if so, is there a better way to do what I'm trying to do... thanks!