Тёмный

Rigging GEARS in Maya using MEL Scripts ( No Plugin needed ) 

MH Tutorials, the Modeling Hub
Подписаться 160 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@jannesopanen8032
@jannesopanen8032 5 лет назад
I have this problem long time ago and people just didn't know how to make it work :) Thanks Mike!
@MHTutorials3D
@MHTutorials3D 5 лет назад
Very welcome Janne
@nickkraitor6560
@nickkraitor6560 5 лет назад
I am currently working on a project with gears, a crackshaft and a connecting rod, so thought I would go about it with dynamics, using a vortex to turn a fan that then connects though to the gears and other parts. Just thought it maybe easier for what I am doing, not too sure, still learning what way is the best way. Thanks for this video
@MHTutorials3D
@MHTutorials3D 5 лет назад
Very welcome
@thdcinema
@thdcinema 5 лет назад
interesting and informative as always, mike. cheers ;0)
@MHTutorials3D
@MHTutorials3D 5 лет назад
Thanks Doc
@nestorrios9703
@nestorrios9703 5 лет назад
Cool Mondays tutorial 🖖
@MHTutorials3D
@MHTutorials3D 5 лет назад
Thanks Nestor
@dochoa3d
@dochoa3d 5 лет назад
Hi! How would it be a MEL script for a Rubik's cube? Do you think you could make a video about that? Thanks for your videos!
@dominikh8835
@dominikh8835 5 лет назад
It heavily depends on what you want to do. If it's just a simple animation, you are probably faster with just animating groups above by hand. For a 'real' rig you have a couple of options. They vary from high performance but hard to low performance but easy to setup. The simplest approach is to do a script job that is executed every time you select something. The script job will run a function, that iterates over all 20 movable pieces and based on there position, it parents them under the selected control. pseudo code: // rubiks origin is at 0,0,0 and has a side length of 3 if selection == topControl: for cube in myCubes: if cube.worldpositionY == 1: parent cube under topControl and then you do this for all your 6 controls. Another option to do would be to use a little bit of matrix math. In an expression, store all the control values from the previous calculation (just write some variables in the end of the expression): newTopCtrlRotate = topCtrl.rotate rotateOffset = NewTopCtrlRotate - oldTopCtrlRotate cube.rotate = cube.rotate + rotateOffset oldTopCtrlRotate = topCtrl.rotate Just be aware that this is pseudo code and because of the different pivots, you need to do some matrix math to apply the correct transformation to your cubes. Last option I can imagine is to write your own custom constraint. But that's a lot of work to code. Hope that helps. Have fun experimenting. (If you try the parenting method, use locators and parent the cubes below them. Locator shapes have a worldPosition attribute which gives you the world position independent from the parent. You might save some lines there)
@martindiavolo1635
@martindiavolo1635 5 лет назад
Nice
@AdwoaAlphette
@AdwoaAlphette 5 лет назад
Hi Mike, quick question. How do I get a transparent background when I render in Arnold
@jannesopanen8032
@jannesopanen8032 5 лет назад
Select PNG-format for the rendered image for example and tick the box where it says about layers.
@MHTutorials3D
@MHTutorials3D 5 лет назад
@@jannesopanen8032 Yep
@silvaazarian4296
@silvaazarian4296 5 лет назад
Hi Mike . Thank you for all your videos . I have a small request ( not related to this video ) . I made a scene to render in Arnold . I placed an HDRI , but i want the background to be white ( i know how to do it black ) . It's for a turntable , so can't go the easy way of creating a white plane . Thanking you in advance . Regards .
@dominikh8835
@dominikh8835 5 лет назад
Turn off the skydome visibility for the camera. Now take the alpha as a mask for whatever background you want in your editing or comp program.
@amandacgi9310
@amandacgi9310 5 лет назад
Yeah good question . When I render in keyshot , i use an HDRI and choose any plain color i want for the background .
@amandacgi9310
@amandacgi9310 5 лет назад
Well looks like Keyshot is much better than Arnold . I searched in cg forums , a lot of people are asking the same question . No one has an answer . Good luck silva
@akashbhatt7718
@akashbhatt7718 5 лет назад
How to rig car, tank, halicopter, guns with bullet case?? Is there any script for that? Sir can you make tutorial for that?
@InstrumentMania
@InstrumentMania 5 лет назад
thank you loveeeeeeeeeeeeeee from me
@MHTutorials3D
@MHTutorials3D 5 лет назад
Thank you
@larvenkarlsson440
@larvenkarlsson440 5 лет назад
Truly annoying ad that makes it hard to follow the tutorial. Skipped it just because of that, so your annoying trick to try to force me to watch it didn't work
@MHTutorials3D
@MHTutorials3D 5 лет назад
Larven, I am not forcing you to do anything. You don't have to watch my videos or my channel. That is totally up to you. It is no secret that I have a sponsor and without one I can not create free tutorials for those who do want to see them. So like I said, not forcing you to do anything. There are plenty of other videos out there.
Далее
Mcdonalds cups and ball trick 🤯🥤 #shorts
00:25
Просмотров 354 тыс.
Maya Tips | Gear Rigging Maya
7:34
Просмотров 7 тыс.
Maya: Rotating Gears [Expressions]
9:22
Просмотров 10 тыс.
Creating Maya Python & MEL scripts with ChatGPT
9:42
Bottom pivot python script in Maya
7:12
Просмотров 10 тыс.
Why is Maya The Best for Rigging & Animation
10:33
Просмотров 51 тыс.
How to Use Deformers in Maya
8:51
Просмотров 30 тыс.
2D Facial Rigs Just got 10x EASIER in Blender!
10:49
Просмотров 163 тыс.