Get a generator ref from the scripting context by asset ID. Returns 0 if not found.
int getGeneratorRef(int assetId);