SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / hours, minutes, seconds
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 19-04-2003, 07: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, 12: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, 02: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, 02: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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 02:57 AM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.