void _setComment (int obj, Params *p) { if (p->comment_name) { const char *name = indigoName(obj); if (name != NULL && *name != 0) { indigoSetOption("render-comment", name); return; } } if (p->comment_field != NULL) { if (indigoHasProperty(obj, p->comment_field)) { const char *prop = indigoGetProperty(obj, p->comment_field); if (prop != NULL && *prop != 0) { indigoSetOption("render-comment", prop); return; } } } if (p->comment != NULL && *p->comment != 0) { indigoSetOption("render-comment", p->comment); return; } }
void renderMolecule(int structure, const char* file) { const char* folder = ""; int number = -1; const char* title = indigoName(structure); renderMolecule(structure, folder, file, -1, title); }