Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Help for Enable disable in python grasshopper components

$
0
0

hi everyone
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

Enable disable in python grasshopper components.gh (13.3 KB)


@dale
@Mahdiyar
@Jarek

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles