modelling commnad crashes c4d
-
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!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/03/2004 at 00:15, xxxxxxxx wrote:
Anybody? Any tips?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/03/2004 at 11:36, xxxxxxxx wrote:
Thanks!