Netview within Submenu

General questions and troubleshooting SOFTIMAGE©
Falam

Netview within Submenu

Post by Falam » 05 May 2013, 21:20

Softimage can only open one Netview at a time which can be changed by displaying a different Netview by changing the HTML file. I don't want to change the current Netview that is displayed, which by default is the Softimage Navigation Netview. I want to add another under Netview within View > General > Netview as a second option within the submenu. On mostly everyones copy if Softimage when you go to View > General > Netview, a Softimage navigation Netview with videos is displayed. I want to add another Netview within the Submenu "NetView" that is on the top menu within Softimage giving me the option to choose between the regular Netview that everyone by default and another custom HTML page that I created.

Edit: Rephrase what I meant :)
Last edited by Falam on 06 May 2013, 16:39, edited 2 times in total.

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 00:41

Re: Netview within Submenu

Post by EricTRocks » 06 May 2013, 16:19

Your question and explanation is a bit unclear. You can open mulitple netviews using the menu or hitting alt+5 multiple times.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

Falam

Re: Netview within Submenu

Post by Falam » 06 May 2013, 16:39

EricTRocks wrote:Your question and explanation is a bit unclear. You can open mulitple netviews using the menu or hitting alt+5 multiple times.
I edited my original post, I hope it clears things up :)

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Netview within Submenu

Post by rray » 06 May 2013, 17:14

You would have to create 2 custom commands which each call the OpenNetView(URL) command, and add them to the View menu
softimage resources section updated Sep 26th 2026

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Netview within Submenu

Post by rray » 06 May 2013, 23:23

This plugin does that.

Code: Select all

function XSILoadPlugin( in_reg )
{
	in_reg.Name = "NViews";
	in_reg.RegisterMenu(siMenuMainApplicationViewsID, "Custom Netviews");
	return true;
}

function CustomNetviews_Init( in_ctxt )
{
	var oMenu = in_ctxt.source;
	oMenu.AddCallbackItem( "Open Special netview no 1", "funct1");
	oMenu.AddCallbackItem( "Open Special netview no 2", "funct2");	
}

function funct1( in_ctxt )
{
	OpenNetView("www.si-community.com");
}

function funct2( in_ctxt )
{
	OpenNetView("www.xdugef.com");
}
softimage resources section updated Sep 26th 2026

Falam

Re: Netview within Submenu

Post by Falam » 07 May 2013, 00:03

Thank You.