How to rig Automated wheel in maya
HTML-код
- Опубликовано: 11 сен 2024
- In this tutorial i can show you how we can rig an automated wheel working properly in all directions in just 10 minutes..
Here is the expression i can use in this video:
expression:
if (wheel_move_ctrl.auto == 1 )
{
$diff = wheel_rotate_grp.translateZ - wheel_rotate_grp.offset ;
wheel_rotate_grp.rotateX -= $diff * -360 / (wheel_sizeShape.distance*3.14) ;
};
wheel_rotate_grp.offset = wheel_rotate_grp.translateZ
Enjoy.... :)
There is an issues to be fixed. though this video didn't show this.. whenver rotating Y axis the tire rotates... though video looks OK.. cause it was located to the zero base.. if you rotate the wheel_move_ctrl in somewhere which is not zero base.. it happens...
Just what I needed for my small project, thanks!
Bro excellent video ❤️👌
This was so helpfull! Thanks!
String "wheel_rotate_grp.offset = wheel_rotate_grp.translateZ " doesn't make any sense for me. variable "diff" always zero in this case.
// Error: Attribute not found or variable missing '$': wheel_rotate_grp.offset.........Am i missing something here
I think you must have skipped to add attribute "offset" to the wheel_rotate_grp
thank you.
nice
what if we have disc breaks the breaks should be at same posityion but should move with tire
Worked really nice! The only issue I have is at the end when I need to orient constrain the grp to the ctrl (I tried it both ways just in case), the translate axis doesnt follow the rotation axis like in your video. I tried a point and a parent cnst (separately ofc) and didn't work. Any ideas?
If you share the video with me so I will give you a better suggestion
what does this mean.........// Error: Line 1.14: Wrong number of arguments on call to EEnodeRemoved.
Could you tell me what the expression says ? Thank you
For further details you can Emai me so I can describe there it's hard to explain all the things in comments
did you solve the X or Y direction ? this works only X direction or Y.. not for both of two, isnt it ?
It worked in both directions
@@jawwadbinjaved8888 if you mind of you can show in a video how to go all directions. I can find nowhere solved gone z direction amd x direction.
@@MrReactric definitely I will make a video for you soon
can you reach me on whatsup pls. +90 5356849333 I set up the expression edior but wheel_move_ctrl.auto "variable missing error".. May I send you my folder in order to examine what is wrong. pls download link : drive.google.com/open?id=1S_SPohCUKLRhdTGMw4Ul44hsD9keyGJI
does this work if you animate the wheel going around on a track?
no it does not... turning the wheel as it is moving will mess up.
It doesn't work if you do a rotation at a point other than the center of the grid
I think the author knows this, which is why he never moves the tire from 0 0 0 then rotates the control, lol.
Can you provide the project files for this? I would really appreciate it!
Sorry I won't be able to do that you some copyright issues but I can make your's if you want
@@jawwadbinjaved8888 Thanks for the reply. It's ok. I was just checking to see. I will make it. Thanks!!