UV Editor

New UV Editor

_images/uv_editor_window.png

Changing UVs in GS CurveTools was always a challenge, because of the procedural limitation of UV attributes. Using slides was always a temporary solution to a problem, and not an elegant one.

Fortunately, with the release of v1.2 user now have access to a fully functional UV editor that is compatible with current and previous UV Attributes.

This UV Editor allows to control UV attributes using intuitive user interface, and also adds multiple useful functions.

All the functions have dedicated Hotkey that is separate from Maya hotkeys (in parenthesis). Hotkey will work only if the editor window is in focus (blue outline around the viewport)

UV editor consists of a Viewport on the right, and function buttons on the left, along with the UV list.

UV editor will update every time you select a new curve in Maya Viewport. Incompatible curves will not show any UV rectangles or textures.

The UVs will dynamically update in the Maya Viewport when you edit them in the UV Editor

_images/uv_root.png

Small rectangle at the base of the UV rectangle indicates the root of this UV and its orientation in space.




Material Setup

In order for the UV Editor to work correctly a correct material should be used for the cards (Fig. 2).

Lambert with PNG, JPG/JPEG or TIF/TIFF (LZW or No Compression) texture file is recommended. TGA (24bit and no RLE) is also supported.

Supported Maya materials: Lambert, Blinn, Phong, PhongE, Standard Surface.

Simply connect Out Color of Diffuse File to Color of the Lambert and Out Transparency to Transparency (or BaseColor and Opacity for Standard Surface).

Out Transparency can either be from separate file or from the same file if supported by the format.

Final Material Setup:

_images/Lambert_Final_Material.png

Fig. 2 Simple Material Node Connections

Material Setup Steps:

  1. Select newly created curve(s).

  2. Click on Select Geo.

  3. Holding right mouse button in the viewport select Assign New Material ⇨ Lambert.

  4. In Attribute Editor Click on checker button pic1 near the Color Slider ⇨ File (Fig. 3).

  5. Under the Image Name field click on a folder icon and select your Diffuse(color) texture (Fig. 4).

  6. If you have separate Alpha, return back to the lambert node by clicking on the box with the right arrow with Right Mouse Button and selecting the lambert.color. (Fig. 4)

  7. Repeat steps 4, 5 for the Alpha if you have separate Alpha file.

_images/Lambert_Material_01.png

Fig. 3 Lambert color and transparency sliders

_images/Lambert_Material_02.png

Fig. 4 File and how to get back to lambert

Video of the setup:



Select, Move, Rotate, Scale and Draw

_images/uv_selection.gif

Selection

In order to select UV rectangle for edit, simply switch to Select mode (Q) and click or marquee select any number of UVs.










Move

_images/uv_move.gif

In order to move selected UVs, change to Move mode (W) and click and drag with LMB on the UV rectangles.










Rotate

_images/uv_rotate.gif

In order to rotate selected UVs, change to Rotate mode (E) and click and drag with LMB to rotate the UVs.

UV rotation pivot is in the same location as the original UV Rotation Attribute pivot.









Scale

_images/uv_scale.gif

In order to Scale selected UVs, change to Scale mode (R) and click and drag with LMB to scale the UVs.

There are two modes for scale - H and V. H will scale UV rectangle horizontally, and V will scale vertically.

You can switch between these modes by clicking on the H or V switch button or by pressing R button on your keyboard multiple times.




Draw

_images/uv_draw.gif

Draw mode (D) allows for quick reposition of the UVs using simple drawing gestures. If will change any number of selected UV rectangles to match the shape that was drawn by the user.

Draw will rotate the UVs to the default rotation angle.

Draw allows for quick initial positioning of the UV rectangles.




Utility Functions

_images/h_flip_indicator.png

H-Flip UV

This function mirrors the H-Flip UV button in the Curve Control Window.

It will flip the UV rectangle horizontally.

All horizontally flipped UVs are indicated by the small blue dot at the root of the UV rectangle.




_images/v_flip_uv.gif

V-Flip UV

This function will vertically flip the selected UV rectangle allowing for a quick rotation and repositioning.

Position, Rotation and Scale does not matter when using this function.






_images/uv_reset.gif

Reset UVs

This function will reset the UV rectangle to its initial default position and rotation.











_images/sync-selection.gif

Sync Selection - This function will select curves in Maya Viewport based on the currently selected (highlighted) UV rectangles.








Focus View

This function will simply focus the viewport on currently selected UVs or reset it to the default position if nothing is selected.

Randomize Function

This function will randomize the positions of the selected UV rectangles inside the UV editor.

Randomization only occurs between already existing UV rectangle positions and they will only move between those original positions.

_images/normal-randomize.gif

Normal click on the Randomize button will ensure that the original density distribution stays the same. For example, if there were 3 uv rectangles in the position on the left and 10 uv rectangles on the right, selecting all of those rectangles and clicking randomize will still give you this 3-10 distribution (3 on the left and 10 on the right), but the which cards is where will be randomized.


_images/full-randomize.gif

Pressing the Shift button before the randomization will ignore this density distribution and fully randomize the selected UVs between the original locations.






UV List

_images/uv_list.png

This list holds the information on the selected UVs - their names and visibility.

Selected UVs in this list will be visible and editable in the UV Editor viewport

Deselected UVs will be hidden from viewport.

Isolate Select will show only selected UVs in the Editor Viewport and hide everything else.

Show All will show all the available UVs in the Editor Viewport.






Bound Cards UV Editing

_images/uv_bound_cards.png

You can easily edit the UVs of the bound card using this UV editor.

Multiple nested bound cards (when you create a bound group from other bound groups) will be represented as flat list under the main card.







_images/nested_uvs_editing.gif

You can easily isolate select or do any other functions with these nested cards and the result will be visible in Maya Viewport immediately.














Options Menu

_images/options_menu2.png

In the options menu user can change the texture and viewport visual appearance.

Transparency - this toggle will enable/disable the use of Alpha map that is connected to the Transparency plug of the material (from separate files or the same file).

Important

It is recommended for the Diffuse and Alpha map to have the same resolution and aspect ratio.


_images/alpha_only.png

Alpha Only - this toggle show only the alpha map with transparency. This helps with the texture readability. This toggle automatically enables Transparency.













_images/place2dtexture_node.png _images/coverage_translateframe.png

Use Transforms - this toggle will enable/disable texture map transformations based on the place2dTexture node parameters: Coverage and Translate Frame.

Warning

Offset parameter is NOT supported. Both diffuse and alpha map should have the same Coverage and Translate Frame parameter or use the same place2dTexture node for this to work.


_images/color_controls.png

Viewport Color Controls - Using three color pickers you can change uv editor viewport appearance:

    1. Background color

    1. Grid color

    1. Frame color

UV Rectangle Color Controls - Using these three color pickers you can change the UV Rectangle appearance:

    1. Selected UV frame color

    1. Deselected UV frame color

    1. UV Frame background color (fill color).

The colors set here will be saved and used in every project.

To reset the colors, reset the plug-in to default using CT Reset icon on the shelf.