THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/06/2007 at 05:12, xxxxxxxx wrote:
Cinema 4D Version: 10.111
Platform: Mac ;
is there a way to start 'calculate cache' for a cloth object through the sdk?
I also want to set the 'Cloth Engine' checkbox.
t_data = ...
But the compiler tells me that CLOTH_USE dosn't exist.
(CLOTH_USE is the ID for the checkbox according to the Script Manager).
Thanks in advance!
On 02/07/2007 at 01:23, xxxxxxxx wrote:
Is there no solution to these two problems? No way to calculate cache automatically or auto-select the cloth engine checkbox?
On 02/07/2007 at 02:44, xxxxxxxx wrote:
not without some hacks I'm afraid.
On 03/07/2007 at 01:13, xxxxxxxx wrote:
So what kind of hacks must be done to achive this?
On 04/07/2007 at 13:56, xxxxxxxx wrote:
No hacks should be needed, the checkbox should be just normal data so SetParameter will be fine but you must include the correct header with the ID defined. As for the command, you just need to send the right message to the tag using MSG_DESCRIPTION_COMMAND. Again, in the resource header will be the ID for this also.
On 05/07/2007 at 05:40, xxxxxxxx wrote:
The missing header file was clothtag.h. After including it, SetParameter worked. Sounds easy but I didn't find it when I was first looking for it...
The following code causes the cloth tag to start caching:
DescriptionCommand* data = gNew DescriptionCommand;
data->id = DescID(CLOTH_DO_CALCULATE);
Finally it works! Thank you very much for your help!
One more short question: I'm looking for the Constant identifying a cloth tag to access it via object->GetTag. At the moment I do this via obj->GetTag(100004020). But I am sure there must be something like tcloth.