Skip to content

Strangenoise/UVSnapshotExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UV Snapshot Exporter

version 0.1

This tool is used to export the uvSnapshots of all the uvSets of all selected meshes

Installation

  • Put the UVSnapshotExporter folder in a maya script directory (I.e: C:\Users\user\Documents\maya\scripts on Windows)
    install_path

  • The content of the folder need to be this one
    Folder content

  • Create a shelf button in Maya with the following Python command
    Shelf command

How to use

1 - Open a scene

Open scene

2 - Click on the shelf button to launch the tool

Launch the tool

3 - Select objects

Launch the tool

4 - Define the parameters

5 - Click on proceed

Launch

6 - Enjoy !

Enjoy

Features details

  • Options

Use the Get button to set the folder where the snapshots will be created (default: project/sourceImages)

Use UV Folder to create a subdirectory in the specified path (leave empty if you don't need a subdirectory)

Use UV suffix to add a suffix to the maps name (don't forget to add a '_' or a '-'... otherwise the name will be stacked)

Use File type to specify the extension of the snapshots

Use Map resolution to specify the resolution of the snapshots

Use Color to specify the color of the UVs in the snapshots

  • Proceed

This button launch the snapshot export

Limitations

  1. Only work on selected objects, the script doesn't look in the hierarchy
  2. Can be a bit slow if you export a lot of UVs at once

Step by step on a case

1 - A scene is opened

Open scene

2 - The objects have multiple uvSets

Open scene

3 - Like this one

Open scene

Open scene

4 - I select the objects to export their UVSnapshots

Open scene

5 - I launch the script and set the options to export in project/sourceImages, create a new UV folder in it, have a _UVSnap prefix and make 2048x2048 png files with green UVs

Open scene

6 - I click on proceed

Open scene

7 - Here it is, I've got a UV folder in project/sourceImages

Open scene

8 - With UVSnaphots in it

Open scene

Credits

Created by Tristan Le Granche
Licence CC-BY-NC

Bugs report and ask for commercial use to tristan.legranche@gmail.com

About

Exports all the uvSnapshots of the selected objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages