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

    Python Weight Painting Brush Plugin Questions

    Cinema 4D SDK
    python 2024
    2
    2
    465
    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.
    • B
      BretBays
      last edited by

      Howdy,

      I have some scripts that manipulate joint weighting, and one of them I would like to maybe push myself towards trying to make it a brush type plugin...thing. Unfortunately, I don't really know where to begin with that so I have some questions for getting started.

      1. What plugin type should this be? Would it be a SculptBrushToolData or no since it wouldn't be actually affecting or manipulating the points on the mesh themselves?

      2. If it shouldn't be SculptBrushToolData, then what plugin type should it be?

      If anyone can point me in the right direction for where to being with some of that, it would be greatly appreciated. My idea basically just needs to get whatever verts are within the radius of the brush and then run the command, and potentially continue to run the command. So It would likely have a radius, no falloff, and then possibly a checkbox or two for some specific flags.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @BretBays this is correct, if you want to make a Brush the easiest way is to register a SculptBrushToolData , you can find examples in Python in Github or in C++ in Github.

        SculptBrushToolData is derived from DescriptionToolData, meaning they can have a description visible in the attribute manager and therefor you can add your own checkbox if needed.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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