Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Script execution speed
  RSS 2.0 ATOM  

Script execution speed
Rate this thread
 
37760
 
Permlink of this thread  
avatar
  • NGM04
  • Posted: 14 December 2009 10:00 AM
  • Total Posts: 13
  • Joined: 19 January 2009 05:56 PM

hey guys,
i posted a topic earlier (3rd one on the list) but I solved that. The problem I’m having now is that the script doesn’t run with enough speed to accommodate the sampling rate of the other app i’m using.

The documentation , if i remember correctly, mentioned something about API being 10 times faster than MEL. What about Python? if I translate my script to python, will it run faster?

Note: the script is a simple read file and update model attributes script.

Thanks in advance.



Replies: 0
avatar
  • THNKR
  • Posted: 14 December 2009 11:11 AM

I would think that the fileIO slows down your script the most. Doing the same thing in Python isn’t going to improve the situation much. Instead of reading a file, can you not use the commandPort to talk to the other app directly?



Replies: 1
/img/forum/dark/default_avatar.png

That s very interesting Michiel, I ll have to take a deeper look into that. I dont quite understand the concept of it though, have u ever used it ? n if so , for wat purposes? I m using the script for motion capture which is also referenced in the help file of the command. So I think that might be the solution. Thanks a lot!

Author: NGM04

Replied: 14 December 2009 12:18 PM  
avatar
  • Norbert
  • Posted: 21 December 2009 03:09 PM

Hello There,
How about this?

Download

I wrote this simple application so our character and static team can quickly update their texture (file node in Maya) inside Photoshop.  You can do a lot of cool stuff with this application ie… P4 to Maya, Motion Builder to Maya, etc…

Thank You,
Norbert Nacu



Image Attachment Video
Replies: 0