Skip to content

Commit 56ea147

Browse files
[IGNORE] **Labs Symmetrize SOP** - Replaced by a Mirror SOP alias. To be removed in Houdini 23.0.
1 parent cd684ac commit 56ea147

File tree

14 files changed

+134
-61
lines changed

14 files changed

+134
-61
lines changed

OPcustomize

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ophide Sop labs::multi_file // Replaced by filemerge::2.0
1919
ophide Sop labs::spiral // Replaced by spiral
2020
ophide Sop labs::spiral::1.1 // Replaced by spiral
2121
ophide Sop labs::sweep_geometry // Replaced by sweep::2.0
22+
ophide Sop labs::symmetrize // Replaced by mirror
2223

2324
// H20.5 Changes
2425
ophide Sop labs::gaea_tor_processor::4.0 // Replaced by quadspinner::gaea_terrain_processor::1.0
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
= Labs Symmetrize =
22

3-
#type: node
4-
#context: sop
5-
#internal: labs::symmetrize
6-
#icon: symmetrize
7-
#tags: model, gamedev, sidefxlabs
3+
#type: node
4+
#context: sop
5+
#internal: labs::symmetrize
6+
#icon: symmetrize
87

98
""" Clips and mirrors geometry along an axis. """
109

1110
The Symmetrize sop allows you to cut and mirror geometry along an axis. This is useful for making pieces symmetrical, or for creating corner pieces from straight geometry like seen in the image below.
1211

13-
[Image: /images/symmetrize.jpg]
12+
NOTE:
13+
Replaced by Mirror SOP. To be removed in Houdini 23.0.
1414

1515
@parameters
1616
Mirror Direction:
17+
#id: direction
1718
The direction / axis along which the input geometry will be cut and mirrored.
19+
1820
Mirror Origin:
19-
The origin at which the geometry gets cut.
20-
Dissolve flat edges:
21-
Enabling this will dissolve flat edges in the geometry. This is useful for hard surface models where the cutting plane from this tool has inserted a new edge.
21+
#id: origin
22+
The origin at which the geometry gets cut.
23+
24+
Dissolve Flat Edges:
25+
#id: dissolve
26+
Enabling this will dissolve flat edges in the geometry. This is useful for hard surface models where the cutting plane from this tool has inserted a new edge.

otls/symmetrize.hda/INDEX__SECTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Path: oplib:/labs::Sop/symmetrize?labs::Sop/symmetrize
44
Icon: SOP_mirror
55
Table: Sop
66
License:
7-
Extra:
7+
Extra: inputcolors='1 "RGB 0.700195 0.700195 0.700195" ' outputcolors='1 "RGB 0.700195 0.700195 0.700195" '
88
User:
99
Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Mon Dec 12 13:30:01 2022
13+
Modified: Tue Dec 9 15:39:41 2025
1414

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"hdaroot/sop_dissolve_flat_edges1.def":1573648345,
3-
"hdaroot/mirror1.def":1556973352,
4-
"hdaroot/output0.def":1573648310,
52
"hdaroot/clip1.def":1556973273,
3+
"hdaroot/output0.def":1573648310,
4+
"hdaroot/mirror1.def":1556973352,
65
"hdaroot/switch1.def":1573648377,
7-
"hdaroot.def":1670869247
6+
"hdaroot.def":1765312129,
7+
"hdaroot/sop_dissolve_flat_edges1.def":1573648345
88
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"values":["0.1","19.0.720"
2+
"values":["21.0.530"
33
],
44
"indexes":{
5-
"hdaroot/switch1.userdata":1,
6-
"hdaroot/mirror1.userdata":1,
7-
"hdaroot/output0.userdata":1,
8-
"hdaroot.userdata":0,
9-
"hdaroot/clip1.userdata":1
5+
"hdaroot/switch1.userdata":0,
6+
"hdaroot/output0.userdata":0,
7+
"hdaroot/mirror1.userdata":0,
8+
"hdaroot/clip1.userdata":0
109
}
1110
}

otls/symmetrize.hda/labs_8_8Sop_1symmetrize/Contents.dir/Contents.mime

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,26 @@ Content-Disposition: attachment; filename="hdaroot.def"
3131
Content-Type: text/plain
3232

3333
sopflags sopflags =
34-
comment ""
35-
position 3.5 0.85
36-
connectornextid 0
34+
comment "Replaced by Mirror SOP. To be removed in Houdini 23.0."
35+
position -10.2944 1.27571
36+
connectornextid 1
3737
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
3838
outputsNamed3
3939
{
4040
}
4141
inputsNamed3
4242
{
43+
0 testgeometry_pighead1 0 1 "input1"
4344
}
4445
inputs
4546
{
47+
0 testgeometry_pighead1 0 1
4648
}
4749
stat
4850
{
4951
create -1
5052
modify -1
51-
author christoss@oxbow
53+
author christoss@cayuga.local
5254
access 0777
5355
}
5456
color UT_Color RGB 0.8 0.8 0.8
@@ -63,7 +65,11 @@ Content-Type: text/plain
6365
{
6466
"___Version___":{
6567
"type":"string",
66-
"value":"___EXTERNAL___"
68+
"value":""
69+
},
70+
"wirestyle":{
71+
"type":"string",
72+
"value":"rounded"
6773
}
6874
}
6975

