Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Wishlist / Ditch MAXscript for Python
  RSS 2.0 ATOM  

Ditch MAXscript for Python
Rate this thread
 
22604
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 1
  • Joined: 11 February 2009 02:31 PM

How I wish that developers of Max would ditch that dinosaur of a ‘language’ they force us to use and deploy Python instead. I came from a developer background and totally does not like MAXscript’s semantics. Also looking forward for the day they make each editable parameter scriptable just like in Maya.



Replies: 0
avatar

I’m a technical artist. I use MAXSCRIPT all the time.

While I can’t blame you for wanting full Python support, I think it’s ridiculous to suggest that they ditch maxscript all together.



Replies: 0
avatar
  • ZoYuX
  • Posted: 14 March 2009 04:07 PM

MaxScript is one of the worst programming languages ever. Variables get entangled, the operator precedence is different to all other languages and sometimes it just stops working and I’m forced to restart max.

I think it would be wiser to go with Lua. It has a lot of followers in the gaming industry and it is very fast.

I’ve been using Lua to batch process 3D Scenes using SceneEngine and it works pretty well… The only problem is that SceneEngine and CrackArt need more tools.



Replies: 0
avatar

We have released code that’ll allow you to develop for 3dsMax completely in python.

You’ll need to know maxscript as thats the actual interface into the program, but its wrapped as a Python module - all your code and calls are actually python.

For downloads and more information, check out http://blur-dev.googlecode.com

Quick Example:

How its done in Maxscript:

function randomizeObjects objs randPos:True (
   
for obj in objs do (
      obj
.wirecolor (color (random 0 255) (random 0 255) (random 0 255))
      
if ( randPos ) then (
          obj
.pos [ random 0 500random 0 500random 0 500 ]
      )
   )
)
randomizeObjects $objects
randomizeObjects $selection randPos
:False

and now in Python:

from Py3dsMax import mxs  # import the maxscript module from the Py3dsMax package from blurPython
from random   import randrange   # import python's random module

def randomizeObjects( objsrandPos True ):
    for 
obj in objs:
       
obj.wirecolor mxs.Color( randrange( 0255 )randrange( 0255 )randrange( 0255 ) )
       
if ( randPos ):
          
obj.pos mxs.Point3( randrange( 0500 )randrange( 0500 )randrange( 0500 ) )

randomizeObjects( mxs
.objects )
randomizeObjects( mxs
.selectionrandPos False )

mxs
.redrawViews() # python doesn't automatically refresh like maxscript does...little faster


Replies: 0
avatar
  • eXeler0
  • Posted: 11 November 2009 12:39 AM

Blur Studios to the rescue.. yet again… ;-)

/eX



Replies: 0




   
  Settings Choose Theme color: