Accessing FPS property via Mel or API?

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 ?

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…