Tooltip on a dockable GUI
hi everyone,
created au dockable gui pictos (not text) , users, have tooltip on mouse rollover show name of every function.
here menu
{
function myscript(thisobj) {
function myscript_buildui(thisobj) {
var mypanel = (thisobj instanceof panel) ? thisobj : new window("palette", "menu pitchy", undefined, {resizeable:true});
res="group{orientation:'column',\
mypanel1: panel{text:'mises à jour', orientation:'row',\
mybutton01: iconbutton{text:'mise à jour complète', tooltipactive:'mise à jour complète', image:'d:/pitchy/scripts/images/all.png'},\
mybutton02: iconbutton{text:'vidéo', image:'d:/pitchy/scripts/images/video.png'},\
mybutton03: iconbutton{text:'lignes text', image:'d:/pitchy/scripts/images/lignes.png'},\
mybutton04: iconbutton{text:'info séquence', image:'d:/pitchy/scripts/images/info.png'},\
},\
mypanel2: panel{text:'débug', orientation:'row',\
mybutton05: iconbutton{text:'layer style', image:'d:/pitchy/scripts/images/layer.png'},\
mybutton06: iconbutton{text:'disable null', image:'d:/pitchy/scripts/images/null.png'},\
mybutton07: iconbutton{text:'code camembert', image:'d:/pitchy/scripts/images/codecam.png'},\
mybutton08: iconbutton{text:'code position line1', image:'d:/pitchy/scripts/images/posline.png'},\
},\
mypanel3: panel{text:'réglages', orientation:'row',\
mybutton09: iconbutton{text:'rescale bloc', image:'d:/pitchy/scripts/images/rbloc.png'},\
mybutton10: iconbutton{text:'rescale ligne', image:'d:/pitchy/scripts/images/rligne.png'},\
mybutton11: iconbutton{text:'polices', image:'d:/pitchy/scripts/images/polices.png'},\
},\
mypanel4: panel{text:'tests', orientation:'row',\
mybutton12: iconbutton{text:'text 40 car.', image:'d:/pitchy/scripts/images/t40.png'},\
mybutton13: iconbutton{text:'text 120 car.', image:'d:/pitchy/scripts/images/t120.png'},\
mybutton14: iconbutton{text:'time stretch', image:'d:/pitchy/scripts/images/time.png'},\
},\
}";
mypanel.grp = mypanel.add(res);
/*---- buttons settings ----*/
return mypanel; }
var myscriptpal = myscript_buildui(thisobj);
if(myscriptpal != null && myscriptpal instanceof window)
{ myscriptpal.center(); myscriptpal.show(); }
}
myscript(this);
}
hi,
you can add .helptip buttons. example:
mybutton.helptip = "function description";
More discussions in After Effects Scripting
adobe
Comments
Post a Comment