
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need help with a rig im working on in maya, i have no experience with scripting/coding (my background is in modelling, shading).
i need to control one attribute of a certain node, depending on what direction another locator is moving(relative to itself). this is to automate the rig so I don't have to manually animate it.
i think it can be done with expressions (expression editor). maybe someone can show me a test scene with 2 locators if they think they can help.
__________________________________
i was thinking if it could work with condition if statements, but the tutorial i watched only showed how to do it with more than or less than fuction, which i dont think will work in this case
this is what i need:
>so if locator 1 is moving in one direction (eg. +X) it will toggle locator 2 to become 0.2 in translateX
>then as soon as locator 1 starts moving in the opposite direction (eg. -X) it will toggle locator 2 to become -0.2 in translateX
so its not as simple as making an expression like this locator1.translateX = locator2.translateX
Solved! Go to Solution.