Announcement

Collapse
No announcement yet.

Missing Materials in Material Manager

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Missing Materials in Material Manager

    Hello, I am missing a lot of Materials in the Manager. They are not shown there from one moment to the other. They are on the object and I can select them in the material editor, but they are not shown in the Material manager, only a few are visible....? I have no solo button active or not choosen the wrong material layer...
    It is also only in one scene.... Doies anybody know what happening here or how I can make them visible again in the material manager... would be very appreciated....
    I assume it is maybe not vray specific thing, but the material were originally from a vrscene... and as mentioned it worked a while ago..
    Attached Files

  • #2
    Hey haniel1107, from your screenshot, there seems to be a message above the manager "Plugin not found". Is it possible you are using some kind of a plugin that may hide or manage materials, and that plugin got lost?

    Apart from that, if they were hidden by some plugin, I think it may be fairly easy to show them with a python script.
    Deyan Hadzhiev
    Developer
    chaos.com

    Comment


    • #3
      Originally posted by deyan.hadzhiev View Post
      Hey haniel1107, from your screenshot, there seems to be a message above the manager "Plugin not found". Is it possible you are using some kind of a plugin that may hide or manage materials, and that plugin got lost?

      Apart from that, if they were hidden by some plugin, I think it may be fairly easy to show them with a python script.
      Hi deyan.hadzhiev, the plugin was select Material which doesn't work in 2025, but in 2024, but the same result there, so I would say it's not the missing plugin.
      Do you have an idea, what kind of script could help, as I have no idea about phyton...

      THANKS!!

      Comment


      • #4
        Well, if you had saved the scene where the plugin worked and it had "hidden" some of the materials, the way the plugin hides them probably got "saved" with the scene and works even without the plugin present. Usually, hiding materials is achieved by raising their hide NBIT, so something like this should work if the missing plugin hides the materials using the bits:

        Code:
        import c4d
        
        def main():
            activeDocument = c4d.documents.GetActiveDocument()
            docMaterial: c4d.BaseMaterial = activeDocument.GetFirstMaterial()
            while docMaterial is not None:
                print("Showing material {}".format(docMaterial.GetName()))
                docMaterial.ChangeNBit(c4d.NBIT_OHIDE, c4d.NBITCONTROL_CLEAR)
                docMaterial=docMaterial.GetNext()
            # Update the document
            c4d.EventAdd()
        
        if __name__=='__main__':
            main()​
        Deyan Hadzhiev
        Developer
        chaos.com

        Comment


        • #5
          Hi deyan.hadzhiev, thanks a lot! The script didn't show them up, but it was as you said. I openend the file in 2024 again and changed a setting in the material filter!!!
          Thanks, you saved my day!!!

          Comment

          Working...
          X