Recall by Desktop

quantumvista

3 press conferences?! 3?!
Anybody out there?

Can I design desktop setting for just a specific screen? I'm after a solution that would launch the Character Generator on screen 2 ONLY!

I've got screen one done but I can't figure out how to limit the CG to screen 2. HELP!
:confused:
 

Aussie

New member
CG onto desktop2...

Possibly various methods, depending on how you wish to launch it.

1. If you always want it open, build desktop, close VT, and write protect desktop settings

-------------------

2. If you want Start Menu (at top of screen) to do it, try...
(Skins\Desktop\StartMenu\Default\SuperStartMenu\Initialization.ToasterScript)

AddStartMenuItem ( 200,190,0, code(
SetDesktop(1); // jump to desktop2 (named desktop1)
if(!IsPluginRunning("CGToaster")) ToasterCGLink()) // only one CG is open
))

-------------------

3. From a ContextMenu, hotkey, button or startup, try...

code(
SetDesktop(1); // jump to desktop2 (named desktop1)
if(!IsPluginRunning("CGToaster")) // only one CG is open
{
if (DoesCPUHaveSIMD()) Launch("CGToaster", "CG")
else Req_OK(" You need a CPU that supports SIMD to use the CG", "Launch CG Cancelled ")
}
))

-------------------

Cheers, Aussie
 

quantumvista

3 press conferences?! 3?!
And aussie said let there be light

and there was light.

And MAN is it good!

THANK YOU, THANK YOU, THANK YOU.

this'll be the first actual code I build into this highly modified Toaster, everything so far has been graphic edits and code removal/replacing.

This way I get a reall good Idea for syntax.

Thanks Aussie.

You're a deity!

Jason
 

quantumvista

3 press conferences?! 3?!
works like a charm!

I added the script to my initialization for the menubar, it works so well that I adapted it for my other screens.

I haven't been able to work out how to position the modules yet. Any hints?
 

quantumvista

3 press conferences?! 3?!
Screen builds

Just to put some useful info out there.
This is the menubar script that pretty much controls the Toasters now here at CAN TV:

// shared Menubar

AddMenuItem("%Main Menu", code( 0 )

)
AddMenuItem("Edit Suite", code(SetDesktop(0); // Jump to Screen 1

Launch("CGMiniToaster","CG Player",):
{SetWindowPosition(0,421)
New
//Open("Setup/Slate.cg")
}

Launch("VideoEditor_DDR","DDR",):
{SetSkin("Slim")
SetWindowPosition(425,421)
ClearProject
AddFiles("Setup/Leader.avi")
}

Launch("ToasterVision","VT-Vision1",):
{SetWindowPosition(0,29)
Preview()
}
Launch("ToasterVision","VT-Vision2",):
{SetWindowPosition(425,29)
ProgramOut()
}

Launch("Switcher_Tabbed","Switcher"):
{SetWindowPosition(0,635)

}

)))

AddMenuItem("ToasterCG", code (SetDesktop(1); // Jump to screen 2
Launch("CGToaster", "CG"):
{SetWindowPosition(0,29)
SetWindowSize(1150,850)
}
)))

AddMenuItem("Scopes", code(SetDesktop(2); // Jump to Screen 3

Launch("ToasterVision","VT-Vision3",)
{SetWindowPosition(425,29)
ProgramOut()
}
Launch("Switcher_Tabbed","Switcher"):
{SetWindowPosition(0,635)
}
Launch("WaveformVectorScope","W/V Scope"):
{SetWindowPosition(0,29)
ProgramOut()
}
))

//AddMenuItem("%Presets, Store", code( 0 ) )
//AddMenuItem("Store 1", code( SaveSettings("1") ))
//AddMenuItem("Reset All ", code( CloseAllRunningModules()))

//AddMenuItem("pRefs* ", code( PrefsLink()) )

AddMenuItem("%__________" , code( 0 ))
AddMenuItem("%Exit VT[3]", code(CloseAllRunningModules() ---- Toaster CG doesn't launch if I loadSettings().
ExitLink())


//#include "DefaultDesktops.ToasterScript" // Link to default desktops

////////////////////////////////////////////

I've deleted or commented out much of the rest of Shared.Toasterscript for the main menu. The only thing left at this point is figuring out how to reset all the settings without closing the modules. Oh and of course the auto input assignment.

:::stupid SetPreviewRow(x):::
 
Top Bottom