On 13/08/2018 at 04:05, xxxxxxxx wrote:
First of all welcome in the plugin cafe community!
Physical objects is a bit special. Here is what a basic object will look like.
BaseObject* PhysicalSky = BaseObject::Alloc(1011146);
if (PhysicalSky == nullptr)
You can know such ID, by drag and drop a Physical sky you created from c4d to the console.
But, since a physical sky is a bit special (when you edit it you can see there are some materials), so in order to get them fully initialized you should call a command since you can't manually initialize them due to some classes not exposed in the SDK. So the correct way to do it is the following.
BaseObject* PhysicalSky = doc->GetActiveObject();
You can know the command ID by looking at the script log while creating a Physical Sky object.
Hope it's helpful, if you have any question please let me know!