createAttribute¶
-
cgp_maya_utils.scene.createAttribute(data, **extraData)¶ create an attribute using an attribute data dictionary
Parameters: - data (dict) – data used to create the attribute
- extraData (any) – extraData used to update the data dictionary before creating the attribute
Returns: the created attribute
Return type: cgp_maya_utils.scene.Attribute,cgp_maya_utils.scene.BoolAttribute,cgp_maya_utils.scene.ByteAttribute,cgp_maya_utils.scene.CompoundAttribute,cgp_maya_utils.scene.Double3Attribute,cgp_maya_utils.scene.DoubleAngleAttribute,cgp_maya_utils.scene.DoubleAttribute,cgp_maya_utils.scene.DoubleLinearAttribute,cgp_maya_utils.scene.EnumAttribute,cgp_maya_utils.scene.Float3Attribute,cgp_maya_utils.scene.FloatAttribute,cgp_maya_utils.scene.LongAttribute,cgp_maya_utils.scene.MatrixAttribute,cgp_maya_utils.scene.MessageAttribute,cgp_maya_utils.scene.NumericAttribute,cgp_maya_utils.scene.ShortAttribute,cgp_maya_utils.scene.StringAttribute,cgp_maya_utils.scene.TDataCompoundAttribute,cgp_maya_utils.scene.TimeAttribute