myDropDownList.onChange buttons hide/visible, staticText etc., but scrolling through albums of all components

Here is my code, but the thing is when I change my ddList that all objects of the Panel remain in the same place, so the thing is that I want to hide things but scrolling upward things have ordered more of my Panel.

C5 ToolKit v1.0

An after effects Script by Adrian Wülfrath

// [email protected]

Estudio Voraz

VARIABLE CALL PARA A LAS DISTINTAS IMAGENES

var imageName0 = "_vorazimg/voraz.png";

var imagePath0 = File($.fileName).path + ' / ' + escape (imageName0);

var imageName1 = "_vorazimg/off.png;

var imagePath1 = File($.fileName).path + ' / ' + escape (imageName1);

var imageName2 = "_vorazimg/sni.png";

var imagePath2 = File($.fileName).path + ' / ' + escape (imageName2);

var imageName3 = "_vorazimg/sna.png";

var imagePath3 = File($.fileName).path + ' / ' + escape (imageName3);

var imageName4 = "_vorazimg/proyectoBtn.png";

var imagePath4 = File($.fileName).path + ' / ' + escape (imageName4);

var imageName5 = "_vorazimg/sva.png";

var imagePath5 = File($.fileName).path + ' / ' + escape (imageName5);

Voraz Explorer button

var winBrowserCmd = "C:/Program Files/Internet Explorer/iexplore.exe."

var macBrowserCmdStart = "osascript-e ' open location------" ";" "

var macBrowserCmdEnd = ' \ ' "";"

AQUI BEGINS HAS CREARSE VENTANA DEL PANEL

{

function myScript (thisObj) {}

function myScript_buildUI (thisObj) {}

var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "Estudio Voraz Panel', undefined, {resizable: true}");

res = "group {orientation:"column",-}".

groupOne: Panel {text: 'Master', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

ddPanel: DropDownList {properties: {items: ['OFF', 'Salida No. Image', 'Salida No. Astérix', 'Salida Ventana Asterix','-']}}, \

},\

groupTwo: Panel {text:' template:', direction: "column", the alignment: ['fill', 'top'], alignChildren: ["fill", "fill"],------}

imageDemo: IconButton {text: 'Model Salida No. Image',}, alignment: ["fill", "fill"],

},\

groupThree: Panel {text: 'Color System + line selector', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

ddColorSystem: DropDownList {properties: {items: ['Amarillo', 'Morado', 'Blue', 'MidBlue', 'DarkBlue','Roj o ']}}, \

ddLineSelector: DropDownList {properties: {elements: ['line 1' ", ' 1 Hashtag + line" ", ' 1 line + Info", 1 Line + Info + Hashtag ','-', "2 lines","2 lines + Hashtag" ", ' 2 lines + Info", 2 lines + Info + Hashtag ',' '-', ' 3 lines "", ' 3 lines + Hashtag "", ' 3 lines + Info ' ", ' 3 lines + Info + Hashtag"]}},

},\

BtnGroup: Panel {text: 'Botones' orientation: 'row', alignment: ['fill', 'top'],------}

editText: button {text: 'Edit text', alignment: preferredSize ['fill', 'left'],: [80,25]},

editCaritas: button {text: 'Edit Caritas', alignment: preferredSize ['fill', 'left'],: [80,25]},

editIconos: button {text: "Edit Iconos", alignment: preferredSize ['fill', 'left'],: [80,25]},

editImage: button {text: "Change image", alignment: ['fill', 'left'], preferredSize: [100,25]},

},\

groupFour: Panel {text:'Caritas / Iconos, direction: "column", alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

ddArreglosAsterix: DropDownList {properties: {items: ['OFF', "Caritas Astérix", 'Iconos Astérix']}}, \

},\

groupChecker: Panel {text: 'Options', orientation: 'row', alignment: alignChildren ['fill ', ' fill'],: ["fill", "fill"],------}

ddPatterns: DropDownList {properties: {items: ['Models OFF', '-', "Acción", "Comedia", "Deportees", "Girly", "Geek", "Todo",' -','EXTRA ','-',' ASTERIX ']}},

CBfoto: Case {text: "Foto"},

CBWipper: Case {text: 'Wipper In'}, \

CBSting: Case {text: 'Hashtag Sting'}, \

},\

groupRender: Panel {text: "Add al Render tail", orientation: 'row', alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

renBtn: button {text: 'Add al Render tail'}, \

},\

groupVoraz: Panel {text: "www.estudiovoraz.com", of orientation: 'column', alignment: ['fill ', ' fill'], alignChildren: ["fill", "fill"],------}

myIconButton: IconButton {text: 'IconButton',},

},\

}";

