quick fix to the rotate order script. select root bone and run this: select -hierarchy; string $selectionList[] = `ls -sl`; for ($item in $selectionList) { setAttr ( $item + ".rotateOrder") 0; }
this worked!! thanks so much, I couldn't figure out why I was getting stuck. this code changes the root order to xyz which is the default (0), but swapping 0 for 4 at the end of the setAttr line sets it to yxz as per the tutorial.
it is very important for mentor to approaches the student with the assumption that the student knows very little about the topic. This is exactly that type of mentor. Thanks!
For people who got stuck at the rotate order script, make sure you don't use quotation marks ' on the first line of code, use ` instead. For me it's the button below the esc key, hope that helped 😎
This is why I don't like coding. Foolishness like this. Maybe there is some great reason why they used ` instead of ' when creating the MEL script language, but really, I mean come on `' Also ` thank you very much `
I had trouble with the script because what looks like single quotes is actually supposed to be the grave accent. The key on the upper left with the squiggle on it ~`
Got to the 13:38 point and since you explained about the orientation setting in the mirror options, I was able to figure out the mirror with orientation selected as the solution to getting the eyes to move together before the popup showed up to explain that. I know that is not the most amazing feat, but just wanted to mention it because it feels good to learn and just some proof of how good your teaching method is that you teach both problem solving and experimentation. Thank you!
Thanks for watching and remember, if you find these videos useful why not hit that THANKS 🙏 button above. If you have any questions please post them in the Discord 👾 server - discord.gg/StbDx4D - You will find me in the Members Only area, and you can get exclusive access here www.antcgi.com/antcgi-club 🐜
Hey, great video! But the script to adjust the joint rotate order doesn't seem to work at all for me, I can't figure out why. $joint is declared not a declared variable. Does it requires another script in a previous video ?
If anyone gets the error // Error: line 5: setAttr: Not enough data was provided. The last 0 items will be skipped. // check if you have any joints that share the same name. That seems to be a humongous issue for the code when it comes to looping with a string when it comes to names. I had the same name in one of my fingers which rendered the script useless from the root except for other part that was not connected such as other fingers and the legs (a tip to check where there could be a redundant naming convention for the joints). Good luck!
I also had this issue but the issue was because I still had the UE4 mannequin in the scene which had all the same bone names. Hope this helps someone else!
My brain can't handle MEL so here's a python alternative for the script: #Adds the maya cmds library import maya.cmds as cmds #Creates a list containing relatives with the type 'Joint' and includes all descendants/ Children(ad) jointList = cmds.listRelatives(type='joint', ad=True) #for every item/ object in the list, set their rotateOrder 4(yxz) for obj in jointList: cmds.setAttr(f"{obj}.rotateOrder", 4)
Hi, I know this is entirely too late to help you. But if your issue is that when you try to select and enter the code it seems to delete itself, you can try using the enter key on your numberpad instead. :)
Foks, i spent an hour to resolve this trouble, cuz i had same problem, but i did it, my mistake was "l" instead of "L" in 8 string of code. Take this if u need and use it. P.S. i don't know why but root joint doesnt change rotate order, but other change rotate order. P.S. Maya 2020.2 ---- string $jointList[] = `listRelatives -type joint -ad`; for ($joint in $jointList) { setAttr ($joint + ".rotateOrder") 4; }; ---
Yes, I thought it didn't work too in the begining but after a few checks here and there I saw that my move tool's orientation was set to "world", when I changed it to "component" I saw that the script had worked actually
I had the exact same problem. I switched version to Maya 2020 and it worked . Overall 2020 is way more stable imo. 2023 and 2024 seems to be very buggy for rigging
quick fix to the rotate order script.
select root bone and run this:
select -hierarchy;
string $selectionList[] = `ls -sl`;
for ($item in $selectionList)
{
setAttr ( $item + ".rotateOrder") 0;
}
thank you!
this worked!! thanks so much, I couldn't figure out why I was getting stuck. this code changes the root order to xyz which is the default (0), but swapping 0 for 4 at the end of the setAttr line sets it to yxz as per the tutorial.
Very thankful, this is working!
THANKS KING
GRACIAS REY
Thank you! I just changed the 0 for 4 and it worked! 🎉
it is very important for mentor to approaches the student with the assumption that the student knows very little about the topic. This is exactly that type of mentor. Thanks!
For people who got stuck at the rotate order script, make sure you don't use quotation marks ' on the first line of code, use ` instead. For me it's the button below the esc key, hope that helped 😎
God
This is why I don't like coding. Foolishness like this. Maybe there is some great reason why they used ` instead of ' when creating the MEL script language, but really, I mean come on `'
Also ` thank you very much `
I had trouble with the script because what looks like single quotes is actually supposed to be the grave accent. The key on the upper left with the squiggle on it ~`
your way of teaching is so perfect
Got to the 13:38 point and since you explained about the orientation setting in the mirror options, I was able to figure out the mirror with orientation selected as the solution to getting the eyes to move together before the popup showed up to explain that. I know that is not the most amazing feat, but just wanted to mention it because it feels good to learn and just some proof of how good your teaching method is that you teach both problem solving and experimentation. Thank you!
You are a gift to humanity
It's really helpful keep uploading more tutorials
Thank you for upload this videos ! there are so useful to me
Thank you so much for the course !
Thanks for watching and remember, if you find these videos useful why not hit that THANKS 🙏 button above.
If you have any questions please post them in the Discord 👾 server - discord.gg/StbDx4D - You will find me in the Members Only area, and you can get exclusive access here www.antcgi.com/antcgi-club 🐜
Hey, great video! But the script to adjust the joint rotate order doesn't seem to work at all for me, I can't figure out why. $joint is declared not a declared variable. Does it requires another script in a previous video ?
Isn't it better to use mirror joints tool at the end of all of those operations?
If anyone gets the error // Error: line 5: setAttr: Not enough data was provided. The last 0 items will be skipped. // check if you have any joints that share the same name. That seems to be a humongous issue for the code when it comes to looping with a string when it comes to names. I had the same name in one of my fingers which rendered the script useless from the root except for other part that was not connected such as other fingers and the legs (a tip to check where there could be a redundant naming convention for the joints). Good luck!
Thank you so much!
I also had this issue but the issue was because I still had the UE4 mannequin in the scene which had all the same bone names. Hope this helps someone else!
@@ptolemyculvenor4603 I was having the same issue until I removed the unreal rig. thank you xD
@@moses_creativestudio7715 No worries glad it helped!
typed out the mel for the rotation order exactly and it just throws back syntax error
question for the coding part do we need to download the charcol editor to do what your did?
Hi!)
Update All RotateOrders Script is not working for me, could you write it in a text file? Or can I find it somewhere?
any mel script is not working at my maya, software whay?
it seems the code to change rotation order isn't work... can you update the code for newest maya version ?
My brain can't handle MEL so here's a python alternative for the script:
#Adds the maya cmds library
import maya.cmds as cmds
#Creates a list containing relatives with the type 'Joint' and includes all descendants/ Children(ad)
jointList = cmds.listRelatives(type='joint', ad=True)
#for every item/ object in the list, set their rotateOrder 4(yxz)
for obj in jointList:
cmds.setAttr(f"{obj}.rotateOrder", 4)
Today I learned how to pronounce "for us" in scottish: FAH-ROUS
I can't seem to activate gimbal mode ?
Edit: nvm im stupid
10:15 Script doesnt work.
Can somebody help me&
Hi, I know this is entirely too late to help you. But if your issue is that when you try to select and enter the code it seems to delete itself, you can try using the enter key on your numberpad instead. :)
script is not working i manually set rotate order
same problem here
I had the same issue, I wonder if it's from caused by using the default script editor instead of charcoal like Ant is using?
Foks, i spent an hour to resolve this trouble, cuz i had same problem, but i did it, my mistake was "l" instead of "L" in 8 string of code.
Take this if u need and use it.
P.S. i don't know why but root joint doesnt change rotate order, but other change rotate order.
P.S. Maya 2020.2
----
string $jointList[] = `listRelatives -type joint -ad`;
for ($joint in $jointList)
{
setAttr ($joint + ".rotateOrder") 4;
};
---
@@smartcode2752 You're a actual god on earth. Thanks king !
@@MsMuruthi im glad it help u!
Please share the script in comments or description then everyone will copy easily
joint -e -zso did not work when executing the command. Did anyone else come to the same problem?
Yes, I thought it didn't work too in the begining but after a few checks here and there I saw that my move tool's orientation was set to "world", when I changed it to "component" I saw that the script had worked actually
i cant rotate local rotation axis, does anyone have a same problem as me?
yes i have the same issue, could you tell how you solved it?
if you still need the solution, then i changed axis orientation from gimbal to object in tool settings of rotation
I had the exact same problem. I switched version to Maya 2020 and it worked . Overall 2020 is way more stable imo. 2023 and 2024 seems to be very buggy for rigging
A little misunderstanding with the eyes. If we need to preserve orientation, why not just use a mirror with "Orientation" instead of "Behavior".
Like I suggest here? ua-cam.com/video/FN05iGspldI/v-deo.html
@@antCGi my bad