How to embed existing Hype project to another Hype project?🤔


#1

I want to know if it’s possible to insert to existing project another project
or how to connect 2 projects into one?

Regards,
Matus


(Mark Hunte) #2

Can you tell us more about what you are doing that you need to do this.

There are ways to call other project scenes

You probably can find more with a search.


#3

@MarkHunte I have in one Hype project created menu (navigation)
and I want to link that to project where I’ve created homepage.


(Freelancer) #4
function mainSceneLoad_externa (hypeDocument, element, event) {	
	if (window.donescene == true)
		return;
	
	window.donescene = true;
	
	var query = window.location.search.substring(1); 
	var vars = query.split("&"); 
 	for (var i=0;i<vars.length;i++) 
 	{ 
    	var pair = vars[i].split("="); 
    	if (pair[0] == "scene") { 

    		hypeDocument.showSceneNamed(pair[1], hypeDocument.kSceneTransitionInstant);
      		return;      		
      		
    	} 
  }

With this code you can load a specific scene of another project