Description
Supprime la valeur de la key “building” pour les objets sélectionnés.
Voir aussi les scripts Building, BuildingIsolate, BuildingSelect.
Le script suivant fonctionne sur :
- Rhino pour Windows ;
- Rhino pour macOS.
Script par MLAV.LAND, sous licence GNU GPL 3.
Code
import rhinoscriptsyntax as rs
def assign_building_value():
# Get currently selected objects
objects = rs.SelectedObjects()
if not objects:
print("No objects selected. Please select objects before running the script.")
return
# Assign or update the 'building' key/value pair for each object
for obj in objects:
rs.SetUserText(obj, "building", "")
# Run the function
assign_building_value()