Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, I'm using the command id number to add new Cloth Surface object, but I'm searching what the object id name to use it instead of.
// Create a Cloth Surface. BaseObject* clothSurface = BaseObject::Alloc(100004007); if (!clothSurface) return BaseObject::Alloc(Onull);
hello,
There's currently no exposed Symbol for that value. There's no issue using the value itself, just be aware it can be changed in the futur.
Cheers, Manuel
@m_magalhaes Hello, Sorry I just see your reply, I have an additional question about. As the Cloth Surface is available only in Studio version of Cinema 4D, I have added the condition IsCommandEnabled(100004007). Is it OK or there is method to get the current c4d version type?
if (IsCommandEnabled(100004007)) { // Create a Cloth Surface. BaseObject* clothSurface = BaseObject::Alloc(100004007); if (!clothSurface) return BaseObject::Alloc(Onull); }
up to version R20 you can use GeGetVersionType but this have been removed with the version R21 (we only have one package now)
GeGetVersionType
With the version R21 follow you have several functions see this page
to check the version you can check for API_VERSION
#if API_VERSION > 20999 ApplicationOutput("this is a message"); #else GePrint("this is a message"); #endif
Cheers Manuel