First time poster here so sorry if this is not in the correct category.
I have a complex bezier curve in blender using the Cycles engine that loops in and out of different mesh objects.
The curve has a simple diffuse material and the mesh would normally be invisible (or completely transparent). What I would look is for the parts of the curve that are inside a mesh to be a different color (say white outside, red inside) and preferably even for this to be a different color for different meshes. Notably I would like the parts of the curve that are behind the mesh (from the perspective of the camera) to be the normal. I understand that somethings like this can be achieved with a complex setup of boolean modifiers but I was hoping there was a more flexible way to do this.
Thanks for the suggestion! I also tried something like this but indeed the problem is there is no way to get separate color per object. Also it just so happens my curve is already within one large transparent object so this trick wont work.Thanks again though!
If by programmatically, you mean “in an animated fashion,” yes.
I’m not super great with it myself, but it is a very powerful tool.
Just search on youtube.
Here’s a starter: