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
    1. Maxon Developers Forum
    2. Passion3D
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 19
    • Posts 80
    • Best 5
    • Controversial 0
    • Groups 0

    Posts made by Passion3D

    • RE: XPresso: Modify UserData

      @zipit work fine 👍 thanks a lot

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso: Modify UserData

      @zipit
      In this test, the modification works well, but the cycle button is not updated.
      I added c4d.EventAdd(), but in this case it runs in a loop 🙂
      Test2.c4d

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso: Modify UserData

      @zipit Thanks. I test and keep you informed 😉

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso: Modify UserData

      Test.c4d

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • XPresso: Modify UserData

      I have a UserData "MyData" of type Button Cycle and i would like to modify its contents, in python node

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso python node

      Thanks @PluginStudent 😉

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • XPresso python node

      In a python node, is it possible to know how many inputs and outputs there are? and their name?

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Change a rendering parameter in python xpresso node

      @Cairyn Thanks, all work fine for this module 👍

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Change a rendering parameter in python xpresso node

      @PluginStudent
      Your link is about the creation of a material (and that I already know how to do), not a render parameter.

      But I have tound the solution.

          shader = firstVP[c4d.VP_VRAYBRIDGE_ENVIRONMENT_BACKGROUNDTEX]
          if shader == None:
              shader = c4d.BaseList2D(c4d.Xbitmap)
              firstVP.InsertShader(shader)
              firstVP.GetDataInstance()[c4d.VP_VRAYBRIDGE_ENVIRONMENT_BACKGROUNDTEX] = shader
          shader[c4d.BITMAPSHADER_FILENAME] = "approaching_storm_4k.hdr"
      
      

      Other question, how to remove it? I don't have found "DeleteShader" or "RemoveShader"🤔

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Change a rendering parameter in python xpresso node

      What's wrong in my code?

      import c4d
      
      def main():
          # check doc
          if doc is None:
              return
      
          # get the active RenderData
          activeRD = doc.GetActiveRenderData()
          if activeRD is None:
              return
      
          # get the first BaseVideoPost (Active Render)
          firstVP = activeRD.GetFirstVideoPost()
          if firstVP is None:
              return
          shader = firstVP[c4d.VP_VRAYBRIDGE_ENVIRONMENT_BACKGROUNDTEX]
          if shader == None:
              shader = c4d.BaseShader(c4d.Xbitmap)
              firstVP.GetDataInstance()[c4d.VP_VRAYBRIDGE_ENVIRONMENT_BACKGROUNDTEX] = shader
          shader[c4d.BITMAPSHADER_FILENAME] = "approaching_storm_4k.hdr"
          c4d.EventAdd()
      
      if __name__=='__main__':
          main()
      
      
      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Change a rendering parameter in python xpresso node

      Thanks to both of you 😉 I'll test all this tomorrow and let you know the result.

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • Change a rendering parameter in python xpresso node

      Hi all

      How to change a rendering parameter for an external engine.
      For example for VRay:
      I know the pluginID. I would like to be able to change the environment parameter from a python xpresso node.

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso: enable/disable user data

      Work fine 🙂
      Thanks a lot Manuel

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: XPresso: enable/disable user data

      Here's the test I took. By putting my script in a python tag on my object, it works. But in an xpresso python node, nothing happens.
      Test.c4d

      If you delete the tag, keeping only the xpresso node, it doesn't work.

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • XPresso: enable/disable user data

      Hi all

      Is it possible to deactivate user data or a tab from xpresso?

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Force refresh Xpresso

      Hi
      I'll need that job too. To be able to refresh xpresso without having to provoke it with a mouse click.

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: detect the selection of an object

      @C4DS
      Although a solution has not been given (as I wish to do), explanations have been provided. I have therefore considered it resolved.
      For IRL reasons, I could not do so. I will be able to get back to it, and if I find THE solution, I will post it 😉

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D
    • RE: Create VRay material

      Hi Sebastian,

      Thank you for your response. I found the identifiers of the different VRay materials in the file c4d_symbol.h.
      Everything works.

      posted in Cinema 4D SDK
      Passion3DP
      Passion3D