Gimp.Item.prototype.get_id
function get_id(): Number(gint32) {
// Gjs wrapper for gimp_item_get_id()
}
Note: in most use cases, you should not need an item's ID which is mostly internal data and not reusable across sessions.
Since 3.0
- Returns
the item ID.