Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    GetVirtualObjects - BaseObj to PointObj

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 435 Views
    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 Offline
      Helper
      last edited by

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

      On 19/10/2012 at 17:44, xxxxxxxx wrote:

      Hey Guys,

      I creating a ObjectData-Plugin. Why is this not working?

          def GetVirtualObjects(self, op, hierarchyhelp) :  
              
            spline = c4d.BaseObject(c4d.Osplinerectangle);  
            w = c4d.utils.SendModelingCommand(command = c4d.MCOMMAND_MAKEEDITABLE, list = [spline])  
            print(w)  
              
            return spline
      

      I get False back... 😞

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

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

        On 20/10/2012 at 04:00, xxxxxxxx wrote:

        I use now:

          
        spline = op.GetAndCheckHierarchyClone(hh, spline, c4d.HIERARCHYCLONEFLAGS_ASLINE, False)["clone"]
        

        And this is not working. I cannot set XRAY in virtual objects... 😞

            def GetVirtualObjects(self, op, hh) :  
          
              cube = c4d.BaseObject(c4d.Ocube)  
              cube[c4d.ID_BASEOBJECT_XRAY] = 1  
                
              return cube  
        

        And is it possible to change the String/Name (Dialog?) of an description-element if I use the res folder-system?

        Help me please!

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

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

          On 20/10/2012 at 11:22, xxxxxxxx wrote:

          I imagine using CSTO might be better as you'll return
          an object based on a copy.
          Make Editable "kills" the source and thus are prone to
          not be alive.

          The xray issue I can't tell, but I guess that can only
          be set to the actuall result, that is the Generator itself.

          Cheers
          Lennart

            
          import c4d   
          from c4d import utils as u   
            
          def main() :   
              spline = c4d.BaseObject(c4d.Osplinerectangle)   
              w = u.SendModelingCommand(command = c4d.MCOMMAND_CURRENTSTATETOOBJECT,   
                                      list = [spline],   
                                      doc = op.GetDocument())   
                                         
              return w[0]
          
          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

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

            On 20/10/2012 at 16:08, xxxxxxxx wrote:

            Hey Lennart,

            Thank you for your replay.

            The xray problem is very bitter. Why does editor/render on/off working but not this. 😞

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

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

              On 23/10/2012 at 00:38, xxxxxxxx wrote:

              Did you try setting the Xray option on "op" instead of on your virtual object?

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