CINEVERSITY

    Maxon Logo
    • Login
    • Search
    • Recent
    • Popular
    • Users
    • Groups

    Extracting the name of a material

    Question & Answers
    2
    2
    583
    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.
    • M
      MAVEO last edited by

      Hey
      I have a bit of a advanced idea: We name our materials like the following:

      MaterialID_Materialname (f.e. 4_Glass)

      So instead of manually typing in the Material ID every time I do a new material, I kinda want it to be automated, by extracting the number of the name to use as the MaterialID.

      Is there away to get the string of a material in the Node Editor and delete everything from the underscore starting?

      1 Reply Last reply Reply Quote
      • Dr. Sassi
        Dr. Sassi last edited by Dr. Sassi

        Hi MAVEO,

        This would be a request for Maxon,
        https://www.maxon.net/en/support-center
        "Share Your Ideas"

        I have tried to create it with XPresso, but the Output Node does not have a "Relative" reference setting option. This means it is more work, as you must drag the Output node each time into the XPresso Node.
        Image to show a single Material set up.
        Screenshot 2024-07-15 at 10.17.21 AM.jpg

        Perhaps this could be done with a Python script, which would be a direct question for the Developer Forum, with the same URL as above.

        If you prepare materials right now, I think it is a good practice to start with leading zeros (e.g., 001, 002) to make the process easier.

        In short, I am not aware of an option to do that with the latest design of the RS Nodes.

        All the best

        Dr. Sassi Sassmannshausen Ph.D.
        Cinema 4D mentor since 2004
        Member of VES, DCS.

        1 Reply Last reply Reply Quote
        • First post
          Last post