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® / MaxScript / This plugin is totally broken
  RSS 2.0 ATOM  

This plugin is totally broken
Rate this thread
 
25825
 
Permlink of this thread  
avatar
  • damianh
  • Posted: 20 April 2009 03:37 AM
  • Total Posts: 10
  • Joined: 26 February 2009 08:56 AM

I’m have issues writing what should be a completely trivial scripted plugin.  If I place an instance of ‘Broken’ in a max file, save, and then reopen max will crash.  Has anyone seen anything like this?  Many thanks.

plugin SimpleObject Broken
name
:"Broken"
classID:#(0x18625c7, 0x2d257b78)
category:"TotallyBroken"
(
  
on buildMesh do
  (
    
setMesh mesh verts:#([0,0,0]) faces:#()
  
)
  
  
tool create
  
(
    
on mousePoint click do
    (
      
nodeTM.translation gridPoint
      
#stop
    
)
  )
)


Replies: 0
avatar
  • damianh
  • Posted: 20 April 2009 07:05 PM

It seems that plugins require a param block… even if it is not needed. Inserting the following into the plugin and it all works fine

parameters main
(
  
dummy type:#boolean default:false
)


Replies: 0