Clarifying question, aren't vertices always moving along their local matrix? You are referring to the object space, the transform node in which the shape is located? Secondly, how are you getting `position_target`? If you already have it, couldn't you simply do `position_start = position_target` and be done?
It sounds like you are expecting to move vertices along their normal, in that case it might be enough to simply add the values of the normal, e.g. [1, 0, 0] to the vertex, e.g. [0, 1, 0] to end up with e.g. [1, 1, 0]. On 13 October 2015 at 09:06, Rémi Deletrain <[email protected]> wrote: > Hello everyone, > > I try to move a vertex based on its local matrix. > For that I took the normal, position, tangent and binormals (I make an > average of them). > > So I was creating my matrix like this > Matrix = [tangent, normal, binormal, position] > > to move the vertex based on a distance I do this. > position_start += position_target * Matrix.inverse > > But I do not have the desired result. > for example whith sphere, I should be able to change this size. > Moving vertex of 10 cm based on the normal. But it makes me a banana ... > And I do not understand why I have this result ... > > Anyone have an idea? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/abda985c-729b-4868-8397-618f13f17ca9%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/abda985c-729b-4868-8397-618f13f17ca9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCW8-ysyq9PsxPvu%2BsktDcPVdMhfYH0So1LJdUdmMfn6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
