Cloth Tag Calculate Cache
-
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:
User Information:
Cinema 4D Version: 10.111
Platform: Mac ;
Language(s) :---------
Hello,is there a way to start 'calculate cache' for a cloth object through the sdk?
I also want to set the 'Cloth Engine' checkbox.
I tried
GeData t_data;
t_data = ...
SetParameter(DescID(CLOTH_USE),t_data,0);
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!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/07/2007 at 02:44, xxxxxxxx wrote:
not without some hacks I'm afraid.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/07/2007 at 01:13, xxxxxxxx wrote:
So what kind of hacks must be done to achive this?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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); clothTag->Message(MSG_DESCRIPTION_COMMAND, data); gDelete(data);
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.