For example i would divide the data in groups with the different type of objects. In this particular case i know which ones are (planar curve, surface, line) but a general reasoning would be helpful.
Anybody with any suggestions how this could be done?
very interesting thank you @tay.alrawi
I added something. take a look here.
I created a parametric number slider to adapt the max number of types of different objects
the tricky thing it’s that often to do a quite simple thing, like this filtering action, you need a lot of space and defimtion become very big and difficult to manage. Maybe i’ll transform it in a cluster
#metahopper@metahopper
i didnt understand why the number slider doesnt work if i create a cluster. anyone how does it works? maybe i’ll create a new topic for this @andheum
Wow thank you @tay.0 ! very interesting, i’ll take a look when i have time.
Anyway i have to install those plug-in before, and on other i dont know, it says it’s called “HFTidyCanvas”. Where can i find HFTidyCanvas?
I am installing the plug-in Elefront. Do you know any basic tutorials where to start learnin’ it?
Hello @tay.othman.
I had seen that course some time ago, but didn’t have time to attend it.
When I learn a little bit, maybe we can talk about some Elefront things in the future.
regards
import rhinoscriptsyntax as rs
line = []
curve = []
srf = []
pnt = []
for i in x:
if rs.IsCurve(i) and rs.IsLine(i): line.append(i)
elif rs.IsSurface(i): srf.append(i)
elif rs.IsPoint(i): pnt.append(i)
else: curve.append(i)
Thank you @Adam_M.
is it difficult to do something like that? I have never used coding
i would like to do some operation like
If, do A
If not, do B
For instance:
I have a point. And want to move it in different directions.
If its coordinate z>0, move in direction v
if z<0, move in direction -v
If z=0 dont move.
How would you do? Is it simpler doing it in grass or with coding in python?
import rhinoscriptsyntax as rs
line = []
curve = []
srf = []
pnt = []
for i in x:
if rs.IsCurve(i) and rs.IsLine(i): line.append(i)
elif rs.IsSurface(i): srf.append(i)
elif rs.IsPoint(i): pnt.append(i)
else: curve.append(i)
for i in pnt:
if rs.coerce3dpoint(i).Z == 0:
rs.MoveObject(i,[0,0,20])
Sorry @Adam_M I cant understand it. I mean, I dont use python.
My question is how much its difficult to do something like that.
if its not so difficult for task like these i could learn a bit of code, if not i prefer using traditional grasshopper components
Im not at pc now, ill post the specific issue when im at the pc
Greetings
There are so many different ways to do this stuff.
For me I like to use Python if it helps me to: avoid using plugins, where it can simplify workflow, for doing recursive loop, etc.
I have started to work more and more with Python over the last years. Personally I found it easier to pick up than C#…but everyone is different in that respect.
Using native GH, you could deconstruct the points, and filter/move the points based on the z value.