Hi Pavel,
I’ve something like this in AnyBody:
AnyFloat LandmarksAB = ...
AnyFloat LandmarksCT = DesignVar({
{0.3289, 0.4259,-0.175},
{0.2899, 0.4205, 0.0139},
{0.3220, 0.4332,-0.3786},
{0.3063, 0.4872,-0.3703},
{0.2893, 0.4268,-0.373},
{0.2619, 0.4759,-0.3729}});
AnyFunTransform3DLin2 S_FORWARD_RIGIDBODY = {
Points0 = .LandmarksAB;
Points1 = .LandmarksCT;
Mode = VTK_LANDMARK_RIGIDBODY;};
And I’m trying to do this:
macrolist_kinematics =[[ ...
'classoperation Main.Studies.HumanModel.Scaling.GeometricalScaling.Left.Thigh.MyScalingLaws.LandmarksCT "Set Value"\
--value=%s' %(LandmarkSTR),
...
... RunKinOpt ... ]]
with a String like this:
LandmarkSTR =
"{{0.1389704, -0.02541524, -0.8504597},
{0.07091749, -0.01174339, -0.6284968},
{0.1561644, -0.04397405, -1.044624},
{0.1457588, 0.01952965, -1.04857},
{0.1191651, -0.05498121, -1.04815},
{0.09407188, 0.006200216, -1.052578}}"
I tested it for Float[1] and Float[3] which worked fine therefore I thought writing strings in any way is permitted. The only point is, that it should be in the specific form of the syntax of the AnyBody value. Is it possible that there are some problems with a Matrix in terms of Float[6][3].