Skip to content

Commit e7aa9b5

Browse files
committed
Update for Houdini 18.5
1 parent 8977a46 commit e7aa9b5

6 files changed

Lines changed: 208 additions & 42 deletions

File tree

‎commands/helpcards.json‎

Lines changed: 50 additions & 25 deletions
Large diffs are not rendered by default.

‎messages.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"install": "messages/install.txt",
33
"7.1.0": "messages/7.1.0.txt",
44
"7.1.1": "messages/7.1.1.txt",
5-
"7.1.2": "messages/7.1.2.txt"
5+
"7.1.2": "messages/7.1.2.txt",
6+
"7.1.3": "messages/7.1.3.txt"
67
}

‎messages/7.1.3.txt‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Houdini add-on for Sublime Text:
2+
https://github.com/teared/HScript
3+
4+
5+
Release 7.1.3
6+
7+
8+
1. Updated for Houdini 18.5.
9+
10+
2. New expression functions added:
11+
12+
float bitset(float number, float bit_index, float value)
13+
float bittest(float number, float bit_index)
14+
float bitxor(float abits, float bbits)
15+
string detailattriblist(string surface_node)
16+
float haspdgattrib(string attribute)
17+
float ocldeviceinfo(string flag)
18+
string opnodigits(string name)
19+
float pdgattrib(string name, float index)
20+
string pdgattriblist()
21+
string pdgattribs(string name, float index)
22+
float pdgattribsize(string attribute)
23+
float pdgattribtype(string attribute)
24+
string pdgattribvals(string name)
25+
float pdginputsize(string tag)
26+
string pdginputvals(string tag, float localize)
27+
float pdgoutputsize(string tag)
28+
string pdgoutputvals(string tag, float localize)
29+
string pointattriblist(string surface_node)
30+
string primattriblist(string surface_node)
31+
string vertexgrouplist(string surface_node)
32+
string vertexgroupmask(string surface_node, string pattern)
33+
34+
Tip: to read about new functions quickly, copy the list in empty
35+
Sublime Text document, set HScript syntax and check documentation helpcards.
36+
37+
3. Commands highlighted in syntax:
38+
39+
opinputstring
40+
viewposteffects

‎readme.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Houdini] add-on for [Sublime Text]
22

3-
[Houdini]: https://sidefx.com/
3+
[Houdini]: https://www.sidefx.com/
44
[Sublime Text]: https://www.sublimetext.com/
55

66

@@ -13,8 +13,8 @@
1313

1414
Open [issues] for bug reports, requests, suggestions, etc.
1515

16-
[HScript]: http://www.sidefx.com/docs/houdini/commands/_guide
17-
[HScript Expressions]: http://www.sidefx.com/docs/houdini/ref/expression_cookbook.html
16+
[HScript]: https://www.sidefx.com/docs/houdini/commands/_guide
17+
[HScript Expressions]: https://www.sidefx.com/docs/houdini/ref/expression_cookbook.html
1818
[VEX add-on]: https://github.com/teared/VEX
1919
[issues]: https://github.com/teared/HScript/issues
2020

@@ -36,7 +36,7 @@ Requirements:
3636

3737
Tools → Install Package Control
3838

39-
[Sublime Text]: http://www.sublimetext.com/
39+
[Sublime Text]: https://www.sublimetext.com/
4040
[Package Control]: https://packagecontrol.io/
4141

4242

‎snippets/expressions.sublime-completions‎

