Enable disable in python grasshopper components
in this code doesn’t to disable the component and nothings happening !!
please help me to control this by python or c# scripts ( i doesn’t want use mettahopper plugin )
import Grasshopper as gh for obj in ghenv.Component.OnPingDocument().Objects: if obj.NickName == NickName: obj.Locked = Enable