myPanel.grp = myPanel.add (res);

Default values (Practicamete're nada mas para indicate en position default por goes a permanecer cada cosa).

myPanel.grp.groupOne.ddPanel.selection = 0

myPanel.grp.groupFour.ddArreglosAsterix.selection = 0

myPanel.grp.groupThree.ddColorSystem.selection = 0

myPanel.grp.groupThree.ddLineSelector.selection = 0

myPanel.grp.groupChecker.ddPatterns.selection = 0

myPanel.grp.groupVoraz.myIconButton.image = imagePath0

myPanel.grp.groupTwo.imageDemo.image = imagePath1

myPanel.layout.layout (true);

Home default

myPanel.grp.groupTwo.visible = true;

myPanel.grp.groupThree.visible = false;

myPanel.grp.BtnGroup.visible = false;

myPanel.grp.groupFour.visible = false;

myPanel.grp.groupRender.visible = false;

myPanel.grp.groupChecker.visible = false;

myPanel.grp.groupTwo.imageDemo.image = imagePath1

AL HACER CLICK IN THE IMAGEN MANDA UNA ALERTED

myPanel.grp.groupTwo.imageDemo.onClick = function)

{

Alert ("Primero debes seleccionar una opcion del Menu drop-down. ADVERTENCIA esto solo con works the paquetería of channel 5. \

("If need more information you can consultarlo con www.estudiovoraz.com");

}

From aqui to add todo el código than dedicate con sus variable mandas is a call desde tus variable y functions.

Sub-panels: (Cuando mandas a con call variable in a number of a specific algo to you UI)

var BtnURL = myPanel.grp.groupVoraz.myIconButton

var BtnText = myPanel.grp.BtnGroup.editText

var BtnCaritas = myPanel.grp.BtnGroup.editCaritas

var BtnIconos = myPanel.grp.BtnGroup.editIconos

var BtnImagen = myPanel.grp.BtnGroup.editImage

var ddSelectPanel = myPanel.grp.groupOne.ddPanel

var myPanel.grp.groupThree.ddColorSystem = ddColor

var ddPatterns = myPanel.grp.groupChecker.ddPatterns

var ddLineSelector = myPanel.grp.groupThree.ddLineSelector

var ddOpciones = myPanel.grp.groupFour.ddArreglosAsterix

var rendaBtn = myPanel.grp.groupRender.renBtn

var myPanel.grp.groupChecker.CBfoto = CFoto

var CWipper = myPanel.grp.groupChecker.CBWipper

var CSting = myPanel.grp.groupChecker.CBSting

var patInp = myPanel.grp.groupFour.patInp

MANAGER PARA AS VEAN O SE ESCONDAN LAS THINGS LED PANEL

ddSelectPanel.onChange = function()

{

Switch (ddSelectPanel.Selection.Text)

{

//PRIMER CASE                                                                                                                                            ---------  SALIDA NO IMAGE   ---------

case "Salida No. Image":

myPanel.grp.groupTwo.visible = true;

myPanel.grp.groupTwo.imageDemo.image = imagePath2

myPanel.grp.groupThree.visible = true;

myPanel.grp.BtnGroup.visible = true;

myPanel.grp.BtnGroup.editImage.visible = false;

myPanel.grp.groupFour.visible = true;

myPanel.grp.groupRender.visible = true;

myPanel.grp.groupChecker.visible = true;

myPanel.grp.BtnGroup.editCaritas.visible = true;

myPanel.grp.BtnGroup.editIconos.visible = true;

myPanel.grp.BtnGroup.editImage.visible = false;

myPanel.grp.groupChecker.CBSting.visible = false;

myPanel.grp.groupChecker.CBfoto.visible = false;

CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

projectItem ("_Render Salida No. Image") .openInViewer ();

CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

myPanel.grp.groupTwo.imageDemo.onClick = function)

{

projectItem ("_Render Salida No. Image") .openInViewer ();

}

ACCION BOX WIPPER

CWipper.onClick = function)

{

if(CWipper.Value == true)

{

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

}

if(CWipper.Value == False)

{

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

}

}

COLOR SYSTEM OF MENU DROP-DOWN

ddColor.onChange = function)

{

Switch (ddColor.selection.text)

{

case "Amarillo":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

break;

case 'Morado ':

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

break;

case "LightBlue":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

break;

case study 'MidBlue ':

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

break;

case "blue":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

break;

case "Rojo":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

LINE SELECTOR DROPDOWN LIST

ddLineSelector.onChange = function)

{

Switch (ddLineSelector.selection.text)

{

case "1-line":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

break;

case "1 line + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

break;

case "1 line + Info:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

break;

case "1 line + Info + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

break;

case "2 lines:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

break;

case "2 lines + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

break;

case "2 lines + Info:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

break;

case "2 lines + Info + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

break;

case "3 lines":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

break;

case '3 lines + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

break;

case '3 lines + Info:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

break;

case '3 lines + Info + Hashtag:

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

break;

by default:

Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

break;

}

}

LIST DROPDOWN CARITAS / ICONOS

ddOpciones.onChange = function)

{

Switch (ddOpciones.selection.text)

{

case "OFF":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([0])";

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([0]);

break;

case "Caritas Astérix":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([1])";

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([0]);

break;

case "Iconos Astérix":

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property (Caritas Asterix").setValue([0])";

projectItem("Salida_No_Image").layer ("_Control") .property ("Effects").property("Control_v2").property ("Iconos Asterix").setValue([1]);

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

EDIT TEXT BUTTON

BtnText.onClick = function)

{

projectItem ("NIS _EditTxt") .openInViewer ();

}

CHANGE CARITAS BOTON

BtnCaritas.onClick = function)

{

projectItem ("NIS _EditCaritas") .openInViewer ();

}

CHANGE THE BOTON ICONOS

BtnIconos.onClick = function)

{

projectItem ("NIS _EditIconos") .openInViewer ();

}

MODELS OF MENU DROP-DOWN

ddPatterns.onChange = function)

{

Switch (ddPatterns.selection.text)

{

case 'OFF models':

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

break;

case "acción":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

break;

case "Comedia":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

break;

case "deportees":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

break;

case "Girly":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

break;

case 'Geek ':

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

break;

case "Todo":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

break;

case 'EXTRA ':

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

break;

case "ASTERIX":

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

ACCION BOX FOTO

CFoto.onClick = function)

{

if(CFoto.Value == true)

{

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([1]) of control. "

}

if(CFoto.Value == False)

{

"projectItem("Salida_No_Image").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([0]) of control. "

}

}

ADD TO RENDER QUEUE

rendaBtn.onClick = function)

{

var QTtemplate = "Lossless." Select el model

salt1 var = projectItem ("_Render Salida No. Image"); Search the model that will has Renderizar por su number

var newPath = ('Salida No. Image');  Este are el number del path knew the asigna para salida to

If (salt1! = null & & salt1 instanceof CompItem) {}

var theRender = app.project.renderQueue.items.add (salt1);

If (salt1 == salt1) {}

theRender.outputModules [1] .applyTemplate (QTtemplate);

theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

}

}

}

break;

//SEGUNDO CASE                                                                                                                                    ---------  SALIDA NO ASTERIX   ---------

case "Salida No. Asterix":

myPanel.grp.groupTwo.visible = true;

myPanel.grp.BtnGroup.editImage.visible = true;

myPanel.grp.groupTwo.imageDemo.image = imagePath3

myPanel.grp.groupThree.visible = true;

myPanel.grp.BtnGroup.visible = true;

myPanel.grp.groupFour.visible = true;

myPanel.grp.groupRender.visible = true;

myPanel.grp.groupChecker.visible = true;

myPanel.grp.groupChecker.CBSting.visible = false;

myPanel.grp.groupChecker.CBfoto.visible = false;

myPanel.grp.groupFour.visible = false;

myPanel.grp.BtnGroup.editCaritas.visible = false;

myPanel.grp.BtnGroup.editIconos.visible = false;

myPanel.grp.BtnGroup.editImage.visible = false;

CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

projectItem ("_Render Salida No. Asterix") .openInViewer ();

CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

myPanel.grp.groupTwo.imageDemo.onClick = function)

{

projectItem ("_Render Salida No. Asterix") .openInViewer ();

}

ACCION BOX WIPPER

CWipper.onClick = function)

{

if(CWipper.Value == true)

{

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

}

if(CWipper.Value == False)

{

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

}

}

COLOR SYSTEM OF MENU DROP-DOWN

ddColor.onChange = function)

{

Switch (ddColor.selection.text)

{

case "Amarillo":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

break;

case 'Morado ':

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

break;

case "LightBlue":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

break;

case study 'MidBlue ':

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

break;

case "blue":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

break;

case "Rojo":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

LINE SELECTOR DROPDOWN LIST

ddLineSelector.onChange = function)

{

Switch (ddLineSelector.selection.text)

{

case "1-line":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

break;

case "1 line + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

break;

case "1 line + Info:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

break;

case "1 line + Info + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

break;

case "2 lines:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

break;

case "2 lines + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

break;

case "2 lines + Info:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

break;

case "2 lines + Info + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

break;

case "3 lines":

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

break;

case '3 lines + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

break;

case '3 lines + Info:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

break;

case '3 lines + Info + Hashtag:

projectItem("Salida_No_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

break;

by default:

Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

break;

}

}

MODELS OF MENU DROP-DOWN

ddPatterns.onChange = function)

{

Switch (ddPatterns.selection.text)

{

case 'OFF models':

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

break;

case "acción":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

break;

case "Comedia":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

break;

case "deportees":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

break;

case "Girly":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

break;

case 'Geek ':

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

break;

case "Todo":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

break;

case 'EXTRA ':

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

break;

case "ASTERIX":

"projectItem("Salida_No_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

EDIT TEXT BUTTON

BtnText.onClick = function)

{

projectItem ("_EditTxt SNA") .openInViewer ();

}

ADD TO RENDER QUEUE

rendaBtn.onClick = function)

{

var QTtemplate = "Lossless."   Select el model

var SEL2 = projectItem ("_Render Salida Asterix No.");  Search the model that will has Renderizar por su number

var newPath = ('Salida No. Asterix');  Este are el number del path knew the asigna para salida to

If (sel2! = null & & sel2 instanceof CompItem) {}

var theRender = app.project.renderQueue.items.add (sel2);

If (sel2 == sel2) {}

theRender.outputModules [1] .applyTemplate (QTtemplate);

theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

}

}

}

break;

//TERCER CASE                                                                                                                                            ---------  SALIDA VENTANA ASTERIX ---------

case "Salida Ventana Astérix":

myPanel.grp.groupTwo.visible = true;

myPanel.grp.groupTwo.imageDemo.image = imagePath5

myPanel.grp.groupThree.visible = true;

myPanel.grp.BtnGroup.visible = true;

myPanel.grp.BtnGroup.editImage.visible = true;

myPanel.grp.groupFour.visible = false;

myPanel.grp.groupRender.visible = true;

myPanel.grp.groupChecker.visible = true;

myPanel.grp.BtnGroup.editCaritas.visible = false;

myPanel.grp.BtnGroup.editIconos.visible = false;

myPanel.grp.BtnGroup.editImage.visible = true;

myPanel.grp.groupChecker.CBSting.visible = false;

myPanel.grp.groupChecker.CBfoto.visible = true;

CUANDO SE EN EL MENU SELECT DROPDOWN SALIDA NO. IMAGE O LO THAT MATCH, LO ABRE EN EL VIEWER

