I am trying to turn off all bobbles in the lower left and turn on all bobbles in the top right. I have developed a scrip to determine what end of the grid is in this location. I have tried the different methods show in this thread but cannot get them to work.
@Ben_Osborn post seamed the most promising. Works off an intersection point of a line and the grid. I fed in the end points of the side I want to turn off but it is turning off the heads on both sides. Does anyone know why this is happening?
Ok I got it to mostly work but now I am confused at the outcome. I got it to turn on the grid bobbles on one end and off on the other. This is the most I have ever done in python so I might have messed up the IF statement but I am not sure.
His was not turning the bubbles off and on correctly. I know the end being turned off or on depends on what direction the grids were drawn. This is why I got the end points and added the X and Y to find which end is in the top right eliminating the problem of the direction.
I will have to do more testing on Ben’s it could have been that Grid.Curve was getting the whole grid line rather than the 2d crop. Then the points would not have been lying on the grid line in the view. (just thought of this as I was typing my response).
Solved the problem in another post. Please see link below for the code in the python node. Thanks @Lknapton for providing the base of the code (99% of it) and @Nick_Boyts for helping with the IF statement.
New to dynamo and trying to use the “Grid Bubbles on or off” script. can someone please explain to me how this works or if i need to do something prior to running the script. I ran it but nothing happened to by grid bubbles.