Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 6, 2014 14:27:11 GMT -5
I've set up some mel script to streamline action creation, but it's still rough because the miArmy functions require gui interactions. I wish I could specify stuff in the code. Take for example the command McdCreateActionCmd() It works fine to run, but asks a bunch of stuff which can all be specified in the function call name, setup, agent speed, playback, cycle stuff, and confirmation. And McdParseRootBoneCreateOAgent(0) gives a gui with only one unnecessary button. Let's streamline!
|
|
|
Post by Yeah YANG on Nov 6, 2014 19:44:48 GMT -5
Hello Kleer:) You may didn't know there is already have this command: If you're familiar with Python command, please check this one: ...\Basefount\Miarmy\maya\scripts McdPipelineCommands.py And inside there is a command: def McdCreateActionNode(inActionName = "",......, isFinal = 0):It's dedicated for your action creation~ Cheers! --Yeah I've set up some mel script to streamline action creation, but it's still rough because the miArmy functions require gui interactions. I wish I could specify stuff in the code. Take for example the command McdCreateActionCmd() It works fine to run, but asks a bunch of stuff which can all be specified in the function call name, setup, agent speed, playback, cycle stuff, and confirmation. And McdParseRootBoneCreateOAgent(0) gives a gui with only one unnecessary button. Let's streamline!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 7, 2014 14:38:03 GMT -5
Cool!
This one "McdSelectMcdGlobal" does not have any option to turn off the confirm button though. I commented it out in my local copy of the code. Maybe an option to turn it off would be nice. I don't think it should have any confirmation anyway. We can see the nodes it has made.
and McdParseRootBoneCreateOAgent has a hard coded option box of fine tuning the agent bone orientation.
So, any mandatory confirmation box (when everything is okay, as opposed to a valid pipeline stopping error) is making it harder for me to streamline my agent action creation.
|
|
|
Post by Yeah YANG on Nov 7, 2014 21:08:15 GMT -5
OK Kleer, I modified this: And then next upgrade, you can directly use: McdSelectMcdGlobal(False) Cheers! --Yeah Cool! This one "McdSelectMcdGlobal" does not have any option to turn off the confirm button though. I commented it out in my local copy of the code. Maybe an option to turn it off would be nice. I don't think it should have any confirmation anyway. We can see the nodes it has made. and McdParseRootBoneCreateOAgent has a hard coded option box of fine tuning the agent bone orientation. So, any mandatory confirmation box (when everything is okay, as opposed to a valid pipeline stopping error) is making it harder for me to streamline my agent action creation.
|
|