Scripting GSAnnotation()

I am trying to script sth around annotations. Accessing or setting their values them via


works pretty well, but I seem to not be able to make a new one. I tried

newAnnotation = GSAnnotation()

According to the Core Documentation, I figured it is inherited from GSElement : NSObject, basically the same as for a GSNode, which works like that:

newNode = GSNode()


But with my GSAnnotation() trial, I get the Error:

TypeError: Use class methods to instantiate new Objective-C objects

Any hint on that, please?

The GSAnnotation is not covered by the python wrapper. I will do that for the next update. For now use:


Thanks so much! .alloc().init() is the silver bullet.