Group 2D Renderer

2D Renderer  -  Allow multiple TextureRenderer Icon 2D Renderer for a single TextureLayer Icon 2D Layer

GroupTextureRenderer GroupTextureRenderer GroupTextureRenderer GroupTextureRenderer

In a TextureLayer Icon 2D Layer , by default, there’s only one renderer. If you need to use the same element in various locations, whether within different positions in the same ContentMap Icon Content Map or even in other content maps, instead of creating a complete copy of the layer, you can change its renderer type to ‘Group Renderer’. This will create a first Parametric2dPlacement Icon Parametric in the same location as your previous renderer. Then, you can easily duplicate it using [Ctrl]+[Shift]+[A] or [Ctrl]+[D] . You can change its placement and/or target Conten Map to display the layer in multiple locations:

GroupRendererDifferentCM GroupRendererDifferentCM

With this feature, you can display any TextureLayer Icon 2D Layer , like a video for example, in multiple locations without incurring additional memory costs, as the video decoding happens only once.

Note that each renderer ( Parametric2dPlacement Icon Parametric ) has its own BlendingMode Icon Blending Mode , allowing you to mix different BlendingMode Icon Blending Mode . Additionally, each renderer can have its own local TextureMask Icon 2D Mask , TextureModifier Icon 2D Modifier , and TextureRendererEffect Icon 2D Renderer Effect .

GroupRendererDifferentModifiers GroupRendererDifferentModifiers

If you want to modify the same parameter on several layers simultaneously, such as the opacity of multiple renders, you can simply select them all in the Element Tree and modify one parameter. It will be updated on all the selected layers.

LayerRendererSelection1 LayerRendererSelection1

LayerRendererSelection2 LayerRendererSelection2

It also works if you modify a parameter in the ParametersWorkspaceComponent Icon Parameters Editor .


Variables:


Python

    Oil.createObject("GroupTextureRenderer")