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__':
main()
Thanks!