Skip to content

Commit 7c9c048

Browse files
committed
[UPDATE] Added a toggle that allows the *PivotPainter* node to do automatic UV-Layout for lightmaps.
1 parent 715b20d commit 7c9c048

File tree

5 files changed

+265
-30
lines changed

5 files changed

+265
-30
lines changed

otls/sop_unreal_pivotpainter.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 2
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Thu Jun 27 10:21:17 2019
13+
Modified: Mon Jul 8 15:12:04 2019
1414

otls/sop_unreal_pivotpainter.hda/gamedev_8_8Sop_1sop__unreal__pivotpainter/Contents.dir/Contents.mime

Lines changed: 241 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,22 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position 29.3232 -66.3354
36-
connectornextid 2
37-
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
35+
position -3.27414 -1.17291
36+
connectornextid 0
37+
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
4040
}
4141
inputsNamed3
4242
{
43-
0 OUT_GENERATETREE_GEO 1 1 "input1"
44-
1 OUT_GENERATETREE_PIVOTS 1 1 "input2"
4543
}
4644
inputs
4745
{
48-
0 OUT_GENERATETREE_GEO 0 1
49-
1 OUT_GENERATETREE_PIVOTS 0 1
5046
}
5147
stat
5248
{
53-
create 1561507250
54-
modify 1561654829
49+
create 1562623819
50+
modify 1562623923
5551
author prisms@threadripper1
5652
access 0777
5753
}
@@ -89,7 +85,7 @@ Content-Type: text/plain
8985
}
9086
{
9187
create 1502819760
92-
modify 1561654449
88+
modify 1562623890
9389
author admin@DESKTOP-PINH
9490
access 0777
9591
}
@@ -112,7 +108,7 @@ Content-Type: text/plain
112108
}
113109
{
114110
create 1502819970
115-
modify 1561654400
111+
modify 1562623841
116112
author admin@DESKTOP-PINH
117113
access 0777
118114
}
@@ -4081,9 +4077,9 @@ Content-Type: text/plain
40814077

40824078
sopflags sopflags =
40834079
comment ""
4084-
position -4.70146 -16.4878
4080+
position -4.70146 -18.4958
40854081
connectornextid 1
4086-
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
4082+
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault off exposed on
40874083
outputsNamed3
40884084
{
40894085
}
@@ -4098,7 +4094,7 @@ inputs
40984094
stat
40994095
{
41004096
create 1502126939
4101-
modify 1561654620
4097+
modify 1562623545
41024098
author admin@VENTURA
41034099
access 0777
41044100
}
@@ -4503,7 +4499,7 @@ sopflags sopflags =
45034499
comment ""
45044500
position -11.0097 0.69922
45054501
connectornextid 2
4506-
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault off exposed on
4502+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
45074503
outputsNamed3
45084504
{
45094505
1 "output1"
@@ -4519,7 +4515,7 @@ inputs
45194515
stat
45204516
{
45214517
create 1502320080
4522-
modify 1561655476
4518+
modify 1562623536
45234519
author admin@DESKTOP-PINH
45244520
access 0777
45254521
}
@@ -9339,7 +9335,7 @@ Content-Type: text/plain
93399335

93409336
sopflags sopflags =
93419337
comment ""
9342-
position -4.70146 -15.4464
9338+
position -4.70146 -17.4544
93439339
connectornextid 2
93449340
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
93459341
outputsNamed3
@@ -9348,16 +9344,16 @@ outputsNamed3
93489344
}
93499345
inputsNamed3
93509346
{
9351-
0 PivotPainter_1_vs_2 1 1 "input1"
9347+
0 switch5 2 1 "input1"
93529348
}
93539349
inputs
93549350
{
9355-
0 PivotPainter_1_vs_2 0 1
9351+
0 switch5 0 1
93569352
}
93579353
stat
93589354
{
93599355
create 1502823348
9360-
modify 1543876022
9356+
modify 1562623534
93619357
author admin@DESKTOP-PINH
93629358
access 0777
93639359
}
@@ -12441,6 +12437,228 @@ Content-Type: text/plain
1244112437
}
1244212438
}
1244312439

