Glad to have joined these forums, SketchUp is an amazing tool and we’re using the SDK to build a huge free-to-use material/object library for everyone to enjoy. We’re featured on the 3D Warehouse page under Rockit3D!
So in our library, I want to use the SDK to put watermark images on every SketchUp file, basically with pre-rendered graphics to show what a material will be like rendered.
Thanks for the reply, so is there any way at all to set an image as watermark through the C API?
Apart from setting as the active style, right now it doesn’t seem possible to import a *.style file without it erroring.
Another option I found is function SUStylesApplyStyleToScene which can set a style active right? We can setup a single scene in each file and then apply this. But first the style needs to be accepted in… is there some kind of example where it’s proven that style importing works? That would help a lot!
Before you get mired in the ruts of trying to add a style, what are you wishing to achieve for the enduser ?
Generally, adding images to components bloats them (sizewise) and user’s models, … which user will not like. I see this as a negative which would preclude users from using your object libraries.
Watermarks in components would not trigger watermarks in the user’s model being switched on, as it’s a style setting of whatever style(s) the user has their model and / or scenes set to use.
Changing any style settings in what the user has set, is likely to upset the professional user greatly.
In a quick test, I do not see an embedded style in a SKP component being imported into a user model via File > Import…, nor the Components browser inspector panel.
So I’m thinking perhaps using styles isn’t going to work anyway.
Perhaps setting the thumbnail image is more appropriate ?
This is what would appear as the 3D Warehouse thumbnail image, would it not?
Adding a preview watermark only adds 30 kB which is neglelible.
We’re also adding in a bunch of images for our ‘indicator’ components, since SketchUp is at the moment problematic which detailed geometry, so we swap out those components for render-grade models in our rendering system. Our software is rigged to detect our resources.
Importing a material/object through component browser or copying over the resource into the working model does not copy along any style settings. Through the component browser the watermark doesn’t come along so that’s no problem.
Basically we’re building an AI platform that can automatically make renders for users, from base SketchUp, with models/materials from our library for the best results. We believe in a future where AI assists designers and don’t have to deal with any of the technical stuff. A lot of people love designing but hate the visualising process.
I’ve uploaded our exact use-case, please have a look:
First scene shows style with watermark, second scene shows material that people can draw with inside SketchUp. When getting this through the Component Browser, it immediately gets the geometry and does not get the style, which is exactly what we want. And yet it does show this material preview thumbnail which is even more perfect!
But to repeat the problem, the function in the SDK to get a style in doesn’t seem to work, please see earlier posts.