Lines changed: 110 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
"trigger": "atof(source)",
5050
"contents": "atof(${1:source})"
5151
},
52+
{
53+
"trigger": "attriblist(surface_node, class)",
54+
"contents": "attriblist(${1:surface_node}, ${2:class})"
55+
},
5256
{
5357
"trigger": "bbox(surface_node, type)",
5458
"contents": "bbox(${1:surface_node}, ${2:type})"
@@ -57,6 +61,26 @@
5761
"trigger": "bezier()",
5862
"contents": "bezier()"
5963
},
64+
{
65+
"trigger": "bitand(abits, bbits)",
66+
"contents": "bitand(${1:abits}, ${2:bbits})"
67+
},
68+
{
69+
"trigger": "bitor(abits, bbits)",
70+
"contents": "bitor(${1:abits}, ${2:bbits})"
71+
},
72+
{
73+
"trigger": "bitset(number, bit_index, value)",
74+
"contents": "bitset(${1:number}, ${2:bit_index}, ${3:value})"
75+
},
76+
{
77+
"trigger": "bittest(number, bit_index)",
78+
"contents": "bittest(${1:number}, ${2:bit_index})"
79+
},
80+
{
81+
"trigger": "bitxor(abits, bbits)",
82+
"contents": "bitxor(${1:abits}, ${2:bbits})"
83+
},
6084
{
6185
"trigger": "boneangle(bone1, bone2)",
6286
"contents": "boneangle(${1:bone1}, ${2:bone2})"
@@ -198,12 +222,12 @@
198222
"contents": "constant()"
199223
},
200224
{
201-
"trigger": "contextoption(token)",
202-
"contents": "contextoption(${1:token})"
225+
"trigger": "contextoption(name)",
226+
"contents": "contextoption(${1:name})"
203227
},
204228
{
205-
"trigger": "contextoptions(token)",
206-
"contents": "contextoptions(${1:token})"
229+
"trigger": "contextoptions(name)",
230+
"contents": "contextoptions(${1:name})"
207231
},
208232
{
209233
"trigger": "cophasmeta(compositing_node, metadata_name)",
@@ -218,8 +242,8 @@
218242
"contents": "copmetas(${1:compositing_node}, ${2:metadata_name})"
219243
},
220244
{
221-
"trigger": "cos(number)",
222-
"contents": "cos(${1:number})"
245+
"trigger": "cos(degrees)",
246+
"contents": "cos(${1:degrees})"
223247
},
224248
{
225249
"trigger": "cosh(number)",
@@ -277,6 +301,10 @@
277301
"trigger": "detail(surface_node, attrib_name, attrib_index)",
278302
"contents": "detail(${1:surface_node}, ${2:attrib_name}, ${3:attrib_index})"
279303
},
304+
{
305+
"trigger": "detailattriblist(surface_node)",
306+
"contents": "detailattriblist(${1:surface_node})"
307+
},
280308
{
281309
"trigger": "detailattribsize(surface_node, attribute)",
282310
"contents": "detailattribsize(${1:surface_node}, ${2:attribute})"
@@ -601,6 +629,10 @@
601629
"trigger": "hasdetailattrib(surface_node, attribute)",
602630
"contents": "hasdetailattrib(${1:surface_node}, ${2:attribute})"
603631
},
632+
{
633+
"trigger": "haspdgattrib(attribute)",
634+
"contents": "haspdgattrib(${1:attribute})"
635+
},
604636
{
605637
"trigger": "haspoint(group_name, surface_node, point_num)",
606638
"contents": "haspoint(${1:group_name}, ${2:surface_node}, ${3:point_num})"
@@ -921,6 +953,10 @@
921953
"trigger": "oc(output_channel_index, index)",
922954
"contents": "oc(${1:output_channel_index}, ${2:index})"
923955
},
956+
{
957+
"trigger": "ocldeviceinfo(flag)",
958+
"contents": "ocldeviceinfo(${1:flag})"
959+
},
924960
{
925961
"trigger": "oldrand(value)",
926962
"contents": "oldrand(${1:value})"
@@ -997,6 +1033,10 @@
9971033
"trigger": "opninputs(name)",
9981034
"contents": "opninputs(${1:name})"
9991035
},
1036+
{
1037+
"trigger": "opnodigits(name)",
1038+
"contents": "opnodigits(${1:name})"
1039+
},
10001040
{
10011041
"trigger": "opnoutputs(name)",
10021042
"contents": "opnoutputs(${1:name})"
@@ -1081,6 +1121,26 @@
10811121
"trigger": "parmisstring(parameter_name)",
10821122
"contents": "parmisstring(${1:parameter_name})"
10831123
},
1124+
{
1125+
"trigger": "pdgattrib(name, index)",
1126+
"contents": "pdgattrib(${1:name}, ${2:index})"
1127+
},
1128+
{
1129+
"trigger": "pdgattriblist()",
1130+
"contents": "pdgattriblist()"
1131+
},
1132+
{
1133+
"trigger": "pdgattribs(name, index)",
1134+
"contents": "pdgattribs(${1:name}, ${2:index})"
1135+
},
1136+
{
1137+
"trigger": "pdgattribsize(attribute)",
1138+
"contents": "pdgattribsize(${1:attribute})"
1139+
},
1140+
{
1141+
"trigger": "pdgattribtype(attribute)",
1142+
"contents": "pdgattribtype(${1:attribute})"
1143+
},
10841144
{
10851145
"trigger": "pdgattribute(name, index)",
10861146
"contents": "pdgattribute(${1:name}, ${2:index})"
@@ -1089,14 +1149,34 @@
10891149
"trigger": "pdgattributes(name, index)",
10901150
"contents": "pdgattributes(${1:name}, ${2:index})"
10911151
},
1152+
{
1153+
"trigger": "pdgattribvals(name)",
1154+
"contents": "pdgattribvals(${1:name})"
1155+
},
10921156
{
10931157
"trigger": "pdginput(index, tag, localize)",
10941158
"contents": "pdginput(${1:index}, ${2:tag}, ${3:localize})"
10951159
},
1160+
{
1161+
"trigger": "pdginputsize(tag)",
1162+
"contents": "pdginputsize(${1:tag})"
1163+
},
1164+
{
1165+
"trigger": "pdginputvals(tag, localize)",
1166+
"contents": "pdginputvals(${1:tag}, ${2:localize})"
1167+
},
10961168
{
10971169
"trigger": "pdgoutput(index, tag, localize)",
10981170
"contents": "pdgoutput(${1:index}, ${2:tag}, ${3:localize})"
10991171
},
1172+
{
1173+
"trigger": "pdgoutputsize(tag)",
1174+
"contents": "pdgoutputsize(${1:tag})"
1175+
},
1176+
{
1177+
"trigger": "pdgoutputvals(tag, localize)",
1178+
"contents": "pdgoutputvals(${1:tag}, ${2:localize})"
1179+
},
11001180
{
11011181
"trigger": "pic(copname, U, V, color_type)",
11021182
"contents": "pic(${1:copname}, ${2:U}, ${3:V}, ${4:color_type})"
@@ -1113,6 +1193,10 @@
11131193
"trigger": "point(surface_node, point_number, attribute, index)",
11141194
"contents": "point(${1:surface_node}, ${2:point_number}, ${3:attribute}, ${4:index})"
11151195
},
1196+
{
1197+
"trigger": "pointattriblist(surface_node)",
1198+
"contents": "pointattriblist(${1:surface_node})"
1199+
},
11161200
{
11171201
"trigger": "pointattribsize(surface_node, attribute)",
11181202
"contents": "pointattribsize(${1:surface_node}, ${2:attribute})"
@@ -1169,6 +1253,10 @@
11691253
"trigger": "prim(surface_node, prim_num, attrib_name, attrib_index)",
11701254
"contents": "prim(${1:surface_node}, ${2:prim_num}, ${3:attrib_name}, ${4:attrib_index})"
11711255
},
1256+
{
1257+
"trigger": "primattriblist(surface_node)",
1258+
"contents": "primattriblist(${1:surface_node})"
1259+
},
11721260
{
11731261
"trigger": "primattribsize(surface_node, attribute)",
11741262
"contents": "primattribsize(${1:surface_node}, ${2:attribute})"
@@ -1370,8 +1458,8 @@
13701458
"contents": "sign(${1:value})"
13711459
},
13721460
{
1373-
"trigger": "sin(number)",
1374-
"contents": "sin(${1:number})"
1461+
"trigger": "sin(degrees)",
1462+
"contents": "sin(${1:degrees})"
13751463
},
13761464
{
13771465
"trigger": "sinh(number)",
@@ -1466,8 +1554,8 @@
14661554
"contents": "systemRAW(${1:command_string})"
14671555
},
14681556
{
1469-
"trigger": "tan(number)",
1470-
"contents": "tan(${1:number})"
1557+
"trigger": "tan(degrees)",
1558+
"contents": "tan(${1:degrees})"
14711559
},
14721560
{
14731561
"trigger": "tanh(number)",
@@ -1541,6 +1629,10 @@
15411629
"trigger": "vertex(surface_node, primitive_number, vertex_number, attribute, index)",
15421630
"contents": "vertex(${1:surface_node}, ${2:primitive_number}, ${3:vertex_number}, ${4:attribute}, ${5:index})"
15431631
},
1632+
{
1633+
"trigger": "vertexattriblist(surface_node)",
1634+
"contents": "vertexattriblist(${1:surface_node})"
1635+
},
15441636
{
15451637
"trigger": "vertexattribsize(surface_node, attribute)",
15461638
"contents": "vertexattribsize(${1:surface_node}, ${2:attribute})"
@@ -1549,6 +1641,14 @@
15491641
"trigger": "vertexattribtype(surface_node, attribute)",
15501642
"contents": "vertexattribtype(${1:surface_node}, ${2:attribute})"
15511643
},
1644+
{
1645+
"trigger": "vertexgrouplist(surface_node)",
1646+
"contents": "vertexgrouplist(${1:surface_node})"
1647+
},
1648+
{
1649+
"trigger": "vertexgroupmask(surface_node, pattern)",
1650+
"contents": "vertexgroupmask(${1:surface_node}, ${2:pattern})"
1651+
},
15521652
{
15531653
"trigger": "vertexs(surface_node, primitive_number, vertex_number, attribute)",
15541654
"contents": "vertexs(${1:surface_node}, ${2:primitive_number}, ${3:vertex_number}, ${4:attribute})"

0 commit comments

Comments
 (0)