Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

ability to watch for new skp files on hard disk and convert #17

Open
ghost opened this issue Aug 14, 2014 · 2 comments
Open

ability to watch for new skp files on hard disk and convert #17

ghost opened this issue Aug 14, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 14, 2014

I was wondering if there is the ability to watch for new skp files and run the sketchup converter automatically.

this is because i have lots of sketchup files that change often.

@rpavlik
Copy link
Owner

rpavlik commented Aug 28, 2014

Well, not that I know of offhand easily. You'd probably have to write a separate script to do the directory monitoring and on change, invoke SketchUp for the file, execute the exporter (probably a copy of the ruby script with the options hard-coded).

The exporter just exports to Collada (DAE), which is built-in to sketchup, then converts that file into an OSG format using osgconv and some standard options. The ruby code is pretty readable if an automated tool interests you.

@ghost
Copy link
Author

ghost commented Aug 29, 2014

i did soe research. It seems its impossible to evoke sketchup and ask it to do a conversion.
So, the only way is to write it all in c++, and use the sketchup c SDK (http://www.sketchup.com/intl/en/developer/sdk_start.html)

buy do i have some work ahead of me.

I am hoping i can just call the same exporte that sketchup uses to convert to collada. The skp2dae in the programs directory

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant