Skip to main content
Participant
March 17, 2019
Question

dimensions from a variable

  • March 17, 2019
  • 2 replies
  • 1014 views

Hoping to get pointed in the right direction.

I have been working for a few days trying to establish if it is possible to set dimensions of a graphic, from an imported variable contained in a data set.

field1 --> description

field2 --> width

field3 --> height

field4 --> origin vert

field5 --> origin hor

field6 --> color

I am working fine with the variable text but not setting the physical size.

Any help appreciated

This topic has been closed for replies.

2 replies

Participant
March 18, 2019

Thanks Carlos

I have a variable data job where I have 6 variables that are imported as a data set.

3 are text variables

1 is an image variable (path)

The last 2 variables are measurements (width and height) that I would like to apply to a rectangle as dimensions. I cannot find a way to do this and was hoping the variable could be referenced programmatically through a script.

Thanks

Lumenn
Inspiring
March 18, 2019

What is the structure of the text file?
Is it just a .txt, or maybe XML ?

Is the rectangle already placed in the document, or script creates the document and the rectangle?
Is the rectangle the only object in the file, or there are more objectes?

Do you want to draw a rectangle, or maybe change size of artboard?

CarlosCanto
Community Expert
Community Expert
March 17, 2019

can you please elaborate? please show a sample of what you're trying to accomplish