The slider tool returns False.
-
Hi:
I try to use sliding tool, but utils.SendModelingCommand always returns False, whether edge mode, or point mode.May I ask why this is?
import c4d from c4d import utils def main(): settings = c4d.BaseContainer() settings[c4d.MDTA_SLIDE_OFFSET] = 5 settings[c4d.MDTA_SLIDE_SHIFT] = 0 settings[c4d.MDTA_SLIDE_OFFSET_MODE] = 0 settings[c4d.MDTA_SLIDE_OFFSET_LIMIT] = 0 settings[c4d.MDTA_SLIDE_CURVATURE] = 1 settings[c4d.MDTA_SLIDE_CLONE] = 0 settings[c4d.MDATA_INTERACTIVE] = 1 utils.SendModelingCommand(command = c4d.ID_MODELING_SLIDE_TOOL, list = [op], mode = c4d.MODELINGCOMMANDMODE_EDGESELECTION, bc = settings, doc = doc) op.Message(c4d.MSG_UPDATE) c4d.EventAdd() if __name__=='__main__': main()
-
Hi @x_nerve the ID used is not the correct one you should use:
431000021
for edge mode and431000030
for point mode, unfortunately, there are no symbols for these tools.Cheers,
Maxime.