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

    SendModelingCommand over time?? [CLOSED]

    PYTHON Development
    0
    6
    942
    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

      On 18/12/2014 at 04:34, xxxxxxxx wrote:

      I use this code to melt some points on my object:

      obj = doc.SearchObject('Sphere')
                 
             melt_list = [218,220,222,224,226,228,230,232,234,236,238,240]
             
             pnts_melt = obj.GetPointS()
                    
             for i in melt_list:
                 
               melt_pnts = pnts_melt.Select(i)
                 
             if melt_pnts == True:
                 
                c4d.utils.SendModelingCommand(command = c4d.MCOMMAND_MELT, 
                                       list = [obj], 
                                       bc = c4d.BaseContainer(),
                                       mode = c4d.MODELINGCOMMANDMODE_POINTSELECTION,
                                       doc = doc)
        
      
      

      But what if I want to Melt a Point "one at a time" or a slider

      All I can figure out is with A LOT off "if's"

      Any suggestions will be appreciated, Thanks

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

        On 18/12/2014 at 07:36, xxxxxxxx wrote:

        Hi carel5103,

        I'd like to help you out with your request, but you'll have to elaborate, I don't have enough information to know what to focus on.

        Thanks,

        Joey Gaspe
        SDK Support Engineer

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

          On 18/12/2014 at 08:13, xxxxxxxx wrote:

          Hi Joey,

          I have a List of points[] and want to melt the points ,starting from point[0]

          ex: point[0] at frame 1
                point[1] at frame 2
                point[2] at frame 3 
                and so on
          Hope this clears it up a little. English is not my first language 😊

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

            On 18/12/2014 at 08:30, xxxxxxxx wrote:

            Hi carel5103,

            Thanks for the additional info.  Sorry for not asking in my first post, but could you please give a more complete program?  It's much easier if I can copy/paste a working program into the Python Editor, especially since I'm new to Python in particular, so it's not obvious to me what may be missing.

            Thanks,

            Joey Gaspe
            SDK Support Engineer

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

              On 14/01/2015 at 07:46, xxxxxxxx wrote:

              Hi carel5103,

              Do you still need help with this topic?

              Joey Gaspe
              SDK Support Engineer

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

                On 17/01/2015 at 01:57, xxxxxxxx wrote:

                Sorry for my late response but I decided to go another route. Thanks anywhay 👍

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