12440+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12441+
Content-Disposition: attachment; filename="hdaroot/uvlayout1.init"
12442+
Content-Type: text/plain
12443+
12444+
type = uvlayout::3.0
12445+
matchesdef = 0
12446+
12447+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12448+
Content-Disposition: attachment; filename="hdaroot/uvlayout1.def"
12449+
Content-Type: text/plain
12450+
12451+
sopflags sopflags =
12452+
comment ""
12453+
position -3.3475 -15.1802
12454+
connectornextid 2
12455+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
12456+
outputsNamed3
12457+
{
12458+
1 "output1"
12459+
}
12460+
inputsNamed3
12461+
{
12462+
0 PivotPainter_1_vs_2 1 1 "input1"
12463+
}
12464+
inputs
12465+
{
12466+
0 PivotPainter_1_vs_2 0 1
12467+
}
12468+
stat
12469+
{
12470+
create 1562623461
12471+
modify 1562623874
12472+
author prisms@threadripper1
12473+
access 0777
12474+
}
12475+
color UT_Color RGB 0.8 0.8 0.8
12476+
delscript ""
12477+
exprlanguage hscript
12478+
end
12479+
12480+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12481+
Content-Disposition: attachment; filename="hdaroot/uvlayout1.chn"
12482+
Content-Type: text/plain
12483+
12484+
{
12485+
channel padding {
12486+
lefttype = extend
12487+
righttype = extend
12488+
default = 5
12489+
flags = 0
12490+
segment { length = 0 value = 5 5 expr = ch(\"../uvpadding\") }
12491+
}
12492+
}
12493+
12494+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12495+
Content-Disposition: attachment; filename="hdaroot/uvlayout1.parm"
12496+
Content-Type: text/plain
12497+
12498+
{
12499+
version 0.8
12500+
groupparams [ 0 locks=0 ] ( 0 )
12501+
uvattrib [ 0 locks=0 ] ( uv1 )
12502+
projplane [ 0 locks=0 ] ( "xy" )
12503+
group [ 0 locks=0 ] ( "" )
12504+
overrides [ 0 locks=0 ] ( 0 )
12505+
connectivityoverrides [ 0 locks=0 ] ( 0 )
12506+
separatoredges [ 0 locks=0 ] ( "" )
12507+
useislandattr [ 0 locks=0 ] ( "off" )
12508+
islandattr [ 0 locks=0 ] ( island )
12509+
targetassignment [ 0 locks=0 ] ( 0 )
12510+
usetargetattr [ 0 locks=0 ] ( "off" )
12511+
targetattr [ 0 locks=0 ] ( udim )
12512+
targetoverrides [ 0 locks=0 ] ( "" )
12513+
areaadjustment [ 0 locks=0 ] ( 0 )
12514+
useislandscaleattr [ 0 locks=0 ] ( "off" )
12515+
islandscaleattr [ 0 locks=0 ] ( iscale )
12516+
scaleoverrides [ 0 locks=0 ] ( "" )
12517+
projoffset [ 0 locks=0 ] ( 0 )
12518+
useislandsetattr [ 0 locks=0 ] ( "off" )
12519+
islandoffsetattr [ 0 locks=0 ] ( ioffset )
12520+
offsetoverrides [ 0 locks=0 ] ( "" )
12521+
correctareas [ 0 locks=0 ] ( "on" )
12522+
axisalignislands [ 0 locks=0 ] ( "intrinsic" )
12523+
packing [ 0 locks=0 ] ( 0 )
12524+
scaling [ 0 locks=0 ] ( "auto" )
12525+
scale [ 0 locks=0 ] ( 1 )
12526+
rotstep [ 0 locks=0 ] ( "PI32" )
12527+
circledivs [ 0 locks=0 ] ( 1 )
12528+
packbetween [ 0 locks=0 ] ( "off" )
12529+
packincavities [ 0 locks=0 ] ( "on" )
12530+
padding [ 0 locks=0 ] ( [ padding 0 ] )
12531+
paddingboundary [ 0 locks=0 ] ( "on" )
12532+
expandpadding [ 0 locks=0 ] ( "on" )
12533+
packingadvanced [ 0 locks=0 ] ( 0 )
12534+
iterations [ 0 locks=0 ] ( 1 )
12535+
resolution [ 0 locks=0 ] ( "res3" )
12536+
customresolution [ 0 locks=0 ] ( 1024 )
12537+
uvtolerance [ 0 locks=0 ] ( 1.0000000000000001e-05 )
12538+
scaletolerance [ 0 locks=0 ] ( 0.0050000000000000001 )
12539+
randseed [ 0 locks=0 ] ( 5489 )
12540+
targets [ 0 locks=0 ] ( 0 )
12541+
targettype [ 0 locks=0 ] ( "boxes" )
12542+
usedefaulttarget [ 0 locks=0 ] ( "off" )
12543+
defaulttarget [ 0 locks=0 ] ( 0 )
12544+
usedefaultudimtarget [ 0 locks=0 ] ( "off" )
12545+
defaultudimtarget [ 0 locks=0 ] ( 1001 )
12546+
rectanglesgroup [ 0 locks=0 ] ( 0 )
12547+
rects [ 0 locks=0 ] ( 1 )
12548+
udimtilegroup [ 0 locks=0 ] ( 0 )
12549+
tilesize [ 0 locks=0 ] ( 1 1 )
12550+
numcolumns [ 0 locks=0 ] ( 10 )
12551+
startingudim [ 0 locks=0 ] ( 1001 )
12552+
targetuvattrib [ 0 locks=0 ] ( uv )
12553+
targetprojplane [ 0 locks=0 ] ( "xy" )
12554+
targetgroup [ 0 locks=0 ] ( "" )
12555+
targetconnectivityoverrides [ 0 locks=0 ] ( 0 )
12556+
targetseparatoredges [ 0 locks=0 ] ( "" )
12557+
usetargetislandattr [ 0 locks=0 ] ( "off" )
12558+
targetislandattr [ 0 locks=0 ] ( targetisland )
12559+
islandstacking [ 0 locks=0 ] ( 0 )
12560+
stackislands [ 0 locks=0 ] ( "off" )
12561+
invertedoverlays [ 0 locks=0 ] ( "off" )
12562+
stackonnongroup [ 0 locks=0 ] ( "off" )
12563+
overlaytolerance [ 0 locks=0 ] ( 0.02 )
12564+
outputgroups [ 0 locks=0 ] ( 0 )
12565+
generatenonpackedpoly [ 0 locks=0 ] ( "off" )
12566+
nonpackedpolys [ 0 locks=0 ] ( nonpacked )
12567+
generateislandattr [ 0 locks=0 ] ( "off" )
12568+
outputislandattr [ 0 locks=0 ] ( island )
12569+
generatetargetattr [ 0 locks=0 ] ( "off" )
12570+
outputtargetattr [ 0 locks=0 ] ( target )
12571+
rect_use0 [ 0 locks=0 ] ( "on" )
12572+
rect_center0 [ 0 locks=0 ] ( 0.5 0.5 )
12573+
rect_size0 [ 0 locks=0 ] ( 1 1 )
12574+
}
12575+
12576+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12577+
Content-Disposition: attachment; filename="hdaroot/uvlayout1.userdata"
12578+
Content-Type: text/plain
12579+
12580+
{
12581+
"___Version___":{
12582+
"type":"string",
12583+
"value":"17.5.293"
12584+
}
12585+
}
12586+
12587+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12588+
Content-Disposition: attachment; filename="hdaroot/switch5.init"
12589+
Content-Type: text/plain
12590+
12591+
type = switch
12592+
matchesdef = 0
12593+
12594+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12595+
Content-Disposition: attachment; filename="hdaroot/switch5.def"
12596+
Content-Type: text/plain
12597+
12598+
sopflags sopflags =
12599+
comment ""
12600+
position -4.70146 -16.3187
12601+
connectornextid 3
12602+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
12603+
outputsNamed3
12604+
{
12605+
2 "output1"
12606+
}
12607+
inputsNamed3
12608+
{
12609+
0 PivotPainter_1_vs_2 1 1 "input1"
12610+
1 uvlayout1 1 1 "input2"
12611+
}
12612+
inputs
12613+
{
12614+
0 PivotPainter_1_vs_2 0 1
12615+
1 uvlayout1 0 1
12616+
}
12617+
stat
12618+
{
12619+
create 1562623522
12620+
modify 1562623545
12621+
author prisms@threadripper1
12622+
access 0777
12623+
}
12624+
color UT_Color RGB 0.8 1 0.7
12625+
delscript ""
12626+
exprlanguage hscript
12627+
end
12628+
12629+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12630+
Content-Disposition: attachment; filename="hdaroot/switch5.chn"
12631+
Content-Type: text/plain
12632+
12633+
{
12634+
channel input {
12635+
lefttype = extend
12636+
righttype = extend
12637+
flags = 0
12638+
segment { length = 0 expr = ch(\"../bLayoutLightmap\") }
12639+
}
12640+
}
12641+
12642+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12643+
Content-Disposition: attachment; filename="hdaroot/switch5.parm"
12644+
Content-Type: text/plain
12645+
12646+
{
12647+
version 0.8
12648+
input [ 8 locks=0 ] ( [ input 0 ] )
12649+
}
12650+
12651+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
12652+
Content-Disposition: attachment; filename="hdaroot/switch5.userdata"
12653+
Content-Type: text/plain
12654+
12655+
{
12656+
"___Version___":{
12657+
"type":"string",
12658+
"value":"17.5.293"
12659+
}
12660+
}
12661+
1244412662
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
1244512663
Content-Disposition: attachment; filename="hdaroot/__dot1.networkdotinit"
1244612664
Content-Type: text/plain
@@ -12588,7 +12806,7 @@ Content-Type: text/plain
1258812806
Content-Disposition: attachment; filename="hdaroot.order"
1258912807
Content-Type: text/plain
1259012808

12591-
141
12809+
143
1259212810
PIVOTPAINTER_1.0
1259312811
OUT
1259412812
PIVOTPAINTER_HIERARCHY_BRANCH_1.0
@@ -12730,6 +12948,8 @@ attribwrangle11
1273012948
sort4
1273112949
Lightmap_UVs
1273212950
attribwrangle8
12951+
uvlayout1
12952+
switch5
1273312953

1273412954
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
1273512955
Content-Disposition: attachment; filename="hdaroot.net"

otls/sop_unreal_pivotpainter.hda/gamedev_8_8Sop_1sop__unreal__pivotpainter/DialogScript

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@
3434
"1" "Custom"
3535
}
3636
}
37+
parm {
38+
name "bLayoutLightmap"
39+
label "Layout Lightmap UVs"
40+
type toggle
41+
default { "1" }
42+
}
43+
parm {
44+
name "uvpadding"
45+
label "UV Padding"
46+
type integer
47+
default { "5" }
48+
disablewhen "{ bLayoutLightmap == 0 }"
49+
range { 0! 20 }
50+
parmtag { "autoscope" "0000000000000000" }
51+
}
3752
parm {
3853
name "sepparm2"
3954
label "Separator"

0 commit comments

Comments
 (0)