newbie question: sendmodelingcommand
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/12/2003 at 02:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.3
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;---------
hallo,i just don't get along with the sendmodelingcommand.
SendModelingCommand([int] command, [[BaseDocument] doc = NULL], [BaseObject] op, [BaseContainer] data, [int] mode)
i intended to convert a group of primitive-objects into a polygonobject and tried the following:
SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,FALSE,MODIFY_ALL);
but there occurs an error: incompatible values INTEGER / OBJECT
could someone give me a clou, how to use this code properly. i'd be very happy with an one line code example...
regards,
alex
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/12/2003 at 11:01, xxxxxxxx wrote:
This is the code I use:
var op = GetActiveObject(doc); var bc = new(BaseContainer); var result = SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,bc,MODIFY_ALL); println(result); GeEventAdd(DOCUMENT_CHANGED);
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/12/2003 at 17:08, xxxxxxxx wrote:
ah, yes, thanx a lot! it works great! ;-))