Jump to content

Leaderboard


Popular Content

Showing most liked content on 09/21/2019 in all areas

  1. 2 points
    while easily possible without coding, I just did a quick wrangle vector startP = chv("startP"); float width = chf("width"); float spacing = chf("spacing"); float length = chf("length"); int nlines = ceil(length/width); for(int i=0; i<nlines; i++){ float linewidth = min(length - i*width, width); vector linestartP = startP + {0,-1,0}*spacing*i; int pt0 = addpoint(0, linestartP); int pt1 = addpoint(0, linestartP + {1,0,0}*linewidth); addprim(0, "polyline", pt0, pt1); } ts_paragraph_line.hip
  2. 1 point
    Ok, here comes the nice and simple SOP solution: Segment the input line with a polycut node. Align the segments with a primitive node. Assign letters with another primitive node. paragraph.hipnc
  3. 1 point
    Here is another (similar) solution using the copy node. line_break.hipnc
  4. 1 point
    1. Go to frame 1 2. Right-click on the Font SOP's "Text" parameter. Choose Channels and Keyframes > Set Keyframe 3. Right-click on the Font SOP's "Text" parameter. Choose Expression > Change Language to Python 4. Right-click on the Font SOP's "Text" parameter. Choose Expression > Toggle Expression 5. Right-click on the Font SOP's "Text" parameter. Choose Expression > Edit Expression. Put in your python code. eg. hou.pwd() <and click Apply>
×