@@ -130,38 +136,38 @@ Content-Type: text/plain
130136
lefttype = extend
131137
righttype = extend
132138
flags = 0
133-
segment { length = 0 expr = ch(\"../dir2x\") }
139+
segment { length = 0 expr = ch(\"../directionx\") }
134140
}
135141
channel diry {
136142
lefttype = extend
137143
righttype = extend
138144
default = 1
139145
flags = 0
140-
segment { length = 0 value = 1 1 expr = ch(\"../dir2y\") }
146+
segment { length = 0 value = 1 1 expr = ch(\"../directiony\") }
141147
}
142148
channel dirz {
143149
lefttype = extend
144150
righttype = extend
145151
flags = 0
146-
segment { length = 0 expr = ch(\"../dir2z\") }
152+
segment { length = 0 expr = ch(\"../directionz\") }
147153
}
148154
channel originx {
149155
lefttype = extend
150156
righttype = extend
151157
flags = 0
152-
segment { length = 0 expr = ch(\"../origin2x\") }
158+
segment { length = 0 expr = ch(\"../originx\") }
153159
}
154160
channel originy {
155161
lefttype = extend
156162
righttype = extend
157163
flags = 0
158-
segment { length = 0 expr = ch(\"../origin2y\") }
164+
segment { length = 0 expr = ch(\"../originy\") }
159165
}
160166
channel originz {
161167
lefttype = extend
162168
righttype = extend
163169
flags = 0
164-
segment { length = 0 expr = ch(\"../origin2z\") }
170+
segment { length = 0 expr = ch(\"../originz\") }
165171
}
166172
}
167173

@@ -284,13 +290,18 @@ Content-Type: text/plain
284290
{
285291
version 0.8
286292
group [ 0 locks=0 ] ( "" )
293+
operation [ 0 locks=0 ] ( "all" )
294+
dirtype [ 0 locks=0 ] ( "direction" )
295+
t [ 0 locks=0 ] ( 0 0 0 )
296+
r [ 0 locks=0 ] ( 0 0 0 )
287297
origin [ 8 locks=0 ] ( [ originx 0 ] [ originy 0 ] [ originz 0 ] )
288-
dist [ 0 locks=0 ] ( 0 )
289298
dir [ 8 locks=0 ] ( [ dirx 1 ] [ diry 0 ] [ dirz 0 ] )
299+
dist [ 0 locks=0 ] ( 0 )
290300
reversenml [ 0 locks=0 ] ( "reverse" )
291301
keepOriginal [ 0 locks=0 ] ( "on" )
292302
consolidatepts [ 0 locks=0 ] ( "on" )
293-
consolidatetol [ 0 locks=0 ] ( 9.9999997473787516e-05 )
303+
consolidatetol [ 0 locks=0 ] ( 9.999999747378752e-5 )
304+
consolidateunshared [ 0 locks=0 ] ( "on" )
294305
createoutputgroup [ 0 locks=0 ] ( "off" )
295306
outputgroup [ 0 locks=0 ] ( mirror )
296307
}
@@ -478,7 +489,7 @@ Content-Type: text/plain
478489
lefttype = extend
479490
righttype = extend
480491
flags = 0
481-
segment { length = 0 expr = ch(\"../T_Dissolve\") }
492+
segment { length = 0 expr = ch(\"../dissolve\") }
482493
}
483494
}
484495

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"hdaroot/sop_dissolve_flat_edges1.def":1573648431,
3-
"hdaroot/mirror1.def":1573648316,
2+
"hdaroot/clip1.def":1765312774,
43
"hdaroot/output0.def":1573648381,
5-
"hdaroot/clip1.def":1573648306,
6-
"hdaroot/switch1.def":1573648448,
7-
"hdaroot.def":1670869251
4+
"hdaroot/mirror1.def":1573648316,
5+
"hdaroot/switch1.def":1765312764,
6+
"hdaroot.def":1765312777,
7+
"hdaroot/sop_dissolve_flat_edges1.def":1573648431
88
}

otls/symmetrize.hda/labs_8_8Sop_1symmetrize/CreateScript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ endif
1111

1212
# Node $arg1 (labs::Sop/symmetrize)
1313
opexprlanguage -s hscript $arg1
14-
opuserdata -n '___Version___' -v '0.1' $arg1
14+
opuserdata -n '___Version___' -v '' $arg1
15+
opuserdata -n 'wirestyle' -v 'rounded' $arg1

otls/symmetrize.hda/labs_8_8Sop_1symmetrize/DialogScript

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
""
1010
}
1111
bindhandle group vector "Clipping_Direction" input "ownerop('clip1') owneropgroup('group')"
12-
bindhandle origin2x vector "Clipping_Direction" tx "ownerop('clip1') owneropgroup('group')"
13-
bindhandle origin2y vector "Clipping_Direction" ty "ownerop('clip1') owneropgroup('group')"
14-
bindhandle origin2z vector "Clipping_Direction" tz "ownerop('clip1') owneropgroup('group')"
15-
bindhandle dir2x vector "Clipping_Direction" vx "ownerop('clip1') owneropgroup('group')"
16-
bindhandle dir2y vector "Clipping_Direction" vy "ownerop('clip1') owneropgroup('group')"
17-
bindhandle dir2z vector "Clipping_Direction" vz "ownerop('clip1') owneropgroup('group')"
12+
bindhandle originx vector "Clipping_Direction" tx "ownerop('clip1') owneropgroup('group')"
13+
bindhandle originy vector "Clipping_Direction" ty "ownerop('clip1') owneropgroup('group')"
14+
bindhandle originz vector "Clipping_Direction" tz "ownerop('clip1') owneropgroup('group')"
15+
bindhandle directionx vector "Clipping_Direction" vx "ownerop('clip1') owneropgroup('group')"
16+
bindhandle directiony vector "Clipping_Direction" vy "ownerop('clip1') owneropgroup('group')"
17+
bindhandle directionz vector "Clipping_Direction" vz "ownerop('clip1') owneropgroup('group')"
1818

1919
inputlabel 1 Geometry
2020
inputlabel 2 "Sub-Network Input #2"
@@ -36,7 +36,7 @@
3636
parmtag { "script_action_icon" "BUTTONS_reselect" }
3737
}
3838
parm {
39-
name "dir2"
39+
name "direction"
4040
label "Mirror Direction"
4141
type direction
4242
size 3
@@ -45,7 +45,7 @@
4545
parmtag { "autoscope" "0000000000000000" }
4646
}
4747
parm {
48-
name "origin2"
48+
name "origin"
4949
label "Mirror Origin"
5050
type vector
5151
size 3
@@ -54,8 +54,8 @@
5454
parmtag { "autoscope" "0000000000000000" }
5555
}
5656
parm {
57-
name "T_Dissolve"
58-
label "Dissolve flat edges"
57+
name "dissolve"
58+
label "Dissolve Flat Edges"
5959
type toggle
6060
default { "0" }
6161
parmtag { "script_callback_language" "python" }

otls/symmetrize.hda/labs_8_8Sop_1symmetrize/ExtraFileOptions

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,51 @@
11
{
2-
"ViewerHandleModule/CodeGenInput":{
2+
"OnCreated/Cursor":{
3+
"type":"intarray",
4+
"value":[1,1]
5+
},
6+
"OnCreated/IsExpr":{
7+
"type":"bool",
8+
"value":false
9+
},
10+
"OnCreated/IsPython":{
11+
"type":"bool",
12+
"value":true
13+
},
14+
"OnCreated/IsScript":{
15+
"type":"bool",
16+
"value":true
17+
},
18+
"OnCreated/Source":{
319
"type":"string",
4-
"value":"{\n\t\"handle_name\":\"\",\n\t\"handle_label\":\"\",\n\t\"handle_descr\":\"\",\n\t\"handle_icon\":\"$HH/config/Icons\",\n\t\"handle_debug_menu\":0,\n\t\"handle_sample\":0,\n\t\"handle_handler_indices\":[]\n}\n"
20+
"value":""
21+
},
22+
"OnLoaded/Cursor":{
23+
"type":"intarray",
24+
"value":[3,55]
25+
},
26+
"OnLoaded/IsExpr":{
27+
"type":"bool",
28+
"value":false
29+
},
30+
"OnLoaded/IsPython":{
31+
"type":"bool",
32+
"value":true
33+
},
34+
"OnLoaded/IsScript":{
35+
"type":"bool",
36+
"value":true
537
},
6-
"ViewerStateModule/CodeGenInput":{
38+
"OnLoaded/Source":{
739
"type":"string",
8-
"value":"{\n\t\"state_name\":\"\",\n\t\"state_label\":\"\",\n\t\"state_descr\":\"\",\n\t\"state_icon\":\"$HH/config/Icons\",\n\t\"state_debug_menu\":0,\n\t\"state_sample\":0,\n\t\"state_handler_indices\":[]\n}\n"
40+
"value":""
941
},
1042
"ViewerStateName.orig/Cursor":{
1143
"type":"intarray",
12-
"value":[0,0]
44+
"value":[1,1]
45+
},
46+
"ViewerStateName.orig/IsExpr":{
47+
"type":"bool",
48+
"value":false
1349
},
1450
"ViewerStateName.orig/IsPython":{
1551
"type":"bool",
@@ -19,10 +55,6 @@
1955
"type":"bool",
2056
"value":true
2157
},
22-
"ViewerStateName.orig/IsViewerState":{
23-
"type":"bool",
24-
"value":false
25-
},
2658
"ViewerStateName.orig/Source":{
2759
"type":"string",
2860
"value":""

0 commit comments

Comments
 (0)