Example from RhinoCommon cs -

SampleCsViewportPropertiesETOUI
Could somebody tell me where this panel pops up.
starting to see how ETO works but got crazy since unable to see the panels of this plugin.
complied and installed in Rhino but I have searched in properties, tools options but unable to see the panels.

It should pop up in the Properties panel for the active viewport when no object has been selected. For instance if you have a Raytraced viewport running you’ll see in V7 the post-effects panel. Or in v6 and v7 the focal blur panel.

Well I was looking at the viewport properties, but I see nothing
any render I choose , I have view and safe frame ( v6)

in v7 i was able to see the post-effect panel

but just for clarification : the new panel with controls sectionOne and sectionTwo is not visible, right ?

I am asking just be sure I am not getting blind :slight_smile:

gd

I haven’t actually tried this viewport properties page. @maxsoder, do you remember if it is supposed to work in v6 and v7?

Hi, the sample is broken. It should override two functions. The ShouldDisplay and UpdatePage functions. One should return true or false in the ShouldDisplay if one wants to display the page. One example is if the page should only display when a perspective view is selected. I updated the sample for v7. I think this should work also in v6, but I cannot confirm it at the moment.

    public override bool ShouldDisplay(ObjectPropertiesPageEventArgs e)
    {
        if (e.View == null)
        {
            if (CollapsibleSectionHolder == null)
                return false;

            // Update page here and tell it no view
            // is selected.

            return false;
        }

        return true;
    }

    public override void UpdatePage(ObjectPropertiesPageEventArgs e)
    {
        if (CollapsibleSectionHolder == null)
            return;

        ViewInfo vi = new ViewInfo(e.Viewport);

        if (vi != null)
        {
            // Pass the view info to the page
        }
        else
        {
            // Tell the ui that there is no view.
        }
    }

Br, Max

SectionOne and SectionTwo should be visible.

Fine , now it works

tnks
gerry