Notifications
Clear all

[Closed] UVW multitile render template

would it be possible to create a script where we can render the UV template outside the 0-1 area ?
http://www.neilblevins.com/cg_education/multiple_uv_tiles/multiple_uvs_tiles.htm
maybe have a setting in the script where we tell the program which UV quadrant to render.

if using Neil Blevins link as an example. right now if i have a head UV on 0-1 quadrant i can not render an uv template. i would need it to isolate and move back to 0-0 and render and than go back.

1 Reply

I’d just move it by the offset, render and move back, if you want to automate it, try something like:

try destroyDialog UVWOffset catch()
rollout UVWOffset "UVW Offset"
(
	spinner spnOffsetX "X: " type:#integer range:[-100,100,0]
	spinner spnOffsetY "Y: " type:#integer range:[-100,100,0]
	button btnOffset "Offset"

	on btnOffset pressed do
	(
		if NOT isKindOf (local unwrapMod = modPanel.getCurrentObject()) Unwrap_UVW do
			return messageBox "Unwrap UVW modifier has to be active."

		local offset = Point3 spnOffsetX.value spnOffsetY.value 0
		local prevSel = unwrapMod.getSelectedVertices() 
		unwrapMod.selectVertices #{1..unwrapMod.numberVertices()}
		unwrapMod.moveSelectedVertices offset
		unwrapMod.selectVertices prevSel
	)
)
createDialog UVWOffset