New Pointlight Object position Output

Tags: #<Tag:0x00007f7036522b98>

Hi,

I figured that the new Pointlight OP is missing the second render output for the object on the same position as the light. I liked that feature and find it pretty handy. I hope it can be reintegrated to the new version of the Pointlight.

Thanks in advance

Cheers, dino

Just added the missing Code from the old PointLight to the new.

const attachment=op.outTrigger("Attachment");

and

if(attachment.isLinked())
{
    cgl.pushModelMatrix();
    mat4.translate(cgl.mMatrix,cgl.mMatrix,transVec);
    attachment.trigger();
    cgl.popModelMatrix();
}

It seems to work.
Made a quick test patch:

Cheers, dino

1 Like

Is there any chance that the attachment port is getting added back again in the near future?
Found out again that it is quite handy and sharing patches with custom OPs still breaks them.