@Michael_Meyer wrote:
Hi...,
I would like to write scripts (I am a script newbie) for
- adding pictureframes to one layer, e.g. layer "pictureframes"
- the size (width, height) of the pictureframes should be defined automatically by the width and height of our picture files (PNG)
- the starting width, height, and filename should be stored with the pictureframe
Write a JSON file
- collect all pictureframes from our layer and write the added values ( width, height, filename, real location(which we calculate from the 4 edgepoints, rotation, scale factor,...) to a JSON file
So my questions are:
- Is Python right for this task and where to start?
- How to open a pictureframe in Python and use the width and height of the picture file? (pixel of PNG should be mm of pictureframe)
- What's an easy way to add data (width, hight, name,...) to the pictureframe?
- How to collect the added data, and write the JSON-file?Thanks
Michael
www.flexiCAD.com
Posts: 4
Participants: 2