Skip to content

Commit 4fcd4a4

Browse files
committed
[BUGFIX] RizomUVs Unwrap Mosaic node was wrong
1 parent 3e2a2f3 commit 4fcd4a4

File tree

3 files changed

+34
-39
lines changed

3 files changed

+34
-39
lines changed

otls/sop_rizomuv_unwrap.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Sat Nov 23 00:00:49 2019
13+
Modified: Tue Nov 26 16:57:40 2019
1414

otls/sop_rizomuv_unwrap.hda/gamedev_8_8Sop_1sop__rizomuv__unwrap/Contents.dir/Contents.mime

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sopflags sopflags =
3434
comment ""
3535
position -2.69921 -5.55237
3636
connectornextid 2
37-
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
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
3838
outputsNamed3
3939
{
4040
1 "output1"
@@ -50,7 +50,7 @@ inputs
5050
stat
5151
{
5252
create 1574483542
53-
modify 1574485238
53+
modify 1574801943
5454
author MAINGEAR@DESKTOP-P98C1VA
5555
access 0777
5656
}
@@ -108,7 +108,7 @@ inputs
108108
stat
109109
{
110110
create 1574474002
111-
modify 1574484660
111+
modify 1574801945
112112
author MAINGEAR@DESKTOP-P98C1VA
113113
access 0777
114114
}
@@ -181,7 +181,7 @@ sepparm4 [ 0 locks=0 ] ( )
181181
rizomSDKHelp [ 0 locks=0 ] ( 0 )
182182
rizomWeb [ 0 locks=0 ] ( 0 )
183183
rizomloc [ 0 locks=0 autoscope=0 ] ( [ rizomloc "C:/Program Files/Rizom Lab/RizomUV 2019/rizomuv.exe" ] )
184-
templocation [ 0 locks=0 autoscope=0 ] ( [ templocation C:/Users/MAINGEAR/sidefx_rizom_bridge_crab_sop_rizomuv_unwrap1.fbx ] )
184+
templocation [ 0 locks=0 autoscope=0 ] ( [ templocation C:/Users/MAINGEAR/sidefx_rizom_bridge_statue_sop_rizomuv_unwrap1.fbx ] )
185185
}
186186

187187
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -226,7 +226,7 @@ inputs
226226
stat
227227
{
228228
create 1572532862
229-
modify 1574389495
229+
modify 1574489454
230230
author MAINGEAR@DESKTOP-P98C1VA
231231
access 0777
232232
}
@@ -373,7 +373,7 @@ inputs
373373
stat
374374
{
375375
create 1572532862
376-
modify 1574389591
376+
modify 1574805439
377377
author MAINGEAR@DESKTOP-P98C1VA
378378
access 0777
379379
}
@@ -400,26 +400,10 @@ script = geo.attribValue(rizom_attr)
400400

401401
parent_node = node.parent()
402402

