Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
$\begingroup$OK. Please attach your simplified blend file (it can be a Cube) to see your setup. Use blend-exchange.giantcowfilms.com and paste given code into your question by click on "edit" at bottom of your Q).$\endgroup$