SimplyMaya Forums

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

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 18-05-2007, 12:30 PM   #1
Rhetoric Camel
Subscriber
 
Rhetoric Camel's Avatar
 
Join Date: Dec 2006
Location: Plattsburgh New York
Posts: 1,222
Thanks: 6
Thanked 28 Times in 23 Posts
Default Timer?

I was wondering if there is such thing as a timer, one that would time the how long a certain project is open and count the time you've worked on that specific project. I think it'd be interesting to know how long I've worked on something. I never really keep track of time when I'm working on projects so I kind of get lost in it. Maybe theres one built into maya that I don't know about?
__________________
- Mike

http://rhetoriccamel.blogspot.com
Rhetoric Camel is offline   Reply With Quote
Old 18-05-2007, 09:31 PM   #2
marlonjohn
Subscriber
 
Join Date: Feb 2006
Posts: 1,937
Thanks: 0
Thanked 8 Times in 8 Posts
Default

haha i have never heard of something like that though that would be good if there was one why dont you just download some program or buy a cheap timer and that would be as good :p
marlonjohn is offline   Reply With Quote
Old 19-05-2007, 12:20 AM   #3
Jr.Who
 
Posts: n/a
Default

If youÕre using a Mac, I have a great solution for you. ThereÕs a widget called TheDailyGrind that has some great features. HereÕs the link for it:
http://microcore.dk/TheDailyGrind/index.php

If you just want an app instead of a widget (which I donÕt know why you would ), check out this one:
http://www.theratrace.eu/

RatRace has some features that TheDailyGrind doesnÕt have, but I like the widget. I still havenÕt tried RatRace yet, but I might soon.
  Reply With Quote
Old 19-05-2007, 01:17 AM   #4
Rhetoric Camel
Subscriber
 
Rhetoric Camel's Avatar
 
Join Date: Dec 2006
Location: Plattsburgh New York
Posts: 1,222
Thanks: 6
Thanked 28 Times in 23 Posts
Default

Thanks for the replies

Jr. Unfortunately, or fortunately depending on how you look at it, I'm not using a Mac.

Marlon, I've thought of setting a timer, but I never think of it until it's too late. It would just be handy for one to be built in.

Any mel script writers out there that think they can make one? haha
__________________
- Mike

http://rhetoriccamel.blogspot.com
Rhetoric Camel is offline   Reply With Quote
Old 19-05-2007, 01:17 AM   #5
severinianthony
Registered User
 
severinianthony's Avatar
 
Join Date: May 2005
Location: United States
Posts: 513
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Timer?

For something that times how long maya has been open, no, not to my knowledge.

Should you ever care to know your render times, however, use your computer's "search function," search for a file called "mayaRenderLog" (or just "render log"). In that you can see all sorts of render stats, including how long it took to render individual frames.
__________________
severinianthony is offline   Reply With Quote
Old 19-05-2007, 11:35 AM   #6
Funky Bunnies
Subscriber
 
Funky Bunnies's Avatar
 
Join Date: Mar 2005
Location: Illinois, USA
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was actually talking to one of my buddies about this a couple days ago. There really is no good way to do it within mel.

I wrote a quick and sloppy hack though. The problem with this method is that it does not take into account switching files, crashing, or the idle times (and the easy fix for that can often eat up all of your CPU )
All it does is log how long Maya is open into a file in the same folder as your scene file, appending it if you're working on the same scene file for more than 1 sitting.

Anyway, here's how installation works.

Open up Maya, open the script editor (the double-rectangle looking icon at the bottom right), enter this code, and press ctrl+enter.
PHP Code:
{
/*This simply edits your usersetup.mel file to enable this script to run when you close Maya
if you want to disable it put two slashes "//" infront of the line.*/
    
string $fileName = (`internalVar -userScriptDir` + "usersetup.mel");
    
int $fileId = `fopen $fileName "a"`;
    
fprint $fileId ("\n scriptJob -pro -e \"quitApplication\" \"TIMERJUNK\"; \n");
    
fclose $fileId;

now put this TIMERJUNK.mel file into the my documents/maya/x.x/scripts/

close Maya and open it up again and it will write the .time file which you can open with notepad or wordpad.

I dunno how useful it will actually be .
There's not much more I can think to do in mel though... a more robust FUNCTIONAL timer would probably have to be done in the maya API.

Last edited by Funky Bunnies : 19-05-2007 at 11:38 AM.
Funky Bunnies is offline   Reply With Quote
Old 20-05-2007, 03:09 AM   #7
Rhetoric Camel
Subscriber
 
Rhetoric Camel's Avatar
 
Join Date: Dec 2006
Location: Plattsburgh New York
Posts: 1,222
Thanks: 6
Thanked 28 Times in 23 Posts
Default

I dont' know if thats exactly what I'm loooking for, I might have to give it a shot just to see how it works.
Thanks
__________________
- Mike

http://rhetoriccamel.blogspot.com
Rhetoric Camel 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

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.