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).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/02/2004 at 01:05, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.200 Platform: Windows ; Language(s) : C.O.F.F.E.E ; XPRESSO ;
--------- Hi all!
I created a primitive cubde with default settings and added a COFFEE tag to it, see below:
main(doc,op) { var cntCube = op->GetContainer(); SendModelingCommand(MCOMMAND_MAKEEDITABLE,doc,op,cntCube,MODIFY_ALL); op->Message(MSG_UPDATE); //GeEventAdd(DOCUMENT_CHANGED); //GeEventAdd(DOCUMENT_CHANGED); }
This code promtly crashes C4d, what have I done wrong? Thanks!
On 05/03/2004 at 00:15, xxxxxxxx wrote:
Anybody? Any tips?
On 06/03/2004 at 05:03, xxxxxxxx wrote:
1. You sent the wrong container, so the result is undefined. SendModelingCommand() wants a container with settings for the command, or an empty container in this case. 2. Perhaps the result of the command is that another cube, with the same tag, is inserted into the scene. Then that cube produces yet another cube, so your scene will grow to infinity. 3. You don't need to send an update message to the cube, since nothing has changed in it. The result of the command is a new object.
On 08/03/2004 at 11:36, xxxxxxxx wrote:
Thanks!