Enable / Disable Scpritnode Nodes with a Button?



  • Maybe this is a dumb question. But I couldn't find a way to enable / disable nodes with a connected button in scriptnode.

    Enable / Disable option is only on nodes themselves but can we use setAttribute for this?



  • Anyone can help please?



  • In scriptnode, you can do it with a knob. When the knob is 0 it's bypassed, when the knob is 1 it is enabled.

    Just drag and drop the knob to the power button. Then you can link a button to this knob. Here is an example:

    HiseSnippet 1588.3oc2X06aaaDE+nkoQrRSgSiKPGIR6fCfqgjhaSAxfTrkUfPsrUsrSxlwExSRGD4cLjmriRZAJP6P25b6P6ZmJZG6l25RCPAx+.oicyYoCcI8cGIEIkXrUTZ9.gS5du2c2u22uSM83lDeetGRa9cG3RPZukdqALQ206hoLT8p.c811XVGhGZsAtXeehERSK20kr0leVj563xqgAgLIwjPnavoljMoNTQL0lU9TpscMrEYWpSBoWsRcSNactMuO.kb5EPtXyd3NjsvRwlQGoM2FVTA2qk.KH9HsYWiaMnUW9gr.4uA0mdaahbQQTK3fBHWiaaIQrjJZ8tTaqlQprOBoo2L1.jKv.rndCpEcH8XCwBJFFw6Ho8PalSBdEOc3UHK3ok.dyF.uyq2xzi5Jh4Hw1Y0qyDDu1XvEjDVAxhzNRecNH.SrhCtGolGrX3FV5xEJrrQoBEtzUa2mYJnblAmsEWP1lszkxe+7ym+KxaLJq1syjm7Z7311DuLYK85dmzFWh0241DukMN.a2mLTPP8SaemaxrulAZcBA4r5LpXaWR35SN.AEZ1j9hPDBhJTdh2NzSrVegfyPTKYHxFLL.Cu8CIpzhjIEn8pWEKvQmGbzv04R7DToVoUkb.jzD3omWuJwumf6pj0wkyj.QatI+1u6va9K2qxfgKNZuJtQ5XcKUJu5nLpcqhPdmGjxAgFRN40CCl7fT2wBEgDBtUearHcVhrzPHCv0lJbTFyw7ohAIKc7Lj5TXhyrmT3dd8lTgY2rw6LYfWvy8hFugEhNm9FsaSLEwfcV8Z25USUm7ggHv8KARpHlrp27K5mKuggwFrNTFYESOBfup9taQDGx85szEasE2hT6VW7RWMtFfqG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