cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get values of VEC4 in widget

saykent
1-Visitor

How to get values of VEC4 in widget

Hey, I cant figure out how can i get data from vec4 baseType. My code is like:

  props['PaneBGColorLinear'+a] = {

  description: 'X1,Y1,X2,Y1 for linear gradient',

  baseType: 'VEC4',

  defaultValue: '0,0,0,0',

  };

  var vec = this.getPropertyEx('PaneBGColorLinear'+b);

  bgColor = { x1: vec.x, y1: vec.y, x2: vec.z, y2: vec.w };

0 REPLIES 0
Announcements
Top Tags