<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Irene,
<div class=""><br class="">
</div>
<div class="">It’s not clear to us as readership what step of the tutorial you are referring to.</div>
<div class=""><br class="">
</div>
<div class="">I would expect that if you use ft_meshrealign with a cfg that is proper for your use case, you should be able to realign the object.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Jun 2024, at 11:33, Irene Petrizzo via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Thank you Jan-Mathijs! This solved the first part of my problem. However, after indicating the fiducial positions in the interactive window, when I check the position of the axes the positive and negative y-axes don't go through the preauricular
 points, and also the X axes is shifted on the forehead.</div>
<div class="">I am following exactly the steps of this tutorial: <br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ftutorial%2Felectrode%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302610177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=FfiPMaUvTZ6ANqtfTzhTIXuZUR8e%2FsdGrRFoxzx%2BHdc%3D&reserved=0" originalsrc="https://www.fieldtriptoolbox.org/tutorial/electrode/" shash="amlRGW0706JBUdRaqxl8T4IOvrdA0K42kAtgJThxDEjb1s24LOBueP+KH9zbnvJ2E8PjwehtVNPapZdTfR6CJ6zn3GeZIJ8YZY/BATRBMLIxdEleQyDyJw0GtwYP2slP4i3u3so1fukLuNT2WD5LoQvPNB+Ay9XWmWy9nzTIOeQ=" originalsrc="https://www.fieldtriptoolbox.org/tutorial/electrode/" shash="diTOWfZzGVeUcZjXHY4pZQYKka/+1cN6rOxv0tmFCf3d0dqOHF+Ati1yp3dEgm6uC97o3BYXwNWy1WvCceVuekbtBnL+QmTTYcSx6HZmyw4+eEX+WEs0tMkX+FP5TtrMc8pFwrfIJkM5ipeXMD+7mzZnK770S6JmqgdDd//rXp8=" class="">https://www.fieldtriptoolbox.org/tutorial/electrode/</a></div>
<div class=""><br class="">
</div>
<div class="">But I can't figure out the problem <br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il giorno mer 5 giu 2024 alle ore 10:01 Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> ha scritto:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">Hi Irene,
<div class=""><br class="">
<div class="">Typically, obj-files do not contain explicit information w.r.t. the metrical units in which the coordinates are expressed. FieldTrip tries to do an educated guess, but may fail depending on the contents of the file.</div>
<div class="">If ‘dm’ is wrong, you can just change this ‘by hand’, after the file has been read in.</div>
<div class=""><br class="">
</div>
<div class="">hs = ft_read_headshape(filename);</div>
<div class="">hs.unit = ‘cm’/‘m’/‘km’/‘mm’/‘feet’/‘inch' <-choose one of those (apart from feet or inch)</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 4 Jun 2024, at 10:09, Irene Petrizzo via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="">
<div class="">
<div dir="ltr" class="">When trying to read a headshape in the .obj format I get the following warning:
<br class="">
<br class="">
<div class="">Warning: the estimated units are not very decisive, assuming that the units are "dm"
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">The displayed headshape is out of dimensions and when trying to set the fiducials the indicated position is not recognized correctly by the script. This happens only with this headmodel. Is there a way to correct this or is the .obj file corrupted?<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thank you,<br class="">
</div>
<div class=""><span class="gmail_signature_prefix">-- </span><br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class=""><span style="color:rgb(102,102,102)" class="">Irene Petrizzo<br class="">
</span></div>
<div dir="ltr" class=""><span style="color:rgb(102,102,102)" class="">Postdoctoral Fellow<br class="">
</span></div>
<div dir="ltr" class=""><span style="color:rgb(102,102,102)" class=""><br class="">
</span></div>
<div dir="ltr" class="">
<div class=""><font size="2" color="#666666" class="">University of Trento</font></div>
<div class=""><font size="2" color="#666666" class=""><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;font-stretch:inherit;line-height:inherit" class="">CIMeC - Center for Mind/Brain Sciences</span> | 
</font><span style="font-size:small" class=""></span><i class=""><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fr.unitn.it%2Fen%2Fcimec%2Fper2con&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4YR6ZEpF7a7bLcEvPfNyVnSP4l5daRBMf6XpVsxegPo%3D&reserved=0" originalsrc="http://r.unitn.it/en/cimec/per2con" shash="wi50rGH0qeVs+w5YL2TzZWYKGMxiD8edhJ4rOG94LqLJbDHRvshO+eBS86Nrue7F9ZO+3swjnc1rhalxEnFZMydikGmfZEEKs3cSE8SKaArWQauZhMrGV0bpPohIe1jg6hg6EtKYa2QNY2ygk9Xrp/s1cdKvi5AbEvMfvu87wtg=" originalsrc="http://r.unitn.it/en/cimec/per2con" shash="ax8I1wQ2vi3NA9eQ9M7IonmMc2fA2UuafICzSHIO5fd2Gr7tGs6qCyCxuCxaXLDssdlAht4qQUMk8qW1m8NxztOKJSsPG+8y5RlvfbkpI+gEf0TbP1Om+94/YWXIYqcT7d1UvMbHCrgvOPR1M4vaiblybKrnF4afWY6Q1uDF9UQ=" style="color:rgb(17,85,204)" target="_blank" class="">http://r.unitn.it/en/cimec/per2con</a><br class="">
</i></div>
<div class=""><font size="2" color="#666666" class="">Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN)
</font><font size="2" color="#666666" class="">Italy</font>
<div class=""><font size="2" color="#666666" class=""><br class="">
</font></div>
<i class=""><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4z7wvpwD2IoQq97FShlF8sLls1rFIjCXFsfHEfCItov2fU-iVsEupHbWm_rEwQur0YCxpbC2Gs" width="420" height="52" class=""></i></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="d2D1P3pFOFeXo6Mzv+4BHOXBsMu5nt3uZ+99WP38vkBMb5sm8221hmO4abOQflN/2w8Jx8q5540oVekOP7Sa2rxEFKa1Ml0ml4XZwisQ6Oi7QS0uGjqneMcVANLq7+PAQ3OjvaGPH6Wg3+5Vff8/iDb+4ptSin6GjFboTQCbLDE=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="DhR9FjwyAHsxBcp9LbMatbFWqYpOYKANUaGKd5YgvaqvceM9y/QgToCj1hh3g7UCB5vS/YiHOjQb/HrcaLP7QXhpxoR7hia9Hw/4bwLsHjPZjpaqw4dJKZJoY/cteVQKAxSAtugvrp0F/DOsRJCj31tp5QxMkbAGEDuabUH92CY=" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=oBa%2FIGsJ3z82Q3swJPb2%2FBXccEo1ASrjJCGnKnnG9xg%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="hVJTX0kPU2xYUjMq2SmGl+m8q/IpjFcx4y6I3EejxkV9t8eDfpYOxo76oEaSYriKSYm3bRbOxcvegnCKzRTclklwX+Yn9V0YsFm44yNKDUEdkCiNj543uEPDjb4kOV52jvHvpH3kIcb4TKA+gH+I/iuFXocO9bfv60v5MoPkAvQ=" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="zypd1+0f5N15gFyCDOpWUe3vIbAJmZlNnhyGp19fFAhG8LyezqbC9285tZaQ/tIk7d7DC5aLdzUmodrbP6jE6DpBSQEVTPzelr49Lk4CvSsUXcOFUVEJeCxfCwetnoSaf2xfPu3tsY14bd3tIZ02LxDO/jHMIv0Ac8Y5K9VfsrI=" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="d2D1P3pFOFeXo6Mzv+4BHOXBsMu5nt3uZ+99WP38vkBMb5sm8221hmO4abOQflN/2w8Jx8q5540oVekOP7Sa2rxEFKa1Ml0ml4XZwisQ6Oi7QS0uGjqneMcVANLq7+PAQ3OjvaGPH6Wg3+5Vff8/iDb+4ptSin6GjFboTQCbLDE=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="ntlzzDb4Gva//UnLPID2SvgG/CwhvYPlAXVodS+vwW57UaSjaw29Cc2WGAvmlmwdLmyhfNUh0eMC28Gu4OZKegC3lF2iZXSEAja2mBAT53MU+d0ghcXchRQLutb2LPqRUsDrONKuwf02P8MAiw10Ji2/4B9yAAz3JT39OxZPFxc=" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=oBa%2FIGsJ3z82Q3swJPb2%2FBXccEo1ASrjJCGnKnnG9xg%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="hVJTX0kPU2xYUjMq2SmGl+m8q/IpjFcx4y6I3EejxkV9t8eDfpYOxo76oEaSYriKSYm3bRbOxcvegnCKzRTclklwX+Yn9V0YsFm44yNKDUEdkCiNj543uEPDjb4kOV52jvHvpH3kIcb4TKA+gH+I/iuFXocO9bfv60v5MoPkAvQ=" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="rVqdCNbdc68UxZ4xfmnVIHR0X4/Y0zRWwafs+MTNv/0IotycIOD4fRu6KaDHFjOgl2cB0csOPv5YaXdJA4GnXc5n15DtYy12lHecbMMbeeK6fJajxUG9keOSJnnBbVOmGfaiCwZ2mITrreQ72nju3yqcIROqpc49iDxqSJfsymI=" rel="noreferrer" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</blockquote>
</div>
<br clear="all" class="">
<br class="">
<span class="gmail_signature_prefix">-- </span><br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class=""><span style="color:rgb(102,102,102)" class="">Irene Petrizzo<br class="">
</span></div>
<div dir="ltr" class=""><span style="color:rgb(102,102,102)" class="">Postdoctoral Fellow<br class="">
</span></div>
<div dir="ltr" class=""><span style="color:rgb(102,102,102)" class=""><br class="">
</span></div>
<div dir="ltr" class="">
<div class=""><font size="2" color="#666666" class="">University of Trento</font></div>
<div class=""><font size="2" color="#666666" class=""><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;font-stretch:inherit;line-height:inherit" class="">CIMeC - Center for Mind/Brain Sciences</span> | 
</font><span style="font-size:small" class=""></span><i class=""><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fr.unitn.it%2Fen%2Fcimec%2Fper2con&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=4YR6ZEpF7a7bLcEvPfNyVnSP4l5daRBMf6XpVsxegPo%3D&reserved=0" originalsrc="http://r.unitn.it/en/cimec/per2con" shash="wi50rGH0qeVs+w5YL2TzZWYKGMxiD8edhJ4rOG94LqLJbDHRvshO+eBS86Nrue7F9ZO+3swjnc1rhalxEnFZMydikGmfZEEKs3cSE8SKaArWQauZhMrGV0bpPohIe1jg6hg6EtKYa2QNY2ygk9Xrp/s1cdKvi5AbEvMfvu87wtg=" originalsrc="http://r.unitn.it/en/cimec/per2con" shash="ElYXOd+yiL/OsaqVF+8dmPIN8FGH6hvt39S1CfMqX1YMMtqJx6jxyF4Zje6yCfpooCDIFaJvxTK+VweN+o+2FLRZgtTjY2B1UNtclDPC9sgqW+nQZtbst7g1n1iUAJHl+mmocJzVgOs7QaRdHl2dapjbFfzvlIQDzcDir3unWpk=" style="color:rgb(17,85,204)" target="_blank" class="">http://r.unitn.it/en/cimec/per2con</a><br class="">
</i></div>
<div class=""><font size="2" color="#666666" class="">Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN)
</font><font size="2" color="#666666" class="">Italy</font>
<div class=""><font size="2" color="#666666" class=""><br class="">
</font></div>
<i class=""><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4z7wvpwD2IoQq97FShlF8sLls1rFIjCXFsfHEfCItov2fU-iVsEupHbWm_rEwQur0YCxpbC2Gs" width="420" height="52" class=""></i></div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C48b6a44d9bcf4db1260e08dc87af8f4e%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638534435302766430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51YbnxkRcSV%2Bcm7F727jA4TKC2fVtAZ11vG1nk0Fgyg%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="d2D1P3pFOFeXo6Mzv+4BHOXBsMu5nt3uZ+99WP38vkBMb5sm8221hmO4abOQflN/2w8Jx8q5540oVekOP7Sa2rxEFKa1Ml0ml4XZwisQ6Oi7QS0uGjqneMcVANLq7+PAQ3OjvaGPH6Wg3+5Vff8/iDb+4ptSin6GjFboTQCbLDE=" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>