Hiding markers with the CreateMarker Class

Hello,

I am using the AMMRV1.2 GaitLowerExtremity with AnyBody 4.2.1.1614 and I want to hide both the segment attached markers with optimization axes (default red with red//green arrows) and the loaded C3D markers (default blue). The ‘grey markers’ are already hidden by setting ConstructModelOnOff to Off.

I would guess I should use the MarkerDrawOnOff switch, but this does not work. Even though, if I remember correctly, in previous versions this was the way to ‘get rid of’ these markers. What am I missing?

Kind regards,

Bart Koning

PS. I could add my slightly adapted model, but as I tested this problem on a not-touched repository version it did not seem to make much sense to me?

Hi,
have a look at the CreateMarkerTD class. Outcomment the AnyDrawKinMeasure class and all AnyDrawVector classes and everything should disappear. This is done automatically in the Inverse Dynamics model.
Best regards,
Sebastian

I still have some questions regarding this.

I already guessed this was the solution, but hoped for a easier solution by setting some switch (or boolean) to ‘Off’. Could you tell me what the 'MarkerDrawOnOff ’ switch in the AnyInputC3D class is for?

Secondly, in my CreateMarkerTD class the switch Visible in the AnyKinDriverMarker class is set to Off, which I would expect to render the markers invisible anyway. Why doesn’t this happen?

Hello Bart,

The effect of the MarkerDrawOnOff is not very well explained in the manual…

The c3d object has another setting named ConstructModelOnOff if this is On a model with a segment for each marker will be created, in this case the setting MarkerDrawOnOPff will switch the markers on or off. Please note that using this setting slows the model significantly, and with the introduction of the new AnyKinMotion class this setting is usually not used.

The visible setting you have seen in the CreateMarkerTD in the AnyDrawKinMeasure is for something else… it is supposed to make the markers visible or not, but in fact this setting has no effect, so you can not switch it off. This is obviously a bug and we now have it on our list for the next release, thanks for pointing our attention to this.

Best regards
Søren