After I successfully executed tutorial “Scaling: Lesson 4” on the StandingModelScalingDisplay-model, I tried the same on the SeatedHumanFullWithNeck-model with the STL files supplied in the tutorial itself.
Unfortunately AnyBody gave me the following error when I tried to load the script:
WARNING(OBJ1) : C:/U…s/O…g/D…s/M…n/A…2/AMMR/Body/A…n/S…g/ScalingCustom.any(250) : Thigh.scaling_message_Left_Thigh : Custom scaling for ‘Left.Thigh’ segment is used! Please specify a scaling law should an ‘Unresolved object’ error occur
ERROR(SCR.PRS9) : C:/U…s/O…g/D…s/M…n/A…2/AMMR/Body/A…n/S…g/ScalingCustom.any(255) : ‘T0’ : Unresolved object
I thought I had already specified a scaling law in the Main folder as shown in the tutorial: #define BM_SCALING CONST_SCALING_STANDARD
However the error tells me I still have an unresolved object “T0”. Can anyone explain to me what this might mean?
Could you please describe what versions of AnyBody you are using, version of the AMMR, where you got it from? This feature is rather new and it may happen that there is some inconsistency in the application inputs.
I would recommend to use the version of AMMR installed with the AMS itself. Hopefully it will work. If not we’ll figure a way to solve it.
Kind regards,
Pavel
P.s. I haven’t had a chance to look at the other questions, but will do it some time soon.
The version of AnyBody that we have been using is AMS v6.0.3.
Eventhough it came with AMMR v1.6.2, we have used AMMR v1.6.3 that we downloaded separately.
We’ll try to implement the scalingtutorial on the Seatedhumanfullwithneck-model using the AMMR v1.6.2.
That is an error. The model was developed based on the older repository and still employs an old implementation of the leg (i think we intentionally keep it to have it consistent with the previous versions).
And the older leg implementation does not have a T0.
A quick fix would be to replace the problematic line (just click the error link it will get you to the right place):
AnyFunTransform3D &TSeg2ScaleFrame = ....BodyModel.Left.Leg.Seg.Thigh.Scale.T0;
to be changed to:
#if BM_LEG_LEFT == CONST_LEG_MODEL_Leg
AnyFunTransform3DIdentity TSeg2ScaleFrame = {};
#endif
#if BM_LEG_LEFT == CONST_LEG_MODEL_TLEM
AnyFunTransform3D &TSeg2ScaleFrame = ....BodyModel.Left.Leg.Seg.Thigh.Scale.T0;
#endif
That’s a correct way to implement this problematic place. You may hit it a few more times for other parts of the leg - please follow this logic. We will release a correction for the next release of AMMR.