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. simonator420
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    simonator420

    @simonator420

    1
    Reputation
    7
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    simonator420 Unfollow Follow

    Best posts made by simonator420

    • RE: HideElement in Cinema 4D 2024

      Thank you very much @i_mazlov for your insight! It turns out that the issue was due to my group not being wrapped in a parent group. Interestingly, this setup somehow worked in 2023, but it seems the changes made in Cinema 4D between 2023 and 2024 impacted this behavior.

      Best,

      Simon

      posted in Cinema 4D SDK
      S
      simonator420

    Latest posts made by simonator420

    • RE: HideElement in Cinema 4D 2024

      Thank you very much @i_mazlov for your insight! It turns out that the issue was due to my group not being wrapped in a parent group. Interestingly, this setup somehow worked in 2023, but it seems the changes made in Cinema 4D between 2023 and 2024 impacted this behavior.

      Best,

      Simon

      posted in Cinema 4D SDK
      S
      simonator420
    • HideElement in Cinema 4D 2024

      Hello,

      In versions of Cinema 4D up to 2024, I successfully used HideElement for a Group section with this code:

      self.HideElement(ID.DIALOG_PREVIEW_GROUP, True)
      

      It effectively hid the elements within the group as expected. However, since updating to Cinema 4D 2024, the same command results in a black square appearing instead of hiding the group elements. Is there any way to solve this?

      Attached are two images for clarity: the first displays the functionality in versions up to 2024, and the second shows the issue encountered in the 2024 version.

      material_preview.png material_preview (1).png

      posted in Cinema 4D SDK 2024 python
      S
      simonator420
    • Redshift Standard Material base Properties

      Hi,

      I am trying to insert the full_path into "Load texture..." into Redshift Standard Material base color but all I got so far is this code. Could you help me solve this?

      full_path = os.path.join(folder_path, file)
      
      rsNodeSpaceID: maxon.Id = maxon.Id("com.redshift3d.redshift4c4d.class.nodespace")
      textureNodeID: maxon.Id = maxon.Id("com.redshift3d.redshift4c4d.nodes.core.texturesampler")
      textureNodePortID: maxon.String = "com.redshift3d.redshift4c4d.nodes.core.texturesampler.tex0"
      textureNodePathPortID: maxon.String = "path"textureColorOutPortID: maxon.String = "com.redshift3d.redshift4c4d.nodes.core.texturesampler.outcolor"
      
      mat: c4d.BaseMaterial = c4d.BaseMaterial(c4d.Mmaterial)
      nodeMaterial: c4d.NodeMaterial = mat.GetNodeMaterialReference()
      graph: maxon.GraphModelRef = nodeMaterial.CreateDefaultGraph(rsNodeSpaceID)
      
      doc.InsertMaterial(mat)
      
      result: list[maxon.GraphNode] = []
      maxon.GraphModelHelper.FindNodesByAssetId(graph, outputNodeID, True, result)
      
      outputNode: maxon.GraphNode = result[0]
      
      with graph.BeginTransaction() as transaction:
      	textureNode: maxon.GraphNode = graph.AddChild(maxon.Id(), textureNodeID)
      	pathPort: maxon.GraphNode = textureNode.GetInputs().FindChild(textureNodePortID).FindChild(textureNodePathPortID)
      	pathPort.SetDefaultValue(maxon.Url(full_path))
      	textureColorOutPort: maxon.GraphNode = textureNode.GetOutputs().FindChild(textureColorOutPortID)
      	colorInputPortInOutputNode : maxon.GraphNode = outputNode.GetInputs().FindChild(colorInputPortInOutputNodeId)
      	textureColorOutPort.Connect(colorInputPortInOutputNode)
      	transaction.Commit()
      	
      

      321c714b-6cdb-4038-9100-8aa871aef503-image.png

      posted in Bugs
      S
      simonator420
    • TreeView DropDown Menu

      Hi, it may be a foolish task but I would like to have different value in each row after I make the selection in the dropdown menu. This way it displays same value for every row. Could you help me with that?

      class ListView(c4d.gui.TreeViewFunctions):
       
          def __init__(self):
              self.selectedEntry = 1000
      
          def GetDropDownMenu(self, root, userdata, obj, lColumn, menuInfo):
              doc = c4d.documents.GetActiveDocument()
              menuInfo["entry"] = self.selectedEntry
              menuInfo["menu"][1000] = "Material 1"
              menuInfo["menu"][1001] = "Material 2"
              menuInfo["menu"][1002] = "Material 3"
              menuInfo["menu"][1003] = "Material 4"
              menuInfo["state"] = int(menuInfo["state"])
      
          def SetDropDownMenu(self, root, userdata, obj, lColumn, entry):
              self.selectedEntry = entry
              print(f"User selected the entry with the ID: {entry}")
      
      
      posted in Cinema 4D SDK
      S
      simonator420
    • Inserting items into dropbox to TreeView

      Hi,
      could you please help with adding options to dropbox in column material in treeview?

      Thank you!

      Bez názvu-1.png

      posted in Cinema 4D SDK
      S
      simonator420