<div dir="ltr">I need help multiplying out two transforms so that my HAnim model will have the correct HAnim translations and centers.   The transform code is below. You will need to do an initial multiplication of the two transforms, then apply it to translating sites and segments (translations) and joints (centers) found in the hand and foot skeleton code.  We would also like to write out all  the new translations and centers to two files with the below HTML record as a template (fill in name and center or translation). We want an output file for center records and a file for translation records.<div><br></div><div>    <tr><br>      <td><span class="Code">l_talocrural</span></td><br>      <td><span class="Code">0.1101 0.0656 -0.0736</span></td><br>    </tr><br><div><br></div><div><br></div><div>==================================</div><div>       undef($file);<br>        if ($parent_joint eq "l_talocrural") {<br>                $file = "HAnimModelFootLeft.x3d";<br>                $trans =  "<Transform scale='0.15 0.15 0.15' translation='0.08 0.06 -0.025' rotation='1 0 0 -1.57'> <!-- Transform left foot -->\n";<br>                $trans .= "<Transform> <!-- Empty Transform left foot -->\n";<br>        } elsif ($parent_joint eq "r_talocrural") {<br>                $file = "HAnimModelFootRight.x3d";<br>                $trans = "<Transform scale='0.15 0.15 0.15' translation='-0.05 0.06 -0.025' rotation='1 0 0 -1.57'><!-- Transform right foot -->\n";<br>                $trans .= "<Transform> <!-- Empty Transform right foot -->\n";<br>        } elsif ($parent_joint eq "l_radiocarpal") {<br>                $file = "HAnimModelHandLeft.x3d";<br>                $trans = "<Transform scale='0.2 0.2 0.2' translation='0.20 0.85 -0.05' rotation='0 0 1 -3.14'> <!-- Transform left hand -->\n";<br>                $trans .= "<Transform rotation='0 1 0 -1.57'> <!-- Transform left hand -->\n";<br>        } elsif ($parent_joint eq "r_radiocarpal") {<br>                $file = "HAnimModelHandRight.x3d";<br>                $trans = "<Transform scale='0.2 0.2 0.2' translation='-0.20 0.85 -0.05' rotation='0 0 1 -3.14'> <!-- Transform right hand -->\n";<br>                $trans .= "<Transform rotation='0 1 0 1.57'> <!-- Transform right hand -->\n";<br>        }<br>        if ($file) {<br>                my $namespace = $file;<br>                $namespace =~ s/\.x3d//;<br>                $namespace =~ s/<//;<br>                $namespace =~ s/^(.*)/_$1/;<br>                $trailing_humanoid .= "<HAnimSegment USE='hanim_".$parent_segment.$namespace."' containerField='segments'/>\n";<br>                print "<HAnimSegment DEF='hanim_".$parent_segment.$namespace."' name='".$parent_segment.$namespace."'>\n";<br>                print "$trans\n";<br>                # print "<Inline url='&quot;$file&quot;'/>";<br>                parseX3D($namespace, "<$file");<br>                print "</Transform>\n";<br>                print "</Transform>\n";<br>                print "</HAnimSegment>\n";<br></div></div></div>