Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/a/cadnano2-HEAD/views/solidview/halfcylinderhelixnode.py   cadnano2(Download)
    unitFn.setMin(0.0)
    unitFn.setMax(math.pi)
    unitFn.setStorable(True)
    HalfCylinderHelixNode.rotationOffsetAttr = unitFn.create('rotationOffset',
                                    'rotoff',
                                    OpenMaya.MFnUnitAttribute.kAngle,
                                    math.pi / 6)
    unitFn.setMin(-2 * math.pi)
    unitFn.setMax(2 * math.pi)
    unitFn.setStorable(True)
    unitFn.setMin(-2 * math.pi)
    unitFn.setMax(2 * math.pi)
    unitFn.setStorable(True)
 
    HalfCylinderHelixNode.addAttribute(HalfCylinderHelixNode.outputMesh)

src/o/p/openPSD-HEAD/plugins/src/angleReader.py   openPSD(Download)
    angleReader.outAngle_nAttr = uAttr.create("outAngle", "oa", om.MFnUnitAttribute.kAngle, 0.0)
    uAttr.setWritable(False)
    uAttr.setStorable(False)
    angleReader.addAttribute(angleReader.outAngle_nAttr)