I am able to run the script without any errors popping up. However, my end results are different in terms of the final colour range and values. Attached below are my values in converse to the tutorial on youtube.
May I check which is the component to adjust the values?
Thank you for your suggestions. Apparently, there was no issue with the code but rather it was the bounding box of the butterfly simulation and the horizontal and vertical plane was slightly outside that box which then caused the negative values in image 2.