Skip to content

Commit

Permalink
Merged work (#831, #833, #835)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyquest committed Mar 28, 2019
2 parents dafd7aa + 2fc62f0 commit ff6c22b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions VEXpressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,25 @@ attribexpression/snippet
[qL] Random distribution (id)
chramp("distribution", random(@id*76))

attribexpression/snippet
[qL] Number of nearby points
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts')))

attribexpression/snippet
[qL] Number of nearby points (normalized)
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts'))) / float(chi('maxpts'))



attribwrangle/snippet
[qL] Number of nearby points
float maxdist = chf('maxdist');
int maxpts = chi('maxpts');
i@numnear = len(nearpoints(0, v@P, maxdist, maxpts));

attribwrangle/snippet
[qL] Number of nearby points (normalized)
float maxdist = chf('maxdist');
int maxpts = chi('maxpts');
f@numnear = len(nearpoints(0, v@P, maxdist, maxpts)) / float(maxpts);

Binary file not shown.
5 changes: 3 additions & 2 deletions toolbar/qLib.shelf
Original file line number Diff line number Diff line change
Expand Up @@ -842,10 +842,11 @@ if r==0:
*version 1*
"""Color nodes in a network based on their authors.
(Select node(s) in the network editor to specify network.)
Select node(s) in the network editor to specify network.
(NOTE: Selection is also needed when restoring original colors!)
----
LMB: Apply coloring by author
Shift-LMB: Restore original colors
Shift-LMB: Restore original colors (requires node selection!)
"""
Select node(s) in a network to specify network.
Expand Down

0 comments on commit ff6c22b

Please sign in to comment.