What I would like is something like this answer to a similar question: https://blender.stackexchange.com/a/150400/126805
But that it would go trough the object instead of bouncing of. So what I want is a transmissive bounce? Don't know if they are caled that.
I want this so I could see how a ligth ray go trough a camera lens, and since the only program I thought could help was Blender I asked this here, but if you have another option (a program or script) for this that would be helpful.
I also tried changing the material to glass, but that did not help.
- I am using Blender 3.0.
- And I have a little bit of Python programing knowledge but not with bpy.
Comparison of what I want and what the person answered in the linked question:

Is it posible to modify the script to do this? Or create a new one that would work?

vand normal.nwhich isv = v.reflect(n). then repeat from hit location in bounce direction.. Instead if the ray hits a glass designated object refract the vector into the object, etc. – batFINGER Jul 23 '21 at 14:30