Everything related to SDK.
By PixelDelirium
#257506
I can't seem to figure out how to position an instance properly. If I instance an object that is at the world origin with no transforms applied and I set the instance's base center to 1.0,0.0,0.0 it actually appears to be moved to 2.0,0.0,0.0 when I render it or load it into studio.

If I change the instance's base axii to apply a rotation it appears to have no effect. If I instance an object that already has a transform applied the results appear to be unpredictable if I change the instance's base.

So, what is the preferred way to transform an instance of an object using the SDK?

Another odd thing I've found is that instancing an object that is the child of another object does not seem to work. If I call maxwell->getNumObjects() the instances are included in the count but they don't show up in studio (or when I render).
Sketchup 2024 Released

I would like to add my voice to this annual reques[…]