Custom importer preview?
-
Hi all!
I have tried to find any information about this, and have come up with nothing, so maybe the sketchUcation community can help.
I have created a custom importer, and am trying to figure out a way to preview my drawing in the little preview space to the right side of the file selection window.
Is this possible? If so, how does one access this functionality?
Thanks!
-Sam -
the task is no simple.
What type of drawing you have? 2D or 3D? raster or vectorial?
BTW you can not use the SU file selector, but a webdialog or other GUI interface.... you need a CANVAS to draw on. -
@voltaicsca said:
If so, how does one access this functionality?
This is an operating system feature.
Previews will display if a thumbnail image has been saved INSIDE the file. (Which SketchUp can do with models.)
-
That is not exposed in the API, but it'd be a nice feature to have though.
-
@dan rathbun said:
@voltaicsca said:
If so, how does one access this functionality?
This is an operating system feature.
Previews will display if a thumbnail image has been saved INSIDE the file. (Which SketchUp can do with models.)
But this works only if a picture is available.... so thinking about SU only if I'm writing an exporter (in the case I've got the SU model and its thumbnail). But what about the opposite situation (an importer, say a DWG/DXF/OBJ etc)?
Advertisement