lohriialo/indesign-scripting-python

How to return an Array of 2 Arrays of 2 doubles?

gipnozik opened this issue · 0 comments

Code
app.activeDocument.pages(2).Reframe(In=2021225328, OpposingCorners= [[10, 11], [12, 13]])

returns an error (for the Russian version)
pywintypes.com_error: (-2147352567, 'Ошибка.', (30477, 'C:\\Program Files\\Adobe\\Adobe InDesign CC 2018\\InDesign.exe', 'Некорректное значение параметра "OpposingCorners" метода "Reframe". Ожидалось Array of 2 Arrays of 2 Doubles, получено (10).', None, 0, 0), None)

machine translation:
pywintypes.com_error: (-2147352567, 'Error.', (30477, 'C:\\Program Files\\Adobe\\Adobe InDesign CC 2018\\InDesign.exe ', 'Invalid value of the "OpposingCorners" parameter of the "Reframe" method. Expected Array of 2 Arrays of 2 Doubles, received (10).', None, 0, 0), None)

how to return an Array of 2 Arrays of 2 doubles?

Comment for the function:

def Reframe(self, In=defaultNamedNotOptArg, OpposingCorners=defaultNamedNotOptArg):
'Move the bounding box of the page item.
In: The bounding box to resize. Type: idCoordinateSpaces enumerator or Ordered array containing CoordinateSpace:idCoordinateSpaces enumerator, BoundsKind:idBoundingBoxLimits enumerator.
OpposingCorners: Opposing corners of new bounding box in the given coordinate space. Type: Array of 2 Arrays of 2 Doubles'