algorithmic modeling for Rhino
Hi guys! I want to write a script for rhinoceros and grasshopper which is able to change the value of a slider (from gh file) and after do bake and save the file.
For now i have 2 script: one for rhino which loop and change the slider value and one for GH which do bake, save the file and after delete all object except the point which GH need. Now i want write only one script for Rhino which do the same but i got some problem.
When i try to delete the last object
obj = rs.FirstObject() //First object is the last object created by the user
rs.DeleteObject(obj)
or
objs = rs.AllObjects()//In this case ill remove the point too, but it was a test
rs.DeleteObjects(objs)
i got this message:
'CustomTable' object has no attribute 'GetObjectList'
So there is another way to remove all object except the point which i need?
My script was in python but i can use vs or c# too.
Tags:
ok i find a solution
rs.Command("_SelLast", True)
rs.Command("_Delete",True)
Would you be kind to sharing this script at all? Thanks
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by