Interface: objXRefs

Interfaces > Core Interfaces > objXRefs

 

   

Core Interfaces - Quick Navigation

The objXRefs Core Interface provides MAXScript access to the XRef Object feature.

   

Methods:

<maxObject>objXRefs.addNewXRefObject <filename>fname <string>objname <integer>flags 	 

The merge behavior is controlled by the bits set in flags:

Add as proxy 1 (value = 1)

Drop (ignore) modifiers 4 (value = 16)

Merge modifiers 5 (value = 32)

Merge manipulators 6 (value = 64)

The default behavior (flags = 0) is XRef the modifiers, XRef the manipulators

   

<integer>objXRefs.getNumXRefObjects <filename>fname   

Returns the number of object XRefs contained in the file

   

<maxObject>objXRefs.getXRefObject <filename>fname <index>index 

Returns the Nth XRef'ed object contained in the specified file

   

<integer>objXRefs.getNumFiles() 

Returns the number of files that contain object XRefs

   

<filename>objXRefs.getFileName <index>index 

Returns the file name of the Nth file that contains object XRefs

   

<boolean>objXRefs.reloadFile <filename>fname 

Returns true if successful and false otherwise.

   

<boolean>objXRefs.isFileUnresolved <filename>fname 

Returns true if successful and false otherwise.

   

<boolean>objXRefs.isFileDisabled <filename>fname 

Returns true if successful and false otherwise.

   

<array>objXRefs.getAllXRefObjects() 

Returns an array of all XRef Objects present in the current scene.

   

<integer>objXRefs.getEmptyXRefRecCount() 

Returns the number of empty XRefs.

Available in 3ds Max 8 and higher.

See Also