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 / Maya crashes while running script
  RSS 2.0 ATOM  

Maya crashes while running script
Rate this thread
 
39079
 
Permlink of this thread  
avatar
  • dloud83
  • Posted: 25 January 2010 07:21 AM
  • Total Posts: 1
  • Joined: 13 October 2007 07:51 AM

I’m new to mel scripting to please bear with me.  I’ve created a script that will geometry constrain all of the selected objects to a predefined object called “Terrain”.  The scene is a bit heavy with lots of geometry and thousands of objects.  The script crashes maya if I try to run it with more than ~30 objects selected.  Any help would be appreciated.

string $select[] = `ls -sl`;

for 
( $node in $select )
{
select 
-r Terrain;
select -tgl $node;

geometryConstraint -weight 1;
}


Replies: 0
avatar
  • THNKR
  • Posted: 25 January 2010 08:10 AM

Works in a small scene.



Replies: 0