Skip to content

Commit ff6c22b

Browse files
committed
Merged work (#831, #833, #835)
2 parents dafd7aa + 2fc62f0 commit ff6c22b

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

VEXpressions.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,25 @@ attribexpression/snippet
6262
[qL] Random distribution (id)
6363
chramp("distribution", random(@id*76))
6464

65+
attribexpression/snippet
66+
[qL] Number of nearby points
67+
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts')))
68+
69+
attribexpression/snippet
70+
[qL] Number of nearby points (normalized)
71+
len(nearpoints(0, v@P, chf('maxdist'), chi('maxpts'))) / float(chi('maxpts'))
72+
73+
74+
75+
attribwrangle/snippet
76+
[qL] Number of nearby points
77+
float maxdist = chf('maxdist');
78+
int maxpts = chi('maxpts');
79+
i@numnear = len(nearpoints(0, v@P, maxdist, maxpts));
80+
81+
attribwrangle/snippet
82+
[qL] Number of nearby points (normalized)
83+
float maxdist = chf('maxdist');
84+
int maxpts = chi('maxpts');
85+
f@numnear = len(nearpoints(0, v@P, maxdist, maxpts)) / float(maxpts);
6586

1.5 KB
Binary file not shown.

toolbar/qLib.shelf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,11 @@ if r==0:
842842
*version 1*
843843
844844
"""Color nodes in a network based on their authors.
845-
(Select node(s) in the network editor to specify network.)
845+
Select node(s) in the network editor to specify network.
846+
(NOTE: Selection is also needed when restoring original colors!)
846847
----
847848
LMB: Apply coloring by author
848-
Shift-LMB: Restore original colors
849+
Shift-LMB: Restore original colors (requires node selection!)
849850
"""
850851
851852
Select node(s) in a network to specify network.

0 commit comments

Comments
 (0)