Notifications
Clear all

[Closed] AppData not copied with object?

Well… The title say it all.

Appear the AppData I’m setting isn’t copied with I manually copy the object…
Is it right or I’m doing it wrong?

3 Replies

Confirmed in Max 9 and is consistent behavior from max 6 thru max 8…

Both the Copy, Reference and Instance functions of MaxOps.CloneNodes does not keep AppData information… Neither does the manual copy/ref/inst when working in max.

You will have to catch appdata yourself via a callback or consider using setUserProp / getUserProp value instead as these copy with the objects…

 PEN

Better yet use custom attributes to store the data, these are copied with the objects and so is the data. Also the object properties are copied I believe. I have not tested that in a while how ever.

Yeah, Cust Att work fine when copied.