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

    Symbols in r12

    PYTHON Development
    0
    5
    1.1k
    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 23/03/2011 at 07:25, xxxxxxxx wrote:

      My script have error in R12 how i fix it
      problem with Symbols

      import c4d  
      import os  
      from c4d  import documents,storage  
      from c4d import symbols as sy  
      #get Variable    
      doc = documents.GetActiveDocument() 
      rd = doc.GetActiveRenderData() 
      sf = (rd[sy.RDATA_FRAMEFROM]) 
      ef = (rd[sy.RDATA_FRAMETO])

      i want get frame start and end frame with Int

      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 23/03/2011 at 08:54, xxxxxxxx wrote:

        Hi cglism,

        the symbols module was part of Py4D and it was removed in R12.
        You can simply use "import c4d    c4d.YOUR_SYMBOL"

        Cheers, Sebastian

        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 23/03/2011 at 09:53, xxxxxxxx wrote:

          nice to see you again sebastian
          thank you 😉

          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 23/03/2011 at 12:23, xxxxxxxx wrote:

            i get variable form Frame Start in Render Setting but show
            <c4d.BaseTime object at 0x0000000D6760D8>
            how i get Frame with Int

            import c4d
            from c4d  import documents,storage 
            doc = documents.GetActiveDocument() 
            rd = doc.GetActiveRenderData() 
            sf = (rd[c4d.RDATA_FRAMEFROM])
            print sf

            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 23/03/2011 at 12:53, xxxxxxxx wrote:

              ok i find fps for fixed-*- Tongue it work

              import c4d
              from c4d  import documents,storage
              fps = doc.GetFps()
              rd = doc.GetActiveRenderData() 
              sf = (rd[c4d.RDATA_FRAMEFROM]).GetFrame(fps)
              ef = (rd[c4d.RDATA_FRAMETO]).GetFrame(fps)
              print sf,ef

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