Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Mirror Tool Bug?

    SDK Help
    0
    3
    612
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 13/02/2011 at 16:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:      
      Language(s) :     C++  ;

      ---------
      I've had this long standing problem with the Structure->Mirror tool with Coffee. And I'm getting the same results now that I'm using C++.
      The problem is only the execution part works. But none of the various parameters allow me to change them.
      I don't know if I'm writing the code wrong. Or if it's a bug.
      All I know is that I can use the same code structure on other things and it works fine.

      BaseObject* op = doc->GetFirstObject();  
       BaseContainer bc;  
       ModelingCommandData mcd;  
       mcd.bc = &bc;  
       mcd.doc = doc;  
       mcd.op = op;      
       mcd.flags = MODELINGCOMMANDFLAGS_CREATEUNDO;  
       mcd.mode = MODELINGCOMMANDMODE_POINTSELECTION; // points option  
       //mcd.mode = MODELINGCOMMANDMODE_POLYGONSELECTION; // polygons option  
       //mcd.mode = MODELINGCOMMANDMODE_ALL; // All option  
       bc.SetLong(MDATA_MIRROR_SYSTEM, 1);// Set World option----------->No Response  
       bc.SetLong(MDATA_MIRROR_PLANE, 2);// Set XZ option--------------->No Response  
       bc.SetBool(MDATA_MIRROR_ONPLANE, TRUE);//Enable symmetry option-->No Response  
       bc.SetData(MDATA_MIRROR_VALUE, 100);// Set value option---------->No Response  
       bc.SetBool(MDATA_MIRROR_WELD, TRUE); //Enable Weld option-------->No Response  
       if (!SendModelingCommand(MCOMMAND_MIRROR, mcd)) return FALSE;  
       EventAdd();//Update all the changes 
      

      BTW: I've also tried using WORLD & XZ as parameters in the two SetLong parameters. And they still won't work for me. And it's the same result no matter which mode(points,polygons,all) I use.

      Is this a bug?
      Or is it user error?

      -ScottA

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 14/02/2011 at 02:51, xxxxxxxx wrote:

        I can confirm that it doesn't take the values of the BaseContainer into account. I will forward this to the developers.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 14/02/2011 at 07:20, xxxxxxxx wrote:

          Thank you Matthias.🍺

          -ScottA

          1 Reply Last reply Reply Quote 0
          • First post
            Last post