# Pre/Post InitializeProxy call missing for Representation Subproxies

**URL:** https://discourse.paraview.org/t/pre-post-initializeproxy-call-missing-for-representation-subproxies/747
**Category:** Development
**Created:** [October 17, 2018, 9:43am UTC](https://discourse.paraview.org/t/pre-post-initializeproxy-call-missing-for-representation-subproxies/747 "2018-10-17T09:43:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2018, 9:43am UTC](https://discourse.paraview.org/t/pre-post-initializeproxy-call-missing-for-representation-subproxies/747/1 "2018-10-17T09:43:22Z")

</div>

It looks like Pre/Post InitializeProxy call are not made for RepresentationProxy that are not directly created but are only SubProxy through RepresentationType tag.

Is that by design ? or is that missing ?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [October 17, 2018, 12:52pm UTC](https://discourse.paraview.org/t/pre-post-initializeproxy-call-missing-for-representation-subproxies/747/2 "2018-10-17T12:52:01Z")

</div>

By design. Sub proxies are not public interface. Only the exposed properties on those are. Pre/Post InitializeProxy does indeed have access to exposed properties from the sub proxies and hence can init them. For any class outside the vtkSMProxy hierarchy, subproxy stuff should be treated as internal implementation.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2018, 1:01pm UTC](https://discourse.paraview.org/t/pre-post-initializeproxy-call-missing-for-representation-subproxies/747/3 "2018-10-17T13:01:00Z")

</div>

I’m trying to to initialize a proxy property (ScaleTransferFunction) of vtkPointGaussianRepresentation from their domain.

I’m not sure on how I should implement it :

- vtkSMProxyInitializationHelper can’t work as PostInitializeProxy is not called
- a new vtkSMTransferFunctionProxyProperty with their own resetToDomainDefault implementation
- a new vtkSMPointGaussianRepresentationProxy and a specific implementation somewhere
- something else ?
