is there a way to use the trig functions Sin Cos without the use of an expression
or a plug-in, is there a way to build or code something into maya without using c++ API, just scripting with mel or python?
Trig functions !?
have a look on creative crash i know someone wrote a full series of trig nodes a while back. i never used them cause i kind of prefer expressions when i can use them
sin and cos and all the other trig functions can be called from mel or python.
Just for fun you could, in theory, get sin and cos results using standard maya nodes. Create a locator at (1,0,0) and put it in a group that has the pivot at the origin. Then PointConstrain the y-axis of a 2nd locator to the 1st locator. Now…
locator2.translateY = sin(group1.rotateZ)
I might have missed a multiply by -1 or something, but its late and I am not in maya right now.
David
Same way as you would use other nodes like multiplyDivide, conditional, plusMinusAverage etc. I’ve never actualy done a rig using the example in my previous post, but you’d just have to connect your controller attribute to the group1.rotateZ and then connect the locator2.translateY to whatever needs the output. But, sin and cos are the easy ones. I dont know how you’d do arcTan in this manner for example.
Maybe you should explain why you need these functions. Someone might have a suggestion of how you could do it if they know what you are trying to do.
David
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.