Export problem
When you export a SketchUp file to FBX, OBJ, 3DS, VRM or XSI, the export may fail. On Windows, you see a blank dialog box. On a Mac, you see an error such as "SketchUp SDK error: An error has occurred resulting in an invalid output file..."
Cause
The likely cause is a material that uses an image with no file extension. For example, the image may be named "brick" instead of "brick.jpg" or "brick.png".
Solution
Find the materials whose texture images have no file extensions, then fix or remove them. In models with many textures, use the Ruby command below to find these materials.
- Select Window > Ruby Console to open the Ruby Console.
- Copy and paste this line into the Ruby Console:
Sketchup.active_model.materials.each {|m| puts "\n" + m.display_name if (not m.texture.nil? and not m.texture.filename.include? "." )} - Press Enter. The Ruby Console lists any materials whose texture images have no file extensions. Follow the steps below for each listed material.
- Select Window > Materials to open the Materials dialog.
- Click the Home button to view your In Model materials.
- Fix the listed materials so their texture images have valid file extensions, or delete the materials. Deleting them removes them from your model.
To fix the texture images' file extensions, follow the steps for your operating system below.
- On Windows, select the first affected material in the Materials browser.
- Right-click and select Export texture image to export the texture to your desktop. Give it a valid file extension, as in "
my_texture.jpg." - Click the Edit tab in the Materials browser.
- Click Browse under "Use texture image" and find the texture you exported in step two.
- Click Open. The material should now use a texture image with a file extension.
- Repeat steps 2-5 for any other materials whose texture images have no file extensions.
- Try exporting again to check that the export succeeds.
- On a Mac, select the first affected material in the Materials browser.
- Right-click and select Edit to open the texture tweaker at the bottom.
- Click Edit texture image with external editor (the brown cube with the orange arrow). The image opens in your default image editor, usually Preview.
- If the image opens in Preview, select File > Save As or File > Export to save it to your Desktop. Give it a valid file extension, such as "
my_texture.jpg". - In SketchUp, double-click the same material in the Materials browser to expand the texture tweaker again.
- Select Load from the Texture drop-down menu.
- Browse to your Desktop and select the image you saved in step 4.
- Repeat steps 2-5 for any other materials whose texture images have no file extensions.
- Try exporting again to check that the export succeeds.