UV Editor
UV Editor
Changing UVs in GS CurveTools was always a challenge, because of the procedural limitation of UV attributes. Using sliders 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
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. 3).
Supported textures and nodes:
Shader nodes: Lambert, Blinn, Phong, PhongE, Standard Surface or OpenPBR.
File nodes: file and psdFileTex.
Texture file formats: JPG/JPEG, PNG, TIF, TIFF, TGA, PSD, EXR, HDR.
Important
Ramp, checker or other procedural textures are not supported as color input. There needs to be an actual texture file for UV Editor to load.
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:
Fig. 3 Simple Material Node Connections
Material Setup Steps:
Select newly created curve(s).
Click on Select Geo.
Holding right mouse button in the viewport select Assign New Material ⇨ Lambert.
In Attribute Editor Click on checker button
near the Color Slider ⇨ File (Fig. 4).Under the Image Name field click on a folder icon and select your Diffuse(color) texture (Fig. 5).
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. 5)
Repeat steps 4, 5 for the Alpha if you have separate Alpha file.
Fig. 4 Lambert color and transparency sliders |
Fig. 5 File and how to get back to lambert |
Video of the setup:
Select, Move, Rotate, Scale and Draw
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
In order to move selected UVs, change to Move mode (W) and click and drag with LMB on the UV rectangles.
Rotate
In order to rotate selected UVs, change to Rotate mode (E) and click and drag with LMB to rotate the UVs.
Scale
In order to Scale selected UVs, change to Scale mode (R) and click and drag with LMB to scale the UVs.
There are three modes for scale - H, V and U (disabled by default). H will scale UV rectangle horizontally, and V will scale vertically.
U will scale UVs uniformly in all directions. U mode is disabled by default, but can be enabled by right clicking on the grayed out U button. It can also be temporarily enabled by holding Shift button and using any other scale mode.
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
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 by default but toggling the “Inverted” mode indicated by the “I” button will invert this behavior.
Draw allows for quick initial positioning of the UV rectangles.
Utility Functions
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.
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.
Reset UVs
This function will reset the UV rectangle to its initial default position and rotation.
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.
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.
Pressing the Shift button before the randomization will ignore this density distribution and fully randomize the selected UVs between the original locations.
UV List
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
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.
You can easily isolate select or do any other functions with these nested cards and the result will be visible in Maya Viewport immediately.
UDIM Support
Starting with v1.3.14 GS CurveTools supports UDIM texture maps. This means that you can use UDIM workflow in Maya and edit the procedural cards in GS CurveTools UV Editor seamlessly.
By default only the first map will be loaded (1001) and all others hidden behind placeholders (black square with UDIM tile number). This saves RAM and loading times. Using controls you can switch between maps or even reveal all UDIM textures at once.
Setup:
UDIM texture files must be named in a compatible way and placed in the same folder as the first (1001) UDIM tile. Similar to how Maya handles it, GS CurveTools will try to find all the UDIM tiles in the folder where the first UDIM texture is located.
Supported file name patterns:
<texture_name>.<udim_tile>.<extension>
<texture_name>_<udim_tile>.<extension>
<texture_name><udim_tile>.<extension>
So for example valid UDIM texture names are:
my_texture_name.1001.png
my_texture_name_1001.png
my_texture_name1001.png
Invalid UDIM texture names:
1001_my_texture_name.png
1001.my_texture_name.png
my_1001_texture_name.png
1001.png
UDIM specific functions:
When UDIM textures are detected in the selection - a special set of controls will appear in the UV Editor.
First control (UDIM Texture Dropdown) is a dropdown menu that allows you to select the UDIM tile you want to reveal. UDIM textures can be very large and have a significant impact on RAM or video memory. To prevent this only the first (1001) UDIM tile is loaded into memory by default and all others are set as placeholders with their respective UDIM tile number. Dropdown menu allows user to switch between the tiles or reveal “All” tiles at once. Revealing “All” tiles will take some time to load, so depending on the texture map size and number of tiles it might be advisable to stick to the individual UDIM tiles.
Second control (Move Selected) are direction buttons that allows you to quickly move UVs between the UDIM tiles. This is useful when you want to move a large number of UVs from one tile to another or if location of the hair texture is changed (from one tile to another) and there’s need to update the UVs accordingly keeping their relative position.