Author Topic: .charsize over_rides animation ?  (Read 201 times)

jedione

  • Sr. Member
  • ****
  • Posts: 363
  • punktoe
    • View Profile
.charsize over_rides animation ?
« on: July 02, 2017, 07:57:45 AM »
so in a text list animation...
as soon as i enable "list.charsize = font_size;"
it breaks the "scale"animation.

with it disabled it works fine,,butt it is way the wrong size
that i need.

?how would one set the defalt charsize maybe in a different manner so
it would work..

Code: [Select]
//**
fe.load_module("animate");

local font_size = 15;

local R = 200;
local G = 0;
local B = 0;
//**


local list = fe.add_text("[Title]",  000,150, 290, 120 );
local to_cfg = {
    when = Transition.ToNewSelection ,property = "scale", start = 1.0, end = 1.2, time = 200, delay = 000
 }
local fro_cfg = {
    when = Transition.ToNewSelection ,property = "scale", start = 1.2, end = 1.0, time = 1000, delay = 500
 }
local alpha_cfg = {
    when = Transition.ToNewSelection ,property = "alpha", start = 255, end = 0, time = 4000, delay = 000
 }
animation.add( PropertyAnimation( list, to_cfg ) );
animation.add( PropertyAnimation( list, fro_cfg ) );
animation.add( PropertyAnimation( list, alpha_cfg ) );
list.index_offset = 0;
list.alpha = 110;
list.font="Friday13";
//list.charsize = font_size;
list.set_rgb (R,G,B);

thanks.....hope everyone has a great 4th of july!!!!!
help a friend....

BOXXMAN

  • Full Member
  • ***
  • Posts: 38
    • View Profile
Re: .charsize over_rides animation ?
« Reply #1 on: July 02, 2017, 10:39:12 AM »
I use charsize= only to set text size, and have text animated and static of all sizes in my layouts. Drop the font_size, and try this:
Code: [Select]
list.charsize=18
Set your numerical value for whatever you like. You can do this with any object, eg. list.charsize=18, mytext.charsize=20, overview.charsize=10, ect, and have texts of all sizes. I have also discovered that you can use multiple fonts in a layout in the same respect ,as list.font= Arial, mytext.font= Tahoma, ect.

jedione

  • Sr. Member
  • ****
  • Posts: 363
  • punktoe
    • View Profile
Re: .charsize over_rides animation ?
« Reply #2 on: July 03, 2017, 10:41:10 AM »
thanks that did the trick,,,

for getting it to animate ...  with font and color, 
.charsize = font_size;  wont work but i found by adjusting
scale start and end controls the sizing!  and when i think abought it
this makes sence....

thanks again bro...happy theme'ing.
help a friend....