projectItem ("_Render Salida Ventana Asterix") .openInViewer ();

CUANDO SE HACE CLICK IN IMAGE TREE MODEL USED

myPanel.grp.groupTwo.imageDemo.onClick = function)

{

projectItem ("_Render Salida Ventana Asterix") .openInViewer ();

}

ACCION BOX WIPPER

CWipper.onClick = function)

{

if(CWipper.Value == true)

{

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

}

if(CWipper.Value == False)

{

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

}

}

COLOR SYSTEM OF MENU DROP-DOWN

ddColor.onChange = function)

{

Switch (ddColor.selection.text)

{

case "Amarillo":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([1]);

break;

case 'Morado ':

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([2]);

break;

case "LightBlue":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([3]);

break;

case study 'MidBlue ':

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([4]);

break;

case "blue":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([5]);

break;

case "Rojo":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("colour System").setValue([6]);

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

LINE SELECTOR DROPDOWN LIST

ddLineSelector.onChange = function)

{

Switch (ddLineSelector.selection.text)

{

case "1-line":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([1]);

break;

case "1 line + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([2]);

break;

case "1 line + Info:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([3]);

break;

case "1 line + Info + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([4]);

break;

case "2 lines:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([6]);

break;

case "2 lines + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([7]);

break;

case "2 lines + Info:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([8]);

break;

case "2 lines + Info + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([9]);

break;

case "3 lines":

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([11]);

break;

case '3 lines + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([12]);

break;

case '3 lines + Info:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([13]);

break;

case '3 lines + Info + Hashtag:

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("line Selector").setValue([14]);

break;

by default:

Alert ("error: perhaps not a stereo none option, select una opcion del Line Selector");

break;

}

}

EDIT TEXT BUTTON

BtnText.onClick = function)

{

projectItem ("SVA _EditTxt") .openInViewer ();

}

BtnImagen.onClick = function)

{

projectItem ("SVA _EditFootage") .openInViewer ();

}

MODELS OF MENU DROP-DOWN

ddPatterns.onChange = function)

{

Switch (ddPatterns.selection.text)

{

case 'OFF models':

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([1]) of control. "

break;

case "acción":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([3]) of control. "

break;

case "Comedia":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([4]) of control. "

break;

case "deportees":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([5]) of control. "

break;

case "Girly":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([6]) of control. "

break;

case 'Geek ':

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([7]) of control. "

break;

case "Todo":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([8]) of control. "

break;

case 'EXTRA ':

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([10]) of control. "

break;

case "ASTERIX":

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Patterns").setValue([12]) of control. "

break;

by default:

Alert ("error: perhaps no none option selected, brought Nuevo...");

break;

}

}

ACCION BOX FOTO

CFoto.onClick = function)

{

if(CFoto.Value == true)

{

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([1]) of control. "

}

if(CFoto.Value == False)

{

"projectItem("Salida_Ventana_Asterix").layer ("_Control").property("Effects").property (v2").property("Foto").setValue([0]) of control. "

}

}

ACCION BOX FOTO

CWipper.onClick = function)

{

if(CWipper.Value == true)

{

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([1]);

}

if(CWipper.Value == False)

{

projectItem("Salida_Ventana_Asterix").layer ("_Control") .property ("Effects").property("Control_v2").property ("Wipper In").setValue([0]);

}

}

ADD TO RENDER QUEUE

rendaBtn.onClick = function)

{

var QTtemplate = "Lossless." Select el model

salt1 var = projectItem ("_Render Salida Ventana Asterix"); Search the model that will has Renderizar por su number

var newPath = ('Salida Ventana Asterix');  Este are el number del path knew the asigna para salida to

If (salt1! = null & & salt1 instanceof CompItem) {}

var theRender = app.project.renderQueue.items.add (salt1);

If (salt1 == salt1) {}

theRender.outputModules [1] .applyTemplate (QTtemplate);

theRender.outputModules [1] mpfprojectdir\dev10\src\csharp\projectbase.file = new queue (newPath);

}

}

}

break;

