SHOW:
|
|
- or go back to the newest paste.
1 | - | #The code on the Blender side (which would be actually written in C++) |
1 | + | # The code on the Blender side (which would be actually written in C++) |
2 | intersection_to_render = None | |
3 | for intersection in intersections: | |
4 | render = intersectionCallback(intersection) | |
5 | if render: | |
6 | intersection_to_render = intersection | |
7 | break | |
8 | ||
9 | if(intersection_to_render): | |
10 | render(intersection_to_render) #render what is at the intersection | |
11 | ||
12 | ||
13 | - | #Now the code of the script |
13 | + | # Now the code of the script |
14 | def intersectionCallback(intersection) -> bool: | |
15 | # An example | |
16 | if intersection.x < 2: return True | |
17 | else: return False |