403-
bounds = []
404-
405-
parm_val = {\"xpos_ypos\":'\"XPYP\"',
406-
\"xpos_zpos\":'\"XPZP\"',
407-
\"xpos_yneg\":'\"XPYM\"',
408-
\"xpos_zneg\":'\"XPZM\"',
409-
\"ypos_zpos\":'\"YPZP\"',
410-
\"yneg_zpos\":'\"YMZP\"',
411-
\"yneg_zneg\":'\"YMZM\"',
412-
\"ypos_zneg\":'\"YPZM\"',
413-
\"xneg_ypos\":'\"XMYP\"',
414-
\"xneg_zpos\":'\"XMZP\"',
415-
\"xneg_yneg\":'\"XMYM\"',
416-
\"xneg_zneg\":'\"XMZM\"',
417-
418-
}
419-
420-
for parm in parm_val:
421-
if parent_node.parm(parm).eval():
422-
bounds.append(parm_val[parm])
403+
developability = parent_node.parm(\"force\").eval()
404+
fix_revolution_shapes = parent_node.parm(\"fix_revolution_shapes\").eval()
405+
enable_island_count = parent_node.parm(\"enable_island_count\").eval()
406+
island_count = parent_node.parm(\"island_count\").eval()
423407

424408

425409
# Advanced Settings
@@ -440,6 +424,11 @@ reweld_length_max = parent_node.parm(\"reweld_length_max\").eval()
440424
on_size_limiter = parent_node.parm(\"on_size_limiter\").eval()
441425
size_limiter = parent_node.parm(\"size_limiter\").eval()
442426

427+
428+
revolution_shapes = \"false\"
429+
if fix_revolution_shapes:
430+
revolution_shapes = \"true\"
431+
443432
pipes_cutter = \"false\"
444433
if select_hole_links:
445434
pipes_cutter = \"true\"
@@ -460,10 +449,16 @@ script += ', ResetBefore=true'
460449
script += ', ProtectMapName=\"Protect\"'
461450
script += ', FilterIslandVisible=true'
462451

463-
if len(bounds):
464-
script += ', Auto={Box={ActiveEdges={ '
465-
script += \",\".join(bounds)
466-
script += '}}'
452+
if enable_island_count:
453+
developability = 0
454+
455+
script += ', Auto={QuasiDevelopable={Developability={ ' + str(developability)
456+
script += ', FitCones=' + revolution_shapes
457+
script += ', IslandPolyNBMin=1'
458+
if enable_island_count:
459+
script += ', IslandsNB=' + str(island_count)
460+
461+
script += '}}'
467462

468463

469464
script += ', PipesCutter=' + pipes_cutter
@@ -531,7 +526,7 @@ inputs
531526
stat
532527
{
533528
create 1572532862
534-
modify 1574390610
529+
modify 1574489454
535530
author MAINGEAR@DESKTOP-P98C1VA
536531
access 0777
537532
}
@@ -654,7 +649,7 @@ inputs
654649
stat
655650
{
656651
create 1573659801
657-
modify 1574389498
652+
modify 1574489454
658653
author MAINGEAR@DESKTOP-P98C1VA
659654
access 0777
660655
}
@@ -683,7 +678,7 @@ Content-Type: text/plain
683678

684679
{
685680
version 0.8
686-
input [ 8 locks=0 ] ( [ input 0 ] )
681+
input [ 8 locks=0 ] ( [ input 1 ] )
687682
}
688683

689684
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -1046,7 +1041,7 @@ inputs
10461041
stat
10471042
{
10481043
create 1574278537
1049-
modify 1574287816
1044+
modify 1574489454
10501045
author MAINGEAR@DESKTOP-P98C1VA
10511046
access 0777
10521047
}
@@ -1105,7 +1100,7 @@ inputs
11051100
stat
11061101
{
11071102
create 1574278546
1108-
modify 1574460430
1103+
modify 1574489454
11091104
author MAINGEAR@DESKTOP-P98C1VA
11101105
access 0777
11111106
}
@@ -1163,7 +1158,7 @@ inputs
11631158
stat
11641159
{
11651160
create 1574278665
1166-
modify 1574484675
1161+
modify 1574801956
11671162
author MAINGEAR@DESKTOP-P98C1VA
11681163
access 0777
11691164
}
@@ -1253,7 +1248,7 @@ inputs
12531248
stat
12541249
{
12551250
create 1574278669
1256-
modify 1574287815
1251+
modify 1574489454
12571252
author MAINGEAR@DESKTOP-P98C1VA
12581253
access 0777
12591254
}
@@ -1316,7 +1311,7 @@ inputs
13161311
stat
13171312
{
13181313
create 1574278674
1319-
modify 1574460432
1314+
modify 1574489454
13201315
author MAINGEAR@DESKTOP-P98C1VA
13211316
access 0777
13221317
}

0 commit comments

Comments
 (0)