Skip to content

Commit

Permalink
Update for Houdini 18.5
Browse files Browse the repository at this point in the history
  • Loading branch information
teared committed Nov 3, 2020
1 parent 8977a46 commit e7aa9b5
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 42 deletions.
75 changes: 50 additions & 25 deletions commands/helpcards.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"install": "messages/install.txt",
"7.1.0": "messages/7.1.0.txt",
"7.1.1": "messages/7.1.1.txt",
"7.1.2": "messages/7.1.2.txt"
"7.1.2": "messages/7.1.2.txt",
"7.1.3": "messages/7.1.3.txt"
}
40 changes: 40 additions & 0 deletions messages/7.1.3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Houdini add-on for Sublime Text:
https://github.com/teared/HScript


Release 7.1.3


1. Updated for Houdini 18.5.

2. New expression functions added:

float bitset(float number, float bit_index, float value)
float bittest(float number, float bit_index)
float bitxor(float abits, float bbits)
string detailattriblist(string surface_node)
float haspdgattrib(string attribute)
float ocldeviceinfo(string flag)
string opnodigits(string name)
float pdgattrib(string name, float index)
string pdgattriblist()
string pdgattribs(string name, float index)
float pdgattribsize(string attribute)
float pdgattribtype(string attribute)
string pdgattribvals(string name)
float pdginputsize(string tag)
string pdginputvals(string tag, float localize)
float pdgoutputsize(string tag)
string pdgoutputvals(string tag, float localize)
string pointattriblist(string surface_node)
string primattriblist(string surface_node)
string vertexgrouplist(string surface_node)
string vertexgroupmask(string surface_node, string pattern)

Tip: to read about new functions quickly, copy the list in empty
Sublime Text document, set HScript syntax and check documentation helpcards.

3. Commands highlighted in syntax:

opinputstring
viewposteffects
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Houdini] add-on for [Sublime Text]

[Houdini]: https://sidefx.com/
[Houdini]: https://www.sidefx.com/
[Sublime Text]: https://www.sublimetext.com/


Expand All @@ -13,8 +13,8 @@

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

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

Expand All @@ -36,7 +36,7 @@ Requirements:

Tools → Install Package Control

[Sublime Text]: http://www.sublimetext.com/
[Sublime Text]: https://www.sublimetext.com/
[Package Control]: https://packagecontrol.io/


Expand Down
120 changes: 110 additions & 10 deletions snippets/expressions.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"trigger": "atof(source)",
"contents": "atof(${1:source})"
},
{
"trigger": "attriblist(surface_node, class)",
"contents": "attriblist(${1:surface_node}, ${2:class})"
},
{
"trigger": "bbox(surface_node, type)",
"contents": "bbox(${1:surface_node}, ${2:type})"
Expand All @@ -57,6 +61,26 @@
"trigger": "bezier()",
"contents": "bezier()"
},
{
"trigger": "bitand(abits, bbits)",
"contents": "bitand(${1:abits}, ${2:bbits})"
},
{
"trigger": "bitor(abits, bbits)",
"contents": "bitor(${1:abits}, ${2:bbits})"
},
{
"trigger": "bitset(number, bit_index, value)",
"contents": "bitset(${1:number}, ${2:bit_index}, ${3:value})"
},
{
"trigger": "bittest(number, bit_index)",
"contents": "bittest(${1:number}, ${2:bit_index})"
},
{
"trigger": "bitxor(abits, bbits)",
"contents": "bitxor(${1:abits}, ${2:bbits})"
},
{
"trigger": "boneangle(bone1, bone2)",
"contents": "boneangle(${1:bone1}, ${2:bone2})"
Expand Down Expand Up @@ -198,12 +222,12 @@
"contents": "constant()"
},
{
"trigger": "contextoption(token)",
"contents": "contextoption(${1:token})"
"trigger": "contextoption(name)",
"contents": "contextoption(${1:name})"
},
{
"trigger": "contextoptions(token)",
"contents": "contextoptions(${1:token})"
"trigger": "contextoptions(name)",
"contents": "contextoptions(${1:name})"
},
{
"trigger": "cophasmeta(compositing_node, metadata_name)",
Expand All @@ -218,8 +242,8 @@
"contents": "copmetas(${1:compositing_node}, ${2:metadata_name})"
},
{
"trigger": "cos(number)",
"contents": "cos(${1:number})"
"trigger": "cos(degrees)",
"contents": "cos(${1:degrees})"
},
{
"trigger": "cosh(number)",
Expand Down Expand Up @@ -277,6 +301,10 @@
"trigger": "detail(surface_node, attrib_name, attrib_index)",
"contents": "detail(${1:surface_node}, ${2:attrib_name}, ${3:attrib_index})"
},
{
"trigger": "detailattriblist(surface_node)",
"contents": "detailattriblist(${1:surface_node})"
},
{
"trigger": "detailattribsize(surface_node, attribute)",
"contents": "detailattribsize(${1:surface_node}, ${2:attribute})"
Expand Down Expand Up @@ -601,6 +629,10 @@
"trigger": "hasdetailattrib(surface_node, attribute)",
"contents": "hasdetailattrib(${1:surface_node}, ${2:attribute})"
},
{
"trigger": "haspdgattrib(attribute)",
"contents": "haspdgattrib(${1:attribute})"
},
{
"trigger": "haspoint(group_name, surface_node, point_num)",
"contents": "haspoint(${1:group_name}, ${2:surface_node}, ${3:point_num})"
Expand Down Expand Up @@ -921,6 +953,10 @@
"trigger": "oc(output_channel_index, index)",
"contents": "oc(${1:output_channel_index}, ${2:index})"
},
{
"trigger": "ocldeviceinfo(flag)",
"contents": "ocldeviceinfo(${1:flag})"
},
{
"trigger": "oldrand(value)",
"contents": "oldrand(${1:value})"
Expand Down Expand Up @@ -997,6 +1033,10 @@
"trigger": "opninputs(name)",
"contents": "opninputs(${1:name})"
},
{
"trigger": "opnodigits(name)",
"contents": "opnodigits(${1:name})"
},
{
"trigger": "opnoutputs(name)",
"contents": "opnoutputs(${1:name})"
Expand Down Expand Up @@ -1081,6 +1121,26 @@
"trigger": "parmisstring(parameter_name)",
"contents": "parmisstring(${1:parameter_name})"
},
{
"trigger": "pdgattrib(name, index)",
"contents": "pdgattrib(${1:name}, ${2:index})"
},
{
"trigger": "pdgattriblist()",
"contents": "pdgattriblist()"
},
{
"trigger": "pdgattribs(name, index)",
"contents": "pdgattribs(${1:name}, ${2:index})"
},
{
"trigger": "pdgattribsize(attribute)",
"contents": "pdgattribsize(${1:attribute})"
},
{
"trigger": "pdgattribtype(attribute)",
"contents": "pdgattribtype(${1:attribute})"
},
{
"trigger": "pdgattribute(name, index)",
"contents": "pdgattribute(${1:name}, ${2:index})"
Expand All @@ -1089,14 +1149,34 @@
"trigger": "pdgattributes(name, index)",
"contents": "pdgattributes(${1:name}, ${2:index})"
},
{
"trigger": "pdgattribvals(name)",
"contents": "pdgattribvals(${1:name})"
},
{
"trigger": "pdginput(index, tag, localize)",
"contents": "pdginput(${1:index}, ${2:tag}, ${3:localize})"
},
{
"trigger": "pdginputsize(tag)",
"contents": "pdginputsize(${1:tag})"
},
{
"trigger": "pdginputvals(tag, localize)",
"contents": "pdginputvals(${1:tag}, ${2:localize})"
},
{
"trigger": "pdgoutput(index, tag, localize)",
"contents": "pdgoutput(${1:index}, ${2:tag}, ${3:localize})"
},
{
"trigger": "pdgoutputsize(tag)",
"contents": "pdgoutputsize(${1:tag})"
},
{
"trigger": "pdgoutputvals(tag, localize)",
"contents": "pdgoutputvals(${1:tag}, ${2:localize})"
},
{
"trigger": "pic(copname, U, V, color_type)",
"contents": "pic(${1:copname}, ${2:U}, ${3:V}, ${4:color_type})"
Expand All @@ -1113,6 +1193,10 @@
"trigger": "point(surface_node, point_number, attribute, index)",
"contents": "point(${1:surface_node}, ${2:point_number}, ${3:attribute}, ${4:index})"
},
{
"trigger": "pointattriblist(surface_node)",
"contents": "pointattriblist(${1:surface_node})"
},
{
"trigger": "pointattribsize(surface_node, attribute)",
"contents": "pointattribsize(${1:surface_node}, ${2:attribute})"
Expand Down Expand Up @@ -1169,6 +1253,10 @@
"trigger": "prim(surface_node, prim_num, attrib_name, attrib_index)",
"contents": "prim(${1:surface_node}, ${2:prim_num}, ${3:attrib_name}, ${4:attrib_index})"
},
{
"trigger": "primattriblist(surface_node)",
"contents": "primattriblist(${1:surface_node})"
},
{
"trigger": "primattribsize(surface_node, attribute)",
"contents": "primattribsize(${1:surface_node}, ${2:attribute})"
Expand Down Expand Up @@ -1370,8 +1458,8 @@
"contents": "sign(${1:value})"
},
{
"trigger": "sin(number)",
"contents": "sin(${1:number})"
"trigger": "sin(degrees)",
"contents": "sin(${1:degrees})"
},
{
"trigger": "sinh(number)",
Expand Down Expand Up @@ -1466,8 +1554,8 @@
"contents": "systemRAW(${1:command_string})"
},
{
"trigger": "tan(number)",
"contents": "tan(${1:number})"
"trigger": "tan(degrees)",
"contents": "tan(${1:degrees})"
},
{
"trigger": "tanh(number)",
Expand Down Expand Up @@ -1541,6 +1629,10 @@
"trigger": "vertex(surface_node, primitive_number, vertex_number, attribute, index)",
"contents": "vertex(${1:surface_node}, ${2:primitive_number}, ${3:vertex_number}, ${4:attribute}, ${5:index})"
},
{
"trigger": "vertexattriblist(surface_node)",
"contents": "vertexattriblist(${1:surface_node})"
},
{
"trigger": "vertexattribsize(surface_node, attribute)",
"contents": "vertexattribsize(${1:surface_node}, ${2:attribute})"
Expand All @@ -1549,6 +1641,14 @@
"trigger": "vertexattribtype(surface_node, attribute)",
"contents": "vertexattribtype(${1:surface_node}, ${2:attribute})"
},
{
"trigger": "vertexgrouplist(surface_node)",
"contents": "vertexgrouplist(${1:surface_node})"
},
{
"trigger": "vertexgroupmask(surface_node, pattern)",
"contents": "vertexgroupmask(${1:surface_node}, ${2:pattern})"
},
{
"trigger": "vertexs(surface_node, primitive_number, vertex_number, attribute)",
"contents": "vertexs(${1:surface_node}, ${2:primitive_number}, ${3:vertex_number}, ${4:attribute})"
Expand Down
Loading

0 comments on commit e7aa9b5

Please sign in to comment.