Solved Change Hair preferences with Python API

Hello everybody! There is any idea how it possible to change Hair preferences using python api?
Using Script Log i get this code. But its not working unlike other preferences :unamused:

import c4d

def main():
    def tool():
        return c4d.plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)

    def object():
        return doc.GetActiveObject()

    def tag():
        return doc.GetActiveTag()

    def renderdata():
        return doc.GetActiveRenderData()

    def prefs(id):
        return c4d.plugins.FindPlugin(id, c4d.PLUGINTYPE_PREFS)

    tag()[c4d.HAIR_PREFS_SETUP_TOCHILD] = True #why tag() unlike prefs(id)???
    prefs(465001634)[c4d.PREF_BROWSER_SHOWFOLDER] = False #this preferences parameter works

if __name__=='__main__':


Checkout my python tutorials, plugins, scripts, xpresso presets and more

Hi @mikeudin, I'm afraid there is a limitation in the Python API(PrefDialogObject is missing in Python) that prevents to change the hair preferences.


We all have to learn C++ :sweat_smile: