Hyperview 2023.1 api to set the display transparency level.

Ajay Prabhakaran
Ajay Prabhakaran Altair Community Member

Hello,

Can you please share me the Hyperview api to set the "display transparency level" to a particular value.

We used to do it manually by 

File -> Preferences -> Graphics -> Display -> Transparency level

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • GTT Adam
    GTT Adam
    Altair Employee

    Hi @Ajay Prabhakaran,

    You can modify the transparency level in the TCL Command Window using the *transparencyvalue command:

    https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_transparencyvalue.htm

    ex.

    Hope this helps!

    Adam Reid

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member

    Hello @GTT Adam

    This command will work only on Hypermesh. I am looking out for a command to work in Hyperview.

    Thanks for your support

  • GTT Adam
    GTT Adam
    Altair Employee

    Hi @Ajay Prabhakaran,

    Since this is a general graphics option, this can be set using the command in a HyperMesh instance and it will be applied in subsequent HyperView instances.

    Can you provide context as to why the transparency level needs to be set dynamically?

    Hope this helps!

    Adam Reid

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member

    Hi @GTT Adam

    I am writing a code to save ISO image of an odb. I see a trend that, Simulation engineer sometimes set the transparency to 0 or 1. In such cases the ISO view is not plotted correctly or the contours are not visually clear. So, if i have an option to set the transparency to 7,5 before the script execution, i will be on a safer side to plot nice contours. I hope you understand my concern.

    Thank you so much for your support.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.