//DEFAULT CASE                                                                                                                                    ---------  DEFAULT CASE  APAGA TODO  ---------

by default:

myPanel.grp.groupTwo.visible = true;

myPanel.grp.groupThree.visible = false;

myPanel.grp.BtnGroup.visible = false;

myPanel.grp.groupFour.visible = false;

myPanel.grp.groupRender.visible = false;

myPanel.grp.groupChecker.visible = false;

myPanel.grp.groupTwo.imageDemo.image = imagePath1

AL HACER CLICK IN THE IMAGEN MANDA UNA ALERTED

myPanel.grp.groupTwo.imageDemo.onClick = function)

{

Alert ("Primero debes seleccionar una opcion del Menu drop-down. ADVERTENCIA esto solo con works the paquetería of channel 5. \

("If need more information you can consultarlo con www.estudiovoraz.com");

}

break;

}

}

ACCIÓN PARA EL ESTUDIO VORAZ LINK

BtnURL.onClick = LinkToURL;

function LinkToURL()

{

alert ("http://www.estudiovoraz.com");

            var URL = " http://www.estudiovoraz.com "; your web page

If ($.os.indexOf ("Windows")! = - 1).

system.callSystem (winBrowserCmd + "" + URL);

on the other

system.callSystem (macBrowserCmdStart + URL + macBrowserCmdEnd);

}

FUNCION WHAT TODOS LOS OF THE INDEX OF THE ITEM PROJECT DETECTA Y IN ASIGNARLE LUGAR DEL LO DETECTA POR SU NUMBER NUMBER

projectItem (name) function

{

var items = app.project.items;

i = 1;

While (I < = items.length) {}

If (items [i] .name = name)

{

Return app.project.item (i);

break;

}

i ++ ;

}

}

END PANEL - NO PONER NADA ESTA LINEA ABAJO.

Return myPanel;

}

var myScriptPal = myScript_buildUI (thisObj);

If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

myScriptPal.center ();

myScriptPal.show ();

}

}

myScript (this);

}

OK, apparently it does work well with panels, because even if the height is 0, something is from the Panel...

You can try the panels inside the packing groups. It will start to be a little heavy, but it works.

Here's a toy example to illustrate:

var w = new Window("palette", "test");
w.content=w.add("group{orientation: 'column', margins: 0, spacing: 0,\
                                alignment: ['fill', 'fill'], alignChildren: ['fill', 'top'],\
                                gr1: Group{orientation: 'row', margins: [0,5,0,5], spacing: 10, alignChildren: ['fill', 'center'],\
                                                titleST: StaticText{text: 'Option Level', alignment: ['left', 'center']},\
                                                menu : DropDownList{properties: {items: ['0', '1', '2', '3']}},\
                                                },\
                                gr2: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                    text : 'Option 1',\
                                                                    menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                    },\
                                                },\
                                gr3: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                    text : 'Option 2',\
                                                                    menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                    },\
                                                },\
                                gr4: Group{orientation: 'row', margins: [0,5,0,5], alignChildren: ['fill', 'center'],\
                                                content: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 0, alignChildren: ['fill', 'center'],\
                                                                    text : 'Option 3',\
                                                                    menu : DropDownList{properties: {items: ['A', 'B', 'C', 'D', 'E']}},\
                                                                    },\
                                                },\
                                gr5: Panel{orientation: 'row', margins: [5, 10, 5, 5], spacing: 10, alignChildren: ['fill', 'center'],\
                                                text : 'Commands',\
                                                btnA: Button{text: 'A'}, btnB: Button{text: 'B'}, btnC: Button{text: 'C'},\
                                                },\
                                }");
w.content.gr1.menu.onChange = function(){
    // set visibility of options groups (gr2 to gr4)
    var x = this.selection.index + 1;
    var k;
    for (k=1; k<=3; k++){
        w.content.children[k].maximumSize.height = x>k ? 1000 : 0;
        };
    w.layout.layout(true);
    };
//==============================
w.content.gr1.menu.selection = 0;
w.show();

Xavier

Tags: After Effects

Similar Questions

Maybe you are looking for