Hello,
I was handling a “node” and wanted to apply a “target” to it, in order to obtain the normal element (the one listed in the project explorer i guess),
I applied it to a “function node”, and obtained a variable containing a JavaMember object!
Like this one:
<py4j.java_gateway.JavaMember object at 0x0000025608079C48>
This does not seem to look like anything I have dealt with in the past, indeed wraping it into a python object just did not work:
py4j.java_gateway.JavaMember is a Py4J internal class… I don’t know how you can reference it from Python.
The EObject.get_class() methods needs a Java EObject as parameter to get it’s EClass and see if we can find a corresponding Python class to later do some type checking or wrap the Java EObject. And JavaMember is not an EObject.
Well using “target” on a any node java object variable, seem to get us that instead of a normal java object.
So there would be method to handle a JavaMember,
…
Or maybe find an alternative to find the target other than aNode.target?