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

    Get BaseView instance ?

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 804 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 09/06/2011 at 06:58, xxxxxxxx wrote:

      Hi,

      I don't understand how to get the current BaseView instance.
      Any ideas ?

      Thanks,
      Niklas

      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 09/06/2011 at 07:51, xxxxxxxx wrote:

        I'm not sure if I understand what you're asking for.
        Is this what you need?:

        bd = doc.GetActiveBaseDraw()    
              
         bd[c4d.BASEDRAW_DATA_SDISPLAYACTIVE]=0      // shading mode attribute  
         bd[c4d.BASEDRAW_DATA_WDISPLAYACTIVE]= 1     // wire mode attribute  
         bd[c4d.BASEDRAW_DATA_USEPROPERTIESACTIVE]=1 //Display Tags chkBox attribute  
         //etc...     
         EventAdd();//Update all the changes
        

        -ScottA

        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 09/06/2011 at 07:52, xxxxxxxx wrote:

          Unfortunately, not. In your example, you set some options to the current BaseDraw instance. But what I want is the current BaseView instance.

          Search for "BaseView" in the Py4D SDK. 🙂

          Thanks anyway,
          Niklas

          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 10/06/2011 at 04:09, xxxxxxxx wrote:

            BaseDraw inherits from BaseView so this should be instance you are looking for. Cheers, Sebastian

            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 10/06/2011 at 04:44, xxxxxxxx wrote:

              Ah haha lol didn't think of the inheritance 😄
              Thanks 😉

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