On 22/10/2014 at 04:11, xxxxxxxx wrote:
Hi guys.
I'm trying to figure out a way to make a script button for enabling and disabling the new Mesh-Check options.
So far I'm pretty sure it belongs to the snap-module as I can read the settings from the corresponding basecontainer. But setting them seems to be not possible:
import c4d
from c4d.modules import snap
def main() :
\> # Get snap settings
\> bc = snap.GetSnapSettings(doc)
\>
\> bc[c4d.MESH_CHECK_ENABLED] = 0
\>
\> snap.SetSnapSettings(doc, bc)
\>
\>
\>
if __name__=='__main__':
main()
I tried different the options, for example setting the colors but nothing works. Is this simply not supported in Python or am I doing something wrong. Setting the snap-settings themselves works just fine.
Cheers
Phil