Add subscript with the <sub></sub>
tags.
ni
kni
Add superscript with the <sup></sup>
tags.
x2
// Static Values | |
variable = {0,1,2}; | |
// Dynamic Values | |
variable = set(x,y,z); |
// Replace <value> with value intended to be rounded. | |
round(<value> * 1000) / 1000 |
Add subscript with the <sub></sub>
tags.
ni
kni
Add superscript with the <sup></sup>
tags.
x2
# Extract consecutive trailing numerical digits from a node's name. | |
import hou | |
return pwd().digitsInName() | |
# For example, a node named 'NEW_GEO_101' will return the int 101 | |
# into the field. Returns 0 if name does not include any trailing | |
# numerical digits. |
// Base formatting: | |
// Curly brackets for encapsulating multiple statements. | |
if(v@P.x > 0){ | |
v@Cd = {1, 0, 0}; | |
} | |
else{ | |
v@Cd = {0, 1, 0}; | |
} | |
// Inline formatting: |
stamp("../pathtoNode", "variableName", 1) | |
// The 3rd arg is the default value if the | |
// retrieved variable for a corresponding point | |
// does not exist. |
# Sets the node shape to be a circle | |
node.setUserData('nodeshape', 'circle') |