This might be a noob question, but how does point constrain in SOP work? I try to constrain a point light to a torch. So far I managed to attach it to the tip of the torch, but I need to offset it to be above the torch, where the flame is. My problem, that the constraint only calculates the position, but not the orientation, thus the point light will have +Y offset even if the torch is upside down, or laying on the ground. I try to use the orientation section of the Point Constraint, but I'm missing something as it is not working as I expect. Is the normal not avaiable on this level, or what could be the problem?
You can use the different * Constraint LOPs to do just that.
Depending on whether your light geometry has animated transforms or is deforming geometry, you can use a Parent Constraint LOP in the former case, or a Points Constraint LOP in the latter.
When you have "Maintain Local Offset" enabled, it allows you to keep the light's local transform, so if you constrain the light to your lamp geometry, display the output of the constraint and select the light and move it around until it sits exactly where you want it.
Or you can simply create the light under an Xform prim, constrain this Xform prim to the lamp geo and then move the light around however you want after the constraint - this makes adding the offset a lot simpler.
npetit You can use the different * Constraint LOPs to do just that.
Depending on whether your light geometry has animated transforms or is deforming geometry, you can use a Parent Constraint LOP in the former case, or a Points Constraint LOP in the latter.
When you have "Maintain Local Offset" enabled, it allows you to keep the light's local transform, so if you constrain the light to your lamp geometry, display the output of the constraint and select the light and move it around until it sits exactly where you want it.
Or you can simply create the light under an Xform prim, constrain this Xform prim to the lamp geo and then move the light around however you want after the constraint - this makes adding the offset a lot simpler.
Here's an example with a few different options.
Thank you for your answer and the example, that helped me a lot! Now it is working!