Admittedly, I haven’t found a use for this yet but I spent a couple days translating the Parametric Equation to the Pujie Black editor so I’m posting this… So, if I wanted to find the location X & Y for where a GMT offset hour may be… this can be used…
// For both X and Y positions (max radius as 0.707)
var df = -(([gmt_offset])-[t1_gmt_offset]);
var mo = parseInt(df);
var so = df-mo;
if (so == 0) {
var h = [h24]+df;
var m = [m];
} else {
var h = [h24]+mo;
var m = [m]+(so*60);
if (m<0){
m=m+60;
h=h-1;
}
}
if (h<0){h=h+24;}
var radius=Number(0.707);
var radians=(-(((0.5*((60*h)+m))-90)))*Math.PI/180;
// for X position (centre layer and apply automation to Move X)
var hrx=(radius*(Math.cos(radians).toFixed(3))).toFixed(3);
return Number(hrx)
// for Y position (centre layer and apply automation to Move Y)
var hry=-((radius*(Math.sin(radians).toFixed(3))).toFixed(3));
return Number(hry)
Of course, you can just use rotation instead… ie, you can place the object at the top, middle with rotation at centre with a standard hour hand rotation formula then negate rotation of the actual object.
For ease of demonstration I'll use current hours…
// Rotation (of group with object at top/middle and centre at 0,0): 0.5*((60*Number([h12]))+Number([m])) // Negate object rotation: -(0.5*((60*Number([h12]))+Number([m])))
Using my Time Zone Time translation formulas, you can simply use rotation instead of X, Y movements... which is why I haven't found a use for the parametric equation yet.