Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 19-04-2003, 08:03 AM   #1
qwerty
Registered User
 
Join Date: Apr 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default hours, minutes, seconds

hi,
what is the mel command to get the hour, minute, and second from the users computer? the hours should be in the 12 hour format...not 24 hour format. so...i want to store the current hour, minute and second in 3 variables. for eg. 2 o' clock in the afternoon would be...2 in one variable(not 14), 0 is another, and 0 in another.thanx a lot.
qwerty is offline   Reply With Quote
Old 20-04-2003, 01:23 AM   #2
tariqrf
Subscriber
 
tariqrf's Avatar
 
Join Date: Jul 2002
Posts: 1,253
Thanks: 0
Thanked 11 Times in 11 Posts
Default

i dont precisely know how to get it ,, but there is an mel script in highend , dont know which, but is related to showing time, should help
__________________
:banana: :mingun: :yipee: :mingun: :bgreen: :mingun: :argue:
tariqrf is offline   Reply With Quote
Old 20-04-2003, 03:31 AM   #3
qwerty
Registered User
 
Join Date: Apr 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
thanx...i checked the website and the code was currentTime. and in the mel command reference, this was the description

When given a time argument (with or without the -edit flag) this command sets the current global time. The model updates and displays at the new time, unless "-update off" is present on the command line.

when i type the command in the script window, it returns a number like 22, 10 etc. what is this number?

maybe it will help to know what i am trying to achieve...i want to make a clock according to the current time of the computer. according to the hours, minutes, and seconds, i want to calculate the degrees of the hands and draw them. showing the time. thanx a lot.

P.S. i am new to maya...i don't even know if this kind of thing is possible here or not. i thought it would be because MEL is similar to programming. if not, please tell me. thanx.
qwerty is offline   Reply With Quote
Old 20-04-2003, 03:54 PM   #4
tariqrf
Subscriber
 
tariqrf's Avatar
 
Join Date: Jul 2002
Posts: 1,253
Thanks: 0
Thanked 11 Times in 11 Posts
Default

mel is a programming language or sort of... just calls maya's API's

btw, mel is specific and exclusive to Maya only
__________________
:banana: :mingun: :yipee: :mingun: :bgreen: :mingun: :argue:
tariqrf is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum will be offline for a couple of hours on 12-07-2010 David Site News & Announcements 2 07-12-2010 03:57 AM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.