How to init variables when a new node open ?

Q&A about the latest versions
Post Reply
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

I'm sure pn2vr can do this but I don't find how it is possible.

Look : When I enter a new node, I want this node to update some variables, state of button, help and so on.

But how can I do that, that is the question ?!? :wink:

Any idea would be much appreciated.

Cheers,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
3DV
Posts: 146
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

You can use Actions with Action Source: Node Changed
Ruud van Reenen
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Pico and Cardboard VR headsets
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Ok, but where do I put this action ?

I found what you're talking about but I look for the right place where to put this script and I don't find it.

Thanks anyway,

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
3DV
Posts: 146
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

I'm simply using an empty container in the root of the skin, called 'Initialize' for actions with sources like ConfigLoaded, NodeChanges, TilesReady etc.
Just name it something so you can easily find it again.
Ruud van Reenen
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Pico and Cardboard VR headsets
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Ok, thank you.

I understand what you mean but I wonder how you call the functions inside this container ?

I look deeper with it and I'll come back if I find the solution.

BTW, if a tutorial about that exist, I'll be glad of it :wink:

Have a nice day,
Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

It's OK !

With your idea, it works well now, thanks a lot.

I made a container like you said and give it the action When images are ready then update variables according to different criteria in the logic bloc.

Without this forum I wouldn't have solved my problem I guess...

Have a nice day,
Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
Post Reply