Maxscript query

ive posted over on cgtalk about this but it’s slow over there, just wondering if anyone over here has had a similar problem as me:
Hi all,
I have setup some stuff with custom attributes but sometimes I run into small glitches. I’m finding it very tricky to work out why these things are cropping up. Let me explain.

Originally, before I knew better, I had got into a pickle where in several max scenes there were (unknown to me due to my ignorance) different definitions with the same parameters etc. I had stupidly not included a classid so each time I applied what I thought was ‘the’ attribute def, i actually added ‘a’ version of the attribute def.

Once I found out what a fool I had been I fixed this and reprocessed all necessary max files replacing and muddle of defs with a single class-id-ified consistent definition, or so I thought.

My defs are loaded in my startup script file which lives in stdplugs/stdscripts, so should get loaded before anything else. Despite this, occasionally when loading a max file the defs get blatted over by an older version. I can only assume that the max file contains an older version somehow and loading it causes the proper latest version to be replaced.

I’d like for my defined attribute set to be pervasive, and if I load an old scene with defs applied in the past for them to update.

My question to you experts is - have i just done something silly, or to get the desired behaviour will I have to delve into some callback related stuff to refresh the attribute defs script on scene load? I feel this would work but if I am missing a trick I’d rather do it a proper way.

Many thanks in advance for any help which can be granted,

cw

Not sure if this helps, but I’ve often witnessed 3dsmax just resetting Scripted Custom Attributes after 3dsmax has been in use for a long time. I call it 3dsmax just getting “tired” and needing to be restarted. I’ve actually added a few “test if this value got reset” triggers to help detect when max is too fragmented, but it’s ugly… :slight_smile:

SamiV.

aha, sounds like max. :slight_smile:

I have a strong suspicion that it may be my fault though. Having said that I cannot reproduce the behaviour properly in a standalone case which is good/bad in equal measures. :slight_smile: