Hi everyone,
I have a set of c3d files in which only part of them have some additionals virtual markers defined, and whenever they are avaialable, I would like to use them instead of the conventional ones but without having to manually open each file to check it.
If I had to do it manually for each subject, I could create specific #define _VLASI or #define _LASI definitions in the subject specific data, and then in the marker protocol something like
#ifdef _VLASI
CreateMarkerDriver LASI (
MarkerName= VLASI,
[...]
#ifdef _LASI
CreateMarkerDriver LASI (
MarkerName= LASI,
[...]
#endif
but this would involve a manual definition for each subject and I want to automatize it to make sure I don't miss any of them.
When loading the model, the data of both markers are imported from the C3d file anyway as:
Main.ModelSetup.C3DFileData.Points.Markers.VLASI
Main.ModelSetup.C3DFileData.Points.Markers.LASI
and I'm struggling to define something like
if "Main.ModelSetup.C3DFileData.Points.Markers.VLASI" exists, then do this,
if it doesn't exist, don't give me an error but proceed as that.
Any suggestion?
Thanks in advance!