Custom Preview Lineweights gh player

Hello,
I’m trying to create a gh player script, but when I use Custom Preview Lineweights component (Human) in my gh definition, to put in evidence some geometries, It seems works fine only when the grasshopper and the defintion are open, so if I launch gh player I don’t get the same result.
Any suggestions about it?
Thank you