Notifications
Clear all
[Closed] recovering data using custAttributes.getDefData
Oct 26, 2013 7:14 pm
I have a piece of code that retrieves data I placed on an attribute holder using ‘setDefData’:
fr = custAttributes.getDefs $.modifiers[1]
T = custAttributes.getDefData fr[1];
ctrlstring = with printallelements on "CtrlsTotalPositions ="
ctrlstring+= with printallelements on (T as string);
execute ctrlstring;
CtrlsTotalPositions;
which gives me an array (CtrlsTotalPositions) I can use. It works fine during a session, however whenever I reboot max I get an error saying the array is empty, even tho a check on the cust. attributes shows that the actual string data is still sitting there…very frustrating. What’s going on? Thnx in advance.