BIke 3Dmodel modify

HI~

I want to apply a model of height and weight, this challenge possible?

Mannequin.any and find the other file, but i can not find that i want

I need your help~
Each time, thank you for your kindness

Have a good day~

Hi,

It seems that you are investigating ‘BikeModel3D’ example.

The original BikeModel3D model uses that ScalingStandard method.

If you want to change the height and weight of your human model then you should use different scaling methods.

In the ‘BikeModel3D.main.any’ file you can see the following pieces of code.

    // This section below offers the choice between two scaling strategies for the
    // human model. 

    // ScalingStandard means that all the body parts will have the standard size 
    // at which they were originally developed, i.e. with anthropometric
    // data from the anatomical literature. This roughly corresponds to a 50th
    // percentile European male.    
    #include "<ANYBODY_PATH_BODY>\Scaling\ScalingStandard.any"
    
    // ScalingLengthMassFat will scale each segment of the body to anthropometric data
    // specified in the selected AnyFamily include file, attempting to take the
    // fat percentage into account in the assessment of the muscle strength.
    // #include "<ANYBODY_PATH_BODY>\Scaling\ScalingLengthMassFat.any" 
    // Scaling = {
    //   #include "<ANYBODY_PATH_BODY>\Scaling\AnyFamily\AnyMan.any"
    // };

Then you should change this code like this:

    // This section below offers the choice between two scaling strategies for the
    // human model. 

    // ScalingStandard means that all the body parts will have the standard size 
    // at which they were originally developed, i.e. with anthropometric
    // data from the anatomical literature. This roughly corresponds to a 50th
    // percentile European male.    
    //#include "<ANYBODY_PATH_BODY>\Scaling\ScalingStandard.any"
    
    // ScalingLengthMassFat will scale each segment of the body to anthropometric data
    // specified in the selected AnyFamily include file, attempting to take the
    // fat percentage into account in the assessment of the muscle strength.
     #include "<ANYBODY_PATH_BODY>\Scaling\ScalingLengthMassFat.any" 
     Scaling = {
       #include "AnyMan.any"
     };

But in your model folder you can’t find this ‘AnyMan.any’ file.

In the ‘…/Body/AAUHuman/Scaling/AnyFamily/’ folder you can find this ‘AnyMan.any’ file.

Then, please copy this file and paste it into your model folder. Then it will work.

In the ‘AnyMan.any’ file, you should change Body_Mass, body_height and some of individual segment length values.

I hope this may be helpful to you.

Best regards,
Moonki

I changed code and copy AnyMan.any file
but Run have a Err that i dont think any problem

Constructing model tree…
ERROR(OBJ1) : C:/P…)/A…y/A…3/AMMR/Body/A…n/B…s/G…l/BodyModel.any : BodyModel.UnhallowedCombination : Combination is not allowed: The legs are included without the trunk.
Model loading skipped

and I try change other code
**(change code section)
this code is Run
is this code right???

// Selecting the include file below results in a body model with simple
// constant stength muscles. They are adequate for many purposes and have the
// advantage of not requiring calibration

** #include “<ANYBODY_PATH_BODY>\BodyModels\TrunkNoMusclesTwoLegs\BodyModel.any”

// The include file below selects the three-element Hill-type muscles.
// They require calibration before they can be used, and this can be done
// by the HumanModel.Calibration.CalibrationSequence operation. This must 
// be executed every time the model is reloaded.

** //#include “BodyPartsSetup.any”
**// #include “<ANYBODY_PATH_BODY>/BodyModels/GenericBodyModel/BodyModel.any”

Hi,

You can just follow my suggestions.

I attached the modified model then you can run inverse dynamics.

I’m using AMS V5.3.1 and AMMR V1.5.1.

Best regards,
Moonki

Solve the problem
thanks for your help

and i have one more question about AnyMan.any file

I would like to know the standards for each length(Thigh, Shank Foot Etc)
And What means TD leg???
What is the difference AnthroSegmentLengths and TD legs?

I am deeply greatful to you for your kindness
Have a nice day~

Hi,

  1. Let’s see the ‘BodyPartsSetup.any’ file in the ‘BikeModel3D’ model.
    Then you can see the following pieces of code:
// RightLeg: 1 included, 0 not included
// ************************************
#define RIGHT_LEG 1
// This is just the bones,
// Choose one of the following options to add muscles
#define RIGHT_LEG_SIMPLE_MUSCLES 0
#define RIGHT_LEG_MUS_3E 1


// LeftLeg: 1 included, 0 not included
// ***********************************
#define LEFT_LEG 1
// This is just the bones,
// Choose one of the following options to add muscles
#define LEFT_LEG_SIMPLE_MUSCLES 0
#define LEFT_LEG_MUS_3E 1


// RightLegTD: 1 included, 0 not included
// ************************************
#define RIGHT_LEG_TD 0
// This is just the bones,
// Choose one of the following options to add muscles
#define RIGHT_LEG_TD_SIMPLE_MUSCLES 0
#define RIGHT_LEG_TD_MUS_3E 0


// LeftLegTD: 1 included, 0 not included
// ***********************************
#define LEFT_LEG_TD 0
// This is just the bones,
// Choose one of the following options to add muscles
#define LEFT_LEG_TD_SIMPLE_MUSCLES 0
#define LEFT_LEG_TD_MUS_3E 0

In the current AMMR repository, we have two versions of leg model, ‘Leg’ and ‘LegTD’. So in this bike model you are using ‘Leg’ leg model.
This ‘Leg’ leg model is somewhat old model.
In the wiki page you can see some references of the ‘LegTD’ leg model:
http://wiki.anyscript.org/index.php/AnyBody_Body_Model#LegTD_TLEM

  1. Then, let’s see the ‘AnyMan’ file:
AnyFolder AnthroSegmentLengths = {
  AnyVar ThighLength = 0.45579;
  AnyVar ShankLength = 0.46;
  AnyVar FootLength = 0.200771;
  AnyVar PelvisWidth = 0.176; 
  AnyVar HeadHeight = 0.14; 
  AnyVar TrunkHeight = 0.620233; 
  AnyVar UpperArmLength = 0.340079;
  AnyVar LowerArmLength =0.2690167;
  AnyVar HandLength = 0.182;
  AnyVar HandBreadth = 0.085;
  
  
  // Those two folders are used by the TD leg
  AnyFolder Right ={
    AnyVar ThighLength = 0.4098364;
    AnyVar ShankLength = 0.4210448;
    AnyVar FootLength = 0.2571425;
    AnyVar TalusLength = 0.133*FootLength; 
  };
  
  AnyFolder Left ={
    AnyVar ThighLength = .Right.ThighLength;
    AnyVar ShankLength = .Right.ShankLength;
    AnyVar FootLength = .Right.FootLength;
    AnyVar TalusLength = .Right.TalusLength;
  };
  
 };

If you are using ‘Leg’ leg model, then you should modify the red lines.
If you are using ‘LegTD’ leg model, then you should modify the blue lines.

Best regards,
Moonki

P.S) This section is the self-supported forum. So you may not be able to expect our official support about the questions in this section.
From next time I would recommend you to write your questions on the professional forum:
http://forum.anyscript.org/forumdisplay.php?f=24
Also if you want to get our help for debugging your model then please upload your model in the debug section:
http://forum.anyscript.org/forumdisplay.php?f=21
Using the correct place for questions may be helpful for both you and us.