I would like to change the muscle attachments (insertions/origins) of the standing model separately in one leg. Therefore, I already modified the points in the body-part, which certainly effects both sides. Furthermore, I dont want to touch this part of the model (if possible). Is there a smart way how to achieve this?
Yes, you could use a SetValue operation to do that without modifying the repository (which is a good practice). Here is a short example of how this can be achieved:
Use SetValue as a pre-operation for InitialConditions and access the needed side by using the link to the actual values, e.g.:
Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.GluteusMinimusNode.sRel
thatās exactly what I was looking for. Thanks a lot! Do you still have any ideas, how to change the attachments of only one side? The only method, which comes to my mind is to duplicate and rename the CadaverParameters.any and to include the file two times.
it works fine, thank you! I think I was a bit confused about āusing the link to the actual valuesā. So I automatically assumed that you were talking about the original definition in the body-part.
Hi Pavel,
Iāve been working on Malteās model and ran into the following warning message using the new AnyBody version 6.0:
Set Valueā operation on this value-object has broken symbolic dependency. (āReset Valueā to re-establish this dependency)
Additionally to the aformentioned muscle attachements, Iām also using the SetValue operation on a different AnyVar, that is evaluated as a constant, which gives me the following error:
āSet Valueā operation on this value-object is not allowed
I did not have this problem with the 5.3. Version, were there any changes that could affect this?
Best regards,
Kat
I donāt think anything changed in the latest AMS, but some warnings have changed. You are overwriting with this set Value function a fixed variable, therefore you get a warning, to make you aware of this. This is just to avoid that set value is used unintentionally.
to be sure, click in the model tree on the muscle attachment node to see if it has the new value.
the variable isnāt overwritten by the AnyOperationSetValue, only the RefNodes areā¦
It works fine in the 5.3 version, not in the 6.0ā¦
regards,
Kat
to demonstrate my problem on an easy model, I slightly changed the Demo.Arm2D model and the AnyOperationSetValue demo, that is available through the AnyScriptReference Manual.
The model runs in the 5.3 AMS version, not in the 6.0!
Any idea why?
Best regards,
Kat
In AMS v6.0 only editable values can be set with the āset valueā operation. That means only design variables and by default design variables can be used.