I am new to Ruby and Sketchup API.
I am searching how to import and apply a transformation to a PNG image.
I want to automate the same behaviour than when you use import a PNG from the file menu, set the origin and set the width of the image, but automatically with the API.
I did experiments the model.import:
model = Sketchup.active_model
status = model.import("/private/tmp/background.jpg", false)
The image is imported, but stick to the mouse pointer and I have still to click and put the scale from mouse.
How could I also set the origin and width from the API only ?
As a bonus, I would like to download the png from a URL and not anymore from a file.png.