Notifications
Clear all

[Closed] Custom Attributes led to the carsh of max5?

This is a subscript, “totime”,“fromtime”,“interim”,“starttime”,“steptime” are global variables.After i run this subscript max5 will crash later. Waht’s going on here ?

Thx …


catemp=dummy()
custom = attributes "VA data"
 (
   parameters main
	( 
	 totime type:#integer
	 fromtime type:#integer
	 interim type:#integer
	 steptime type:#integer 
  starttime type:#integer
	)

  ) 
custAttributes.add catemp custom

catemp.totime=totime
catemp.fromtime=fromtime
catemp.interim=interim
catemp.steptime=steptime
catemp.starttime=starttime
4 Replies
 PEN

I haven’t looked at your code but Max 5 had lots of issues with custom attributes. Actualy Max 5 was just about the buggiest software that I have ever used. 6,7 and 8 are far far far better, is there no way that you can upgrade?

thx PEN,I have no doubt that you are right.Max 5 had lots of issues with custom attributes.When i run this script in max8,all is ok.

Adding a rollout to your custom attribute definition should fix this problem, even if the rollout is not used:

custom = attributes "VA data"
(
   parameters main rollout:params
   ( 
      totime type:#integer
      fromtime type:#integer
      interim type:#integer
      steptime type:#integer 
      starttime type:#integer
   )
   rollout params "Parameters"
   (
   )
) 

custAttributes.add catemp custom

Martijn

Thx magicm.I will try it later.