How to save Custom Base Meshes to the Gallery

I’m new to Wrap 3 and I’ve come to my first question. I have a base mesh that I want to use. I want to be able to save it to the Gallery so that I can re-use it. How do I do that? Is there documentation somewhere on how to save your own base meshes to the gallery?

Hi will2power,

I would love for this to be incorporated into the program.

This can be done, but it’s going to be a little tricky.

Here is my method in doing so:

  1. Create a new folder here: “C:\Program Files\R3DS\Wrap 3.4\Gallery”
    This will be your new section in the gallery.

  2. In your new folder, you will need to add 3 files.

    • .obj (scan or a template in this format).
      *.wrap (create a wrap file with a load component & load in the .obj).
      *.png (this will be the image of the .obj. Size should be 200 pixels by 240 pixels).
  3. In the above directory, you will need to edit the “standardGallery.json” file. I would advise saving a copy of the original .json file, incase you break something.

See example below:

 
    {
      "folderName": "My Gallery",
      "items": [
        {
          "name": "Left Hand",
          "project": "./Gallery/My Gallery/LeftHand.wrap",
          "image": "./Gallery/My Gallery/LeftHandPreview.png"
        },
        {
          "name": "Right Leg",
          "project": "./Gallery/Right Leg/RightLeg.wrap",
          "image": "./Gallery/Right Leg/RightLegPreview.png"
        }
      ]
    },

Please keep in mind that you will need to change the names / paths:
Folder name = the name of the section in the gallery.
Name = the name of the object, or at least what you want to call it.
Project = the path of the .wrap file.
Image = the path of to the .png image, which is the preview image for the .obj in the gallery.

  1. Open the .obj file in a text editor and rename all the polygroups. You will need to look for sections that are denoted by the Group #. Simply replace the Group # with the associated name for the polygroup.

I hope this helps!

Code can be used, right?

It’s the information I’m looking for as well.