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 3ds® Max® / Plugins - Extensions / Cutting of autogenerated macroscripts
  RSS 2.0 ATOM  

Cutting of autogenerated macroscripts
Rate this thread
 
44031
 
Permlink of this thread  
avatar
  • sname
  • Posted: 07 June 2010 04:11 AM
  • Total Posts: 1
  • Joined: 07 June 2010 10:50 AM

We are developing an export plugin. The plugin uses scripts to create menu and some user interface.

After start 3dsMax automatically generate macroscripts for each menu element and places them to the folder “c:\Documents and Settings\us;er%\Local Settings\Application Data\Autodesk\3dsmax\2010 - 32bit\enu\UI\usermacros”. Problem is in that 3dsMax cuts our scripts after about 1 kilobyte and store them.
During the second and later loads 3dsmax doesn’t generate but compile existed macroscripts, that are generated incorrectly and cannot be compiled.

3dsMax2009 also cuts the scripts, but it doesn’t break any functionality. In 2010 and 2011 this leads to errors during loading of 3dsMax and plugin.

Could you please guide us to right way of using such scripts.

Added: acceptable size is 1160 bytes. Adding one symbol leads to cutting a lot of symbols from the end of script. Is 1160 a magic number?

Best regards and thanks in advance



Replies: 0