Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vred Presenter UI vrMenu visible at launch Problem

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
1048 Views, 8 Replies

Vred Presenter UI vrMenu visible at launch Problem

Dear wise Vred-useres

 

I want the vrMenu to automaticly start at scene launch.

Is it possible to do this with VredPresenter too? Do I have to export a special format?

 

At the time the menu  starts via a variantset with the script:

 

menu = vrMenu(1,1,1)

menu.setUrl("C:/path/blah.html")

menu.setPosition2D(0,0)

menu.setAutoResize(0.000655)

menu.setWindowResize("vrMenu",450, 860)

menu.show()

 

Also there is a problem with using sliders in the vrMenu, as the mouse-drag affects the menu-slider, but also the scenes camera view. It behaves, like the vrmenu wasn't there (just like when the backgrounds opacity/rgba is set below 1 in the html). This occurs only in Verd Presenter not in Vred Pro 2018.

8 REPLIES 8
Message 2 of 9
seiferp
in reply to: Anonymous

Hi,

 

  1. you can drag & drop your .vpb file directly in VRED Presenter
  2. we have changed the behavior of active elements when used as overlays in VRED 2018.4. In transparent areas you should be able to navigate and select objects behind the overly. Sliders and Buttons should act on your mouse input.

Just tested it and works for me!

 

Cheers

Pascal

 

 

 

Message 3 of 9
Anonymous
in reply to: seiferp

Hey pascal

 

Thx again for your support 🙂

 

Then maybe there is a problem with my sliders, as it does not work that way in my scene.

 

I figured, that I have to put the vrMenu script in the scripteditor. After that it launches with the scene 🙂

 

Why does the vrMenu scale from the bottom left corner? Makes it impossible to make the menu stick to the top (if you don't want a fixed Render Window Size). Can I change this? If not how do I set the renderwindowsize via Python?

 

Cheers

 

Simon

Message 4 of 9
seiferp
in reply to: Anonymous

Hi,

 

jep! We are aware that the vrMenu and HTML5 content isn´t the best soultion we could provide to users and want to improve this in a further version.

 

Add this setFixedRenderWindowSize(960, 540) to your scripteditor for a fixed resolution!

Here are some more python events I could think of that might be usefull in your app:

 

showViewCube(0); enableHeadlight(False); setBoundingBoxSelection(False); setSuperSampling(false); setPostprocessAntialiasingMode(1); setRenderWindowDocked(0, false, FULLSCREEN)

 

I´m using a standard slider element in my page:

 

<input type="range" id="expRange" min="0" max="10" step="1" value="1" oninput="showVal0(this.value)">

 

Cheers

Pascal

Message 5 of 9
Anonymous
in reply to: seiferp

Thx you're the best 🙂

Message 6 of 9
Anonymous
in reply to: seiferp

Hi ! 

I'm really interested by the Menu you created in that example ! Could you share your script please ? I did not managed to find the way to create a slider menu on my own.

Thanks a lot !

Message 7 of 9
seiferp
in reply to: Anonymous

@Anonymous Can´t find exact that one anymore but the attached one is doing basically the same just mapped to a geometry instead of a frontplate.

 

Custom_HTML_Slider_Value.png

Message 8 of 9
Anonymous
in reply to: seiferp

Wow ! that's perfect ! Thank you for answering so fast ! 

I'm sorry but I'm a beginner, can you explain me how to link the vred scene with the main ? 

Do you have to use html or can it be done in the script editor ? 

Can you link a slider directly with an animation ?

Again thanks a lot for your help

Message 9 of 9
Anonymous
in reply to: seiferp

Hey

@seiferp 

Can you tell me if a slider menu can be created in the script editor please ?

Thanks a lot !

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report