[Closed] getclassinstance of extened scripted plugins
Miss leading title, but here is the problem…
We have a scripted plugin (child) that extends another plugin (parent)…okay, so that was kind of obvious, but it sets the scene…
We want to be able to use getclassinstances { parent class } and have the child returned within that context (as it is suppose to be a child of the super plugin class)
My quick investigations has thus far demonstrated that this is not possible as:
superclassof { child } returns MAXWrapper
isKindOf { instance of child } { parent class } returns false
- Does any one have any ideas of how we can over come these limitations
- Any one explain to me what is going on with regards to the “extension” of an existing class, as it is obviously not the “traditional” OO extending paradigm…
Cheers
Shane
how about
superClassof $.delegate
isKindof $.delegate {class}
??
is this what you want?
While they both work, we need getClassInstances to return the children of the parent class as well, without knowing what children are avaliable…
So, if we called “getClassInstance { parent }”, we’d get an array of of both { parent } and { child } elements…
Shane