Cool beans!.. Yes, first tip commented 1012 and 1597 as they seem to double in 1013 and 1598 “else” statement and it works!. Thanks… ( Maybe it doesn’t matter if code is doubled in Python? so leaving 1012 and 1597 won’t do anything.
This is what i added to PME menu for Dyntopo now…
bpy.ops.sculpt.dynamic_topology_toggle()
I suspect there needs to be some more code to this to work when the state is not specified?
I was using another type of codesnippet in 2.79 but that didn’t work at all.