Need to create some kind of dynamic constraint ?

80 views
Skip to first unread message

Virbhadra Gupta

unread,
May 21, 2018, 6:03:11 AM5/21/18
to Python Programming for Autodesk Maya
Hello
I am trying to create script that will connect wheels to ground.
My approch is i am trying to connect only translation y with poly mesh.
Geometry constraint is only option.
But we can't control connection it connects all transactions attributes.

Any suggestions will be helpful.

Rémi Deletrain

unread,
May 22, 2018, 4:48:27 AM5/22/18
to Python Programming for Autodesk Maya
Hi Virbhadra,

You wann to make something like this ?

CarTest_01.mp4

Marcus Ottosson

unread,
May 22, 2018, 4:57:46 AM5/22/18
to python_in...@googlegroups.com
Try creating a ground and a 9 vertex plane, "Transfer Attributes" in world-space along normal plane -> ground, and viola, you've got vertices that snaps to the ground. Now you can e.g. attach follicles to that plane to get translate and rotation out of it, and use those to drive your wheels.

On 22 May 2018 at 09:48, Rémi Deletrain <remi.de...@gmail.com> wrote:
Hi Virbhadra,

You wann to make something like this ?

--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/09cdbcdc-4526-40f9-80c6-09c5e8e0c5b6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Virbhadra Gupta

unread,
May 23, 2018, 8:58:39 AM5/23/18
to Python Programming for Autodesk Maya
Hey thanks
Nice idea but when i create follicle it is not following that 9 vtx face.
Can you tell me how to attach may be i am doing something wrong.

Rémi Deletrain

unread,
May 23, 2018, 8:59:26 AM5/23/18
to Python Programming for Autodesk Maya
Hi,

For make this I don't use geometrie constraint. I tryed to make it with this constraint but isn't a good solution. Géometry constraint don't keep distance between all object if the ground isn't plane.
So, in first, i make a basic node for use mesh/nurbsSurface intersect of maya API.

Ray position is your wheel position.
Ray direction is a normal of your square with plane points are wheels positions of your vehicul.

After I implented some function like intersect with given distance, smooth interpollation when you leave intersection (last intersect point and origin point) and other...
Now I use this node for facial intersection too like lip and theeth.

Virbhadra Gupta

unread,
May 23, 2018, 9:00:25 AM5/23/18
to Python Programming for Autodesk Maya
Yes,
Something like that.
Can you tell me overview to make it.

Virbhadra Gupta

unread,
May 23, 2018, 2:08:44 PM5/23/18
to Python Programming for Autodesk Maya
Seems bit complected, i am beginner with scripting.
can you help me to create this node or share this node ?  

Rémi Deletrain

unread,
May 24, 2018, 5:14:23 AM5/24/18
to Python Programming for Autodesk Maya
It's not possible to give you my node because is a property of QuanticDream.
But it's possible to give you an exemple. :)

rdIntersect.py
rdIntersectExemple.ma

Virbhadra Gupta

unread,
May 24, 2018, 12:07:28 PM5/24/18
to Python Programming for Autodesk Maya
Thank you for your help
I will try to create it.
Reply all
Reply to author
Forward
0 new messages