Gimp.Resource.get_by_id
@accepts(gint32)
@returns(Gimp.Resource)
def get_by_id(resource_id):
# Python wrapper for gimp_resource_get_by_id()
Returns a Gimp.Resource representing resource_id. Since Gimp.Resource is an abstract class, the real object type will actually be the proper subclass.
Note: in most use cases, you should not need to retrieve a Gimp.Resource by its ID, which is mostly internal data and not reusable across sessions. Use the appropriate functions for your use case instead.
Since 3.0
- resource_id
The resource id.
- Returns