def __init__( self ) :

		IECore.Op.__init__( self, "Bakes transforms from one object onto another.",
			IECoreMaya.DAGPathParameter(
				name = "result",
				description = "The name of the baked transform",
				defaultValue = "",
				allowEmptyString = True,
			)
		)

		self.parameters().addParameters(
			[
				IECoreMaya.DAGPathParameter(
					name = "src",
					description = "The source transform node to bake from.",
					defaultValue = "",
					check = IECoreMaya.DAGPathParameter.CheckType.MustExist,
					allowEmptyString = False,
				),
				IECoreMaya.DAGPathParameter(
					name = "dst",
					description = "The destination transform node to apply the bake to. If this doesn't exist"
						"then it'll be created for you.",
					defaultValue = "",
					check = IECoreMaya.DAGPathParameter.CheckType.DontCare,
					allowEmptyString = False,
				),
				IECore.FrameListParameter(
					name = "frames",
					description = "The frame range over which to perform the bake."
						"Keyframes will be made at every frame in this range.",
					defaultValue = IECoreMaya.PlaybackFrameList( IECoreMaya.PlaybackFrameList.Range.Playback ),
				),
				IECore.BoolParameter(
					name = "lock",
					description = "If this is specified then the transform attributes which are"
						"keyframed on the destination object are also locked.",
					defaultValue = False,
				),
			]
		)
Пример #2
0
    def test(self):

        p1 = IECoreMaya.DAGPathVectorParameter("n", "d")
        p2 = IECoreMaya.DAGPathParameter("n", "d")