# Accessing FPS property via Mel or API?

**URL:** https://forum.highend3d.com/t/accessing-fps-property-via-mel-or-api/40535
**Category:** Maya
**Tags:** api
**Created:** [October 19, 1999, 8:26am UTC](https://forum.highend3d.com/t/accessing-fps-property-via-mel-or-api/40535 "1999-10-19T08:26:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sandro](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@sandro](https://forum.highend3d.com/u/sandro)
#### Post date: [October 19, 1999, 8:26am UTC](https://forum.highend3d.com/t/accessing-fps-property-via-mel-or-api/40535/1 "1999-10-19T08:26:07Z")

</div>

i try tto write an occilattor as a plugin [in : time,amplitude,frequency,FPS; out : value]  
this is simple to code but how the hell do i have access to the Damn FPS property of the general animation preference of maya ? because i want that plug totally transparent to use with any form of project without tuning it manually  
do i Mel for that (create a connection a the node creation) or via the api (with a hidden property or a function call ?)  
i am newbie with this api (this is the v2.0 of the api)

Thanks

juffet alexandre

# Does Maya dream of eletronic infographist ?

---

<div class="post-metadata">

### Author: ![sirgalahad78](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/eb8c5e/32.png) [@sirgalahad78](https://forum.highend3d.com/u/sirgalahad78)
#### Post date: [July 10, 2002, 10:34pm UTC](https://forum.highend3d.com/t/accessing-fps-property-via-mel-or-api/40535/2 "2002-07-10T22:34:15Z")

</div>

I know I’m replying to a very old post…but I was just digging around for this info myself and thought I’d share for anyone else interested…

You can access/change maya’s framerate by using the currentUnit command:

currentUnit -time film;  
// changes to 24fps

currentUnit -time ntsc;  
// changes to 30fps, etc…

I needed a “startup” script for our modelers so animators didn’t accidentally start their work using the wrong framerate due to model files being saved incorrectly…
