Snapping Functions not working [SOLVED]
-
On 08/06/2015 at 03:37, xxxxxxxx wrote:
Hello,
is it possible that the snapping funtions are still partly broken?
This Code is not working. Or am I doing something wrong? The Quantize Part is working. But I cant set the BC for the snapping settings.import c4d from c4d.modules import snap def main() : bc = snap.GetSnapSettings(doc) bc[c4d.SNAP_SETTINGS_MODE] = c4d.SNAP_SETTINGS_MODE_3D bc[c4d.SNAPMODE_POINT]=True bc[c4d.SNAPMODE_EDGE]=False bc[c4d.SNAPMODE_POLYGON]=False snap.SetSnapSettings(doc, bc) snap.SetQuantizeStep(doc, None, c4d.QUANTIZE_SCALE, 0.5) snap.SetQuantizeStep(doc, None, c4d.QUANTIZE_MOVE,25) c4d.EventAdd() if __name__=='__main__': main()
-
On 08/06/2015 at 05:40, xxxxxxxx wrote:
I got the right code now. Solved it for me. But the SDK example needs to be changed.
c4d.CallCommand(c4d.SNAP_SETTINGS_3D)
snap.EnableSnap(True, doc, c4d.SNAPMODE_POINT)
snap.EnableSnap(False, doc, c4d.SNAPMODE_EDGE)
snap.EnableSnap(False, doc, c4d.SNAPMODE_POLYGON)
snap.EnableSnap(False, doc, c4d.SNAPMODE_SPLINE)
snap.EnableSnap(False, doc, c4d.SNAPMODE_AXIS)
snap.EnableSnap(False, doc, c4d.SNAPMODE_INTERSECTION)
snap.EnableSnap(False, doc, c4d.SNAPMODE_MIDPOINT)
snap.EnableSnap(False, doc, c4d.SNAPMODE_WORKPLANE)
snap.EnableSnap(False, doc, c4d.SNAPMODE_GUIDE) -
On 08/06/2015 at 07:31, xxxxxxxx wrote:
Hi,
Thanks for reporting this issue in the Python documentation. The example for the use of the snap module will be changed.