Setting Axes custom parameter


#1

font.customParameters[‘Axes’] = [“Testing”,“Willing”,“Looping”,“Jumping”]

The above code will successfully set up the Axes custom paramater but it automatically assigns the first four letters of the descriptor as the 4 letter code. Is there a way to set this at the same time? I thought the below was logical but has the same effect as above.

font.customParameters[‘Axes’] = { ‘testing’: ‘TOOG’, ‘willing’: ‘WOOG’, ‘looping’: ‘LOOG’ }


#2

Have you tried
print Font.customParameters["Axes"]


#3

prints:

{
looping = LOOG;
testing = TOOG;
willing = WOOG;
}

doesn’t update the UI though even after save and reopen.


#4

Reverse engineered. Thanks Georg. I was a bit slow on the uptake!

“(
{
Name = Weight;
Tag = wght;
},
{
Name = Width;
Tag = wdth;
}
)”


#5

working format for anyone else looking…

font.customParameters[‘Axes’] = [ {“Name”:“Testing”,“Tag”: “TOOG”}, {“Name”:“Looping”,“Tag”: “LOOG”} ]

won’t work unless it’s wrapped in square brackets even .


#6

Are you sure?