Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Alias software > Re: Using trig ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 879 of 912
Post > Topic >>

Re: Using trig (mod) functions in maya 7

by DTrel <DTrel@[EMAIL PROTECTED] > Sep 28, 2007 at 09:21 AM

On Fri, 28 Sep 2007 09:19:45 GMT, aen <aen@[EMAIL PROTECTED]
> wrote:

Late Night Typo: its " Modulas"  --- not Medullas
>Hey sal2...
>
>I tried to find the medullas operator in Maya Help, but couldn't.
>Maya help is limited...
>
>Medullas Operator is " % "
>int $x = base % mod;   // or float $y 
>If your base or mod is a float then calculations are in floats.
>If the output is an int then the float is converted (rounded down) to
int.
>
>In your example:                 mod(2334-1,9)+1
>becomes in Maya:   int $y = ((2334 - 1) % 9) + 1;
>
>Mel scripting is not bad, but it was designed as a general utility for
Maya's
>node based interpreter. Mel is only scripting and not an actual
programming
>language. It lacks some very basic features of a language such as simple
bitwise
>logical operators (****ft left,****ft right, and, or, not) . Sometimes you
need
>access to a large data space, in such conditions (AI search spaces) a
bitwise
>hash is the fastest and simplest generic programming method.
>Python (available with Maya 8.5) is a full computer language and does
have
>bitwise operators. Python in Maya seems to be working OK.
>
>hth's aen...
>
>-----------------------------------------------------
>Digital Tutor has some good basic Mel video tutorials.
>Gnomon has a good intermediate series on creating a complete UI:
>	MEL FOR EFFECTS ARTISTS
>	MEL FOR Animators
>"The MEL Companion - Maya Scripting for 3D Artists" is a good ebook but
some of
>the downloaded examples scripts had to be modified to work with 8.5.
>
>>Greets All 
>>I'm trying to find out if maya has the Mod trig function if not how can
I get it or find a subsitute.
>>example:
>>mod(2334-1,9)+1 would equal 3
>>
>>It's to be used in a counter where the numbers only goes from1-9. 
>>
>>tia
>>sal2
 




 3 Posts in Topic:
Using trig (mod) functions in maya 7
temp <temp@[EMAIL PROT  2007-09-28 03:30:20 
Re: Using trig (mod) functions in maya 7
aen <aen@[EMAIL PROTEC  2007-09-28 09:19:45 
Re: Using trig (mod) functions in maya 7
DTrel <DTrel@[EMAIL PR  2007-09-28 09:21:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 2:34:18 CST 2008.