How can I get the cellName of the cell that I modify a parameter into an edit property from ?
I found for the libName:
but not for the cellName
thanks for your help,
The same could in theory be done with cdfgData->id->name but this is dangerous (for both cell name and lib name). The issue is that if you want to call CDF callbacks procedurally, you may then work with the instance CDF rather than the cell CDF, and the ->id points at the instance object rather than the cell object.
I would probably do:
libName = cdfgData->id->libName || cdfgData->id->lib->namecellName = cdfgData->id->cellName || cdfgData->id->name
That means it would first try looking at the libName and cellName attributes on an instance object (which would work if the cdfgData is an instance CDF) and then the appropriate attributes if it's a cell object from cell CDF.
Thank you Andrew,
Work fine !