Extracting Wrapped Objects
 
 
 

You can get MAX objects out of MAXScript wrapper values in several ways.

1. Using one of the Value coercion virtual functions :

2. Using the following member function:

3. Using the ReferenceMaker::GetReference() function. All MAXWrapper objects store their MAX-side object reference as reference 0. For example:

ReferenceTarget* Get3dsMaxObject(MaxWrapper* wrapper) {
  returnmaxwrapper->GetReference(0);
}