Preview on/off GH object by script

Hello,

I need to set preview GH object by script.
Or by some GH component. The Human plug-in can do that, but i can’t utilize it since it has no output (i need to preview off an object, then after that execute some code, then preview on.)

Any ideas ?

JLH