Skip to content

Commit 8962e00

Browse files
committed
Axis Align added functionality to make unit size.
1 parent 48f1153 commit 8962e00

File tree

7 files changed

+272
-16
lines changed

7 files changed

+272
-16
lines changed

otls/sop_axis_align.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: Wed Feb 14 11:23:48 2018
13+
Modified: Thu Feb 15 13:43:33 2018
1414

Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sop/attribwrangle C:/PROGRA~1/SIDEEF~1/HOUDIN~1.385/houdini/otls/OPlibSop.hda
2+
Sop/attribwrangle otls/OPlibSop.hda

otls/sop_axis_align.hda/gamedev_8_8Sop_1sop__axis__align/Contents.dir/Contents.mime

Lines changed: 262 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
MIME-Version: 1.0
22
Content-Type: multipart/mixed; boundary="HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY"
33

4+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
5+
Content-Disposition: attachment; filename=".OPfallbacks"
6+
Content-Type: application/external-reference
7+
8+
.OPfallbacks
9+
10+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
11+
Content-Disposition: attachment; filename=".OPdummydefs"
12+
Content-Type: application/external-reference
13+
14+
.OPdummydefs
15+
416
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
517
Content-Disposition: attachment; filename="node_type"
618
Content-Type: text/plain
@@ -20,22 +32,24 @@ Content-Type: text/plain
2032

2133
sopflags sopflags =
2234
comment ""
23-
position -9.34929 6.08611
24-
connectornextid 0
25-
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
35+
position -1.22424 -1.63529
36+
connectornextid 1
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
2638
outputsNamed3
2739
{
2840
}
2941
inputsNamed3
3042
{
43+
0 testgeometry_rubbertoy1 0 1 "input1"
3144
}
3245
inputs
3346
{
47+
0 testgeometry_rubbertoy1 0 1
3448
}
3549
stat
3650
{
37-
create 1518636213
38-
modify 1518636230
51+
create 1518730741
52+
modify 1518731013
3953
author SideFX_Events@MSILA-2
4054
access 0777
4155
}
@@ -51,7 +65,7 @@ Content-Type: text/plain
5165
{
5266
"___Version___":{
5367
"type":"string",
54-
"value":"0.1"
68+
"value":"0.2"
5569
}
5670
}
5771

@@ -60,7 +74,96 @@ Content-Disposition: attachment; filename="hdaroot.inp"
6074
Content-Type: text/plain
6175

6276
1
63-
0 0 6 2 0 __NO_OWNER_NETWORK_BOX__ "FROMOUTPUT"
77+
0 0.0030000058468139766 6.6352941176470583 2 0 __NO_OWNER_NETWORK_BOX__ "FROMOUTPUT"
78+
79+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
80+
Content-Disposition: attachment; filename="hdaroot/attribwrangle1.init"
81+
Content-Type: text/plain
82+
83+
type = attribwrangle
84+
matchesdef = 1
85+
86+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
87+
Content-Disposition: attachment; filename="hdaroot/attribwrangle1.def"
88+
Content-Type: text/plain
89+
90+
sopflags sopflags =
91+
comment ""
92+
position 1.50438 5.33101
93+
connectornextid 2
94+
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
95+
outputsNamed3
96+
{
97+
1 "output1"
98+
}
99+
inputsNamed3
100+
{
101+
0 (0) "" 1 "input1"
102+
}
103+
inputs
104+
{
105+
0 (0) 0 1
106+
}
107+
stat
108+
{
109+
create 1518730776
110+
modify 1518730895
111+
author SideFX_Events@MSILA-2
112+
access 0777
113+
}
114+
color UT_Color RGB 0.8 0.8 0.8
115+
delscript ""
116+
exprlanguage hscript
117+
end
118+
119+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
120+
Content-Disposition: attachment; filename="hdaroot/attribwrangle1.parm"
121+
Content-Type: text/plain
122+
123+
{
124+
version 0.8
125+
folder0 [ 0 locks=0 ] ( 0 0 )
126+
group [ 0 locks=0 ] ( "" )
127+
grouptype [ 0 locks=0 ] ( "guess" )
128+
class [ 0 locks=0 ] ( "point" )
129+
vex_numcount [ 0 locks=0 ] ( 10 )
130+
vex_threadjobsize [ 0 locks=0 ] ( 1024 )
131+
snippet [ 0 locks=0 ] ( "// Get Center
132+
vector center = getbbox_center(0);
133+
134+
// Move to Origin
135+
@P -= center;
136+
137+
// Scale
138+
float maxSize = 1.0/max(getbbox_size(0));
139+
@P *= set(set(maxSize, 0, 0), set(0, maxSize, 0), set(0, 0, maxSize));
140+
141+
// Move Back
142+
@P += center;" )
143+
exportlist [ 0 locks=0 ] ( * )
144+
vex_strict [ 0 locks=0 ] ( "off" )
145+
autobind [ 0 locks=0 ] ( "on" )
146+
bindings [ 0 locks=0 ] ( 0 )
147+
groupautobind [ 0 locks=0 ] ( "on" )
148+
groupbindings [ 0 locks=0 ] ( 0 )
149+
vex_cwdpath [ 0 locks=0 ] ( . )
150+
vex_outputmask [ 0 locks=0 ] ( * )
151+
vex_updatenmls [ 0 locks=0 ] ( "off" )
152+
vex_matchattrib [ 0 locks=0 ] ( id )
153+
vex_inplace [ 0 locks=0 ] ( "off" )
154+
vex_selectiongroup [ 0 locks=0 ] ( "" )
155+
}
156+
157+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
158+
Content-Disposition: attachment; filename="hdaroot/attribwrangle1.userdata"
159+
Content-Type: text/plain
160+
161+
{
162+
"___Version___":{
163+
"type":"string",
164+
"value":""
165+
}
166+
}
64167

65168
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
66169
Content-Disposition: attachment; filename="hdaroot/transform2.init"
@@ -75,24 +178,25 @@ Content-Type: text/plain
75178

76179
sopflags sopflags =
77180
comment ""
78-
position -1.11759e-08 4.65289
79-
connectornextid 1
80-
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
181+
position 0.00299999 3.31809
182+
connectornextid 2
183+
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
81184
outputsNamed3
82185
{
186+
1 "output1"
83187
}
84188
inputsNamed3
85189
{
86-
0 (0) "" 1 "input1"
190+
0 switch1 2 1 "input1"
87191
}
88192
inputs
89193
{
90-
0 (0) 0 1
194+
0 switch1 0 1
91195
}
92196
stat
93197
{
94198
create 1509473601
95-
modify 1511284184
199+
modify 1518730817
96200
author MAINGEAR@DESKTOP-P98C1VA
97201
access 0777
98202
}
@@ -178,7 +282,7 @@ group [ 0 locks=0 ] ( "" )
178282
grouptype [ 0 locks=0 ] ( "guess" )
179283
xOrd [ 0 locks=0 ] ( "srt" )
180284
rOrd [ 0 locks=0 ] ( "xyz" )
181-
t [ 8 locks=0 ] ( [ tx 210.8665771484375 ] [ ty 457.38748168945313 ] [ tz 334.619140625 ] )
285+
t [ 8 locks=0 ] ( [ tx -0 ] [ ty -0.55851495265960693 ] [ tz 0.062703996896743774 ] )
182286
r [ 0 locks=0 ] ( 0 0 0 )
183287
s [ 0 locks=0 ] ( 1 1 1 )
184288
shear [ 0 locks=0 ] ( 0 0 0 )
@@ -212,6 +316,150 @@ Content-Type: text/plain
212316
}
213317
}
214318

319+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
320+
Content-Disposition: attachment; filename="hdaroot/output1.init"
321+
Content-Type: text/plain
322+
323+
type = output
324+
matchesdef = 0
325+
326+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
327+
Content-Disposition: attachment; filename="hdaroot/output1.def"
328+
Content-Type: text/plain
329+
330+
sopflags sopflags =
331+
comment ""
332+
position 0.00299999 2.31809
333+
connectornextid 1
334+
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
335+
outputsNamed3
336+
{
337+
}
338+
inputsNamed3
339+
{
340+
0 transform2 1 1 "input1"
341+
}
342+
inputs
343+
{
344+
0 transform2 0 1
345+
}
346+
stat
347+
{
348+
create 1518730798
349+
modify 1518730907
350+
author SideFX_Events@MSILA-2
351+
access 0777
352+
}
353+
color UT_Color RGB 0.8 0.8 0.8
354+
delscript ""
355+
exprlanguage hscript
356+
end
357+
358+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
359+
Content-Disposition: attachment; filename="hdaroot/output1.parm"
360+
Content-Type: text/plain
361+
362+
{
363+
version 0.8
364+
outputidx [ 0 locks=0 ] ( 0 )
365+
}
366+
367+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
368+
Content-Disposition: attachment; filename="hdaroot/output1.userdata"
369+
Content-Type: text/plain
370+
371+
{
372+
"___Version___":{
373+
"type":"string",
374+
"value":"16.5.385"
375+
}
376+
}
377+
378+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
379+
Content-Disposition: attachment; filename="hdaroot/switch1.init"
380+
Content-Type: text/plain
381+
382+
type = switch
383+
matchesdef = 0
384+
385+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
386+
Content-Disposition: attachment; filename="hdaroot/switch1.def"
387+
Content-Type: text/plain
388+
389+
sopflags sopflags =
390+
comment ""
391+
position 0.00299999 4.37769
392+
connectornextid 3
393+
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
394+
outputsNamed3
395+
{
396+
2 "output1"
397+
}
398+
inputsNamed3
399+
{
400+
0 (0) "" 1 "input1"
401+
1 attribwrangle1 1 1 "input2"
402+
}
403+
inputs
404+
{
405+
0 (0) 0 1
406+
1 attribwrangle1 0 1
407+
}
408+
stat
409+
{
410+
create 1518730810
411+
modify 1518731000
412+
author SideFX_Events@MSILA-2
413+
access 0777
414+
}
415+
color UT_Color RGB 0.8 1 0.7
416+
delscript ""
417+
exprlanguage hscript
418+
end
419+
420+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
421+
Content-Disposition: attachment; filename="hdaroot/switch1.chn"
422+
Content-Type: text/plain
423+
424+
{
425+
channel input {
426+
lefttype = extend
427+
righttype = extend
428+
flags = 0
429+
segment { length = 0 expr = ch(\"../bUnitSize\") }
430+
}
431+
}
432+
433+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
434+
Content-Disposition: attachment; filename="hdaroot/switch1.parm"
435+
Content-Type: text/plain
436+
437+
{
438+
version 0.8
439+
input [ 8 locks=0 ] ( [ input 0 ] )
440+
}
441+
442+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
443+
Content-Disposition: attachment; filename="hdaroot/switch1.userdata"
444+
Content-Type: text/plain
445+
446+
{
447+
"___Version___":{
448+
"type":"string",
449+
"value":"16.5.385"
450+
}
451+
}
452+
453+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
454+
Content-Disposition: attachment; filename="hdaroot.order"
455+
Content-Type: text/plain
456+
457+
4
458+
transform2
459+
attribwrangle1
460+
output1
461+
switch1
462+
215463
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
216464
Content-Disposition: attachment; filename="hdaroot.net"
217465
Content-Type: text/plain

otls/sop_axis_align.hda/gamedev_8_8Sop_1sop__axis__align/CreateScript

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

1212
# Node $arg1 (gamedev::Sop/sop_axis_align)
1313
opexprlanguage -s hscript $arg1
14-
opuserdata -n '___Version___' -v '0.1' $arg1
14+
opuserdata -n '___Version___' -v '0.2' $arg1

otls/sop_axis_align.hda/gamedev_8_8Sop_1sop__axis__align/DialogScript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,10 @@
5050
"2" "Max"
5151
}
5252
}
53+
parm {
54+
name "bUnitSize"
55+
label "Make Unit Size"
56+
type toggle
57+
default { "0" }
58+
}
5359
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)