This is provided here for the file merging method.

Source: Internet
Author: User

-- A file for file merging.
P = [100,100,100]

For I = 1 to 5 do box POS :( random p-p) -- create some boxes

Savemaxfile "mergetest. Max" -- save to file

For OBJ in objects do obj. Name = "_" + obj. Name -- rename the boxes

Objects. Pos + = [0,-1000,0] -- move them off to the side

Fobj_names = getmaxfileobjectnames "mergetest. Max" -- get the object names from the file

Deleteitem fobj_names 3 -- Delete the third name from the array

Mergemaxfile "mergetest. Max" fobj_names # select -- merge in the objects and select them
--- Merge FILE command processing method.

Selection. Count -- shocould be 4

Objects. Count -- shocould be 9

Mergebonesname = For I in selection collect I. Name;
Holdmaxfile () --- temporary storage scenario. If you are on a business trip, this reply method is good.
Myholdmaxfile = (getdir # autoback) + "\" + "maxhold. mx" -- create a file.
Mergemaxfile myholdmaxfile mergebonesname # prompt # skipdups # alwaysreparent # mergedups
---- Merge objects.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.