[ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?

I'm having difficulty modifying settings for the AT in the python SDK, more precisely on how to only set positioning with control points to the adjustment constraints. Do you have an example for that?

I'm always getting 2 methods instead of only having the control points one.

Thank you

Parents
  • I'm not able to reproduce this issue, can you share you script? I have good results using the following functions:

    blockAT=ccmasterkernel.Block(project)
    project.addBlock(blockAT)
    blockAT.setBlockTemplate(ccmasterkernel.BlockTemplate.Template_adjusted, block)
    settings=blockAT.getAT().getSettings()
    settings.adjustmentConstraints=ccmasterkernel.AdjustmentAndPositioning.Positioning_ControlPoints
    print(settings.adjustmentConstraints)
    blockAT.getAT().setSettings(settings)
    blockAT.getAT().submitProcessing()

    Thanks

Reply
  • I'm not able to reproduce this issue, can you share you script? I have good results using the following functions:

    blockAT=ccmasterkernel.Block(project)
    project.addBlock(blockAT)
    blockAT.setBlockTemplate(ccmasterkernel.BlockTemplate.Template_adjusted, block)
    settings=blockAT.getAT().getSettings()
    settings.adjustmentConstraints=ccmasterkernel.AdjustmentAndPositioning.Positioning_ControlPoints
    print(settings.adjustmentConstraints)
    blockAT.getAT().setSettings(settings)
    blockAT.getAT().submitProcessing()

    Thanks

Children