cgkit-commits Mailing List for Python Computer Graphics Kit
Brought to you by:
mbaas
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(54) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(40) |
Feb
(69) |
Mar
(43) |
Apr
(81) |
May
(92) |
Jun
(56) |
Jul
(35) |
Aug
(59) |
Sep
(41) |
Oct
(26) |
Nov
(15) |
Dec
(12) |
| 2006 |
Jan
(20) |
Feb
(23) |
Mar
(47) |
Apr
(87) |
May
(43) |
Jun
(7) |
Jul
(20) |
Aug
(5) |
Sep
(29) |
Oct
(83) |
Nov
(34) |
Dec
(16) |
| 2007 |
Jan
(11) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
(3) |
Feb
(24) |
Mar
(2) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(4) |
Sep
(8) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2009 |
Jan
(8) |
Feb
(22) |
Mar
(5) |
Apr
(10) |
May
(9) |
Jun
(8) |
Jul
(2) |
Aug
(13) |
Sep
(10) |
Oct
|
Nov
|
Dec
(1) |
| 2010 |
Jan
(3) |
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(3) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(4) |
Dec
(5) |
| 2013 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(1) |
2
(1) |
3
|
4
(2) |
5
(3) |
6
|
|
7
(2) |
8
|
9
(3) |
10
|
11
|
12
|
13
|
|
14
|
15
(5) |
16
(1) |
17
(3) |
18
|
19
|
20
|
|
21
|
22
|
23
(4) |
24
|
25
|
26
(13) |
27
|
|
28
(1) |
29
(2) |
30
(2) |
31
|
|
|
|
|
From: <mb...@us...> - 2006-05-30 15:50:38
|
Revision: 7 Author: mbaas Date: 2006-05-30 08:50:26 -0700 (Tue, 30 May 2006) ViewCVS: http://svn.sourceforge.net/cgkit/?rev=7&view=rev Log Message: ----------- Added some ignore entries Modified Paths: -------------- maya/trunk/maya_wrapper/maya_sdk.h maya/trunk/maya_wrapper/src_aux/creatorfuncs.cpp.h Property Changed: ---------------- maya/trunk/maya_wrapper/ Property changes on: maya/trunk/maya_wrapper ___________________________________________________________________ Name: svn:ignore - config.cfg build dist query.log decoration.log cache html *.pyc MANIFEST + config.cfg build dist *.log cache html *.pyc MANIFEST env.sh Modified: maya/trunk/maya_wrapper/maya_sdk.h =================================================================== --- maya/trunk/maya_wrapper/maya_sdk.h 2006-05-30 15:47:35 UTC (rev 6) +++ maya/trunk/maya_wrapper/maya_sdk.h 2006-05-30 15:50:26 UTC (rev 7) @@ -1,238 +1,238 @@ -#include <maya/M3dView.h> -#include <maya/MAngle.h> -#include <maya/MAnimControl.h> -#include <maya/MAnimCurveChange.h> -#include <maya/MAnimCurveClipboard.h> -#include <maya/MAnimCurveClipboardItem.h> -#include <maya/MAnimCurveClipboardItemArray.h> -#include <maya/MAnimUtil.h> -#include <maya/MArgDatabase.h> -#include <maya/MArgList.h> -#include <maya/MArgParser.h> -#include <maya/MArrayDataBuilder.h> -#include <maya/MArrayDataHandle.h> -#include <maya/MAttributeIndex.h> -#include <maya/MAttributeSpec.h> -#include <maya/MAttributeSpecArray.h> -#include <maya/MBoundingBox.h> -#include <maya/MClothConstraint.h> -#include <maya/MColor.h> -#include <maya/MColorArray.h> -#include <maya/MCommandResult.h> -#include <maya/MComputation.h> -#include <maya/MDGContext.h> -#include <maya/MDGModifier.h> -#include <maya/MDagModifier.h> -#include <maya/MDagPath.h> -#include <maya/MDagPathArray.h> -#include <maya/MDataBlock.h> -#include <maya/MDataHandle.h> -#include <maya/MDeviceChannel.h> -#include <maya/MDeviceState.h> -#include <maya/MDistance.h> -#include <maya/MDoubleArray.h> -#include <maya/MDrawInfo.h> -#include <maya/MDrawProcedureBase.h> -#include <maya/MDrawRequest.h> -#include <maya/MDrawRequestQueue.h> -#include <maya/MDynSweptLine.h> -#include <maya/MDynSweptTriangle.h> -#include <maya/MEulerRotation.h> -#include <maya/MEvent.h> -#include <maya/MFeedbackLine.h> -#include <maya/MFileIO.h> -#include <maya/MFileObject.h> -#include <maya/MFloatArray.h> -#include <maya/MFloatMatrix.h> -#include <maya/MFloatPoint.h> -#include <maya/MFloatPointArray.h> -#include <maya/MFloatVector.h> -#include <maya/MFloatVectorArray.h> -#include <maya/MFn.h> -#include <maya/MFnAirField.h> -#include <maya/MFnAmbientLight.h> -#include <maya/MFnAnimCurve.h> -#include <maya/MFnAnisotropyShader.h> -#include <maya/MFnAreaLight.h> -#include <maya/MFnArrayAttrsData.h> -#include <maya/MFnAttribute.h> -#include <maya/MFnBase.h> -#include <maya/MFnBlendShapeDeformer.h> -#include <maya/MFnBlinnShader.h> -#include <maya/MFnCamera.h> -#include <maya/MFnCharacter.h> -#include <maya/MFnCircleSweepManip.h> -#include <maya/MFnClip.h> -#include <maya/MFnComponent.h> -#include <maya/MFnComponentListData.h> -#include <maya/MFnCompoundAttribute.h> -#include <maya/MFnCurveSegmentManip.h> -#include <maya/MFnDagNode.h> -#include <maya/MFnData.h> -#include <maya/MFnDependencyNode.h> -#include <maya/MFnDirectionManip.h> -#include <maya/MFnDirectionalLight.h> -#include <maya/MFnDiscManip.h> -#include <maya/MFnDistanceManip.h> -#include <maya/MFnDoubleIndexedComponent.h> -#include <maya/MFnDragField.h> -#include <maya/MFnDynSweptGeometryData.h> -#include <maya/MFnEnumAttribute.h> -#include <maya/MFnExpression.h> -#include <maya/MFnField.h> -#include <maya/MFnFreePointTriadManip.h> -#include <maya/MFnGenericAttribute.h> -#include <maya/MFnGeometryData.h> -#include <maya/MFnGeometryFilter.h> -#include <maya/MFnGravityField.h> -#include <maya/MFnHikEffector.h> -#include <maya/MFnIkEffector.h> -#include <maya/MFnIkHandle.h> -#include <maya/MFnIkJoint.h> -#include <maya/MFnIkSolver.h> -#include <maya/MFnIntArrayData.h> -#include <maya/MFnKeyframeDelta.h> -#include <maya/MFnKeyframeDeltaAddRemove.h> -#include <maya/MFnKeyframeDeltaBlockAddRemove.h> -#include <maya/MFnKeyframeDeltaBreakdown.h> -#include <maya/MFnKeyframeDeltaInfType.h> -#include <maya/MFnKeyframeDeltaMove.h> -#include <maya/MFnKeyframeDeltaScale.h> -#include <maya/MFnKeyframeDeltaTangent.h> -#include <maya/MFnKeyframeDeltaWeighted.h> -#include <maya/MFnLambertShader.h> -#include <maya/MFnLattice.h> -#include <maya/MFnLatticeDeformer.h> -#include <maya/MFnLayeredShader.h> -#include <maya/MFnLight.h> -#include <maya/MFnLightDataAttribute.h> -#include <maya/MFnManip3D.h> -#include <maya/MFnMatrixAttribute.h> -#include <maya/MFnMatrixData.h> -#include <maya/MFnMesh.h> -#include <maya/MFnMessageAttribute.h> -#include <maya/MFnMotionPath.h> -#include <maya/MFnNewtonField.h> -#include <maya/MFnNonAmbientLight.h> -#include <maya/MFnNonExtendedLight.h> -#include <maya/MFnNumericAttribute.h> -#include <maya/MFnNumericData.h> -#include <maya/MFnNurbsCurve.h> -#include <maya/MFnNurbsCurveData.h> -#include <maya/MFnNurbsSurface.h> -#include <maya/MFnNurbsSurfaceData.h> -#include <maya/MFnParticleSystem.h> -#include <maya/MFnPartition.h> -#include <maya/MFnPfxGeometry.h> -#include <maya/MFnPhongEShader.h> -#include <maya/MFnPhongShader.h> -#include <maya/MFnPlugin.h> -#include <maya/MFnPointArrayData.h> -#include <maya/MFnPointLight.h> -#include <maya/MFnPointOnCurveManip.h> -#include <maya/MFnPointOnSurfaceManip.h> -#include <maya/MFnRadialField.h> -#include <maya/MFnReflectShader.h> -#include <maya/MFnRenderLayer.h> -#include <maya/MFnRotateManip.h> -#include <maya/MFnScaleManip.h> -#include <maya/MFnSet.h> -#include <maya/MFnSingleIndexedComponent.h> -#include <maya/MFnSkinCluster.h> -#include <maya/MFnSphereData.h> -#include <maya/MFnSpotLight.h> -#include <maya/MFnStateManip.h> -#include <maya/MFnStringArrayData.h> -#include <maya/MFnStringData.h> -#include <maya/MFnSubd.h> -#include <maya/MFnSubdNames.h> -#include <maya/MFnToggleManip.h> -#include <maya/MFnTransform.h> -#include <maya/MFnTripleIndexedComponent.h> -#include <maya/MFnTurbulenceField.h> -#include <maya/MFnTypedAttribute.h> -#include <maya/MFnUInt64ArrayData.h> -#include <maya/MFnUniformField.h> -#include <maya/MFnUnitAttribute.h> -#include <maya/MFnVectorArrayData.h> -#include <maya/MFnVolumeAxisField.h> -#include <maya/MFnVolumeLight.h> -#include <maya/MFnVortexField.h> -#include <maya/MFnWeightGeometryFilter.h> -#include <maya/MFnWireDeformer.h> -#include <maya/MGlobal.h> -#include <maya/MHardwareRenderer.h> -#include <maya/MIkHandleGroup.h> -#include <maya/MIkSystem.h> -#include <maya/MImage.h> -#include <maya/MIntArray.h> -#include <maya/MItCurveCV.h> -#include <maya/MItDag.h> -#include <maya/MItDependencyGraph.h> -#include <maya/MItDependencyNodes.h> -#include <maya/MItGeometry.h> -#include <maya/MItInstancer.h> -#include <maya/MItMeshEdge.h> -#include <maya/MItMeshFaceVertex.h> -#include <maya/MItMeshPolygon.h> -#include <maya/MItMeshVertex.h> -#include <maya/MItSelectionList.h> -#include <maya/MItSubdEdge.h> -#include <maya/MItSubdFace.h> -#include <maya/MItSubdVertex.h> -#include <maya/MItSurfaceCV.h> -#include <maya/MIteratorType.h> -#include <maya/MLibrary.h> -#include <maya/MLightLinks.h> -#include <maya/MManipData.h> -#include <maya/MMaterial.h> -#include <maya/MMatrix.h> -#include <maya/MObject.h> -#include <maya/MObjectArray.h> -#include <maya/MObjectHandle.h> -#include <maya/MPlug.h> -#include <maya/MPlugArray.h> -#include <maya/MPoint.h> -#include <maya/MPointArray.h> -#include <maya/MProgressWindow.h> -#include <maya/MPxCommand.h> -#include <maya/MPxContext.h> -#include <maya/MPxData.h> -#include <maya/MPxDeformerNode.h> -#include <maya/MPxEmitterNode.h> -#include <maya/MPxFieldNode.h> -#include <maya/MPxFileTranslator.h> -#include <maya/MPxLocatorNode.h> -#include <maya/MPxNode.h> -#include <maya/MPxObjectSet.h> -#include <maya/MPxSpringNode.h> -#include <maya/MQuaternion.h> -#include <maya/MRampAttribute.h> -#include <maya/MRenderData.h> -#include <maya/MRenderLine.h> -#include <maya/MRenderLineArray.h> -#include <maya/MRenderShadowData.h> -#include <maya/MRenderUtil.h> -#include <maya/MRenderView.h> -#include <maya/MSelectInfo.h> -#include <maya/MSelectionList.h> -#include <maya/MSelectionMask.h> -#include <maya/MTypes.h> -#include <maya/MStatus.h> -#include <maya/MString.h> -#include <maya/MStringArray.h> -#include <maya/MSwatchRenderBase.h> -#include <maya/MSyntax.h> -#include <maya/MTesselationParams.h> -#include <maya/MTime.h> -#include <maya/MTimeArray.h> -#include <maya/MTimer.h> -#include <maya/MToolsInfo.h> -#include <maya/MTransformationMatrix.h> -#include <maya/MTrimBoundaryArray.h> -#include <maya/MTypeId.h> -#include <maya/MUintArray.h> -#include <maya/MUint64Array.h> -#include <maya/MVector.h> -#include <maya/MVectorArray.h> -#include <src_aux/_main.h> +#include <maya/M3dView.h> +#include <maya/MAngle.h> +#include <maya/MAnimControl.h> +#include <maya/MAnimCurveChange.h> +#include <maya/MAnimCurveClipboard.h> +#include <maya/MAnimCurveClipboardItem.h> +#include <maya/MAnimCurveClipboardItemArray.h> +#include <maya/MAnimUtil.h> +#include <maya/MArgDatabase.h> +#include <maya/MArgList.h> +#include <maya/MArgParser.h> +#include <maya/MArrayDataBuilder.h> +#include <maya/MArrayDataHandle.h> +#include <maya/MAttributeIndex.h> +#include <maya/MAttributeSpec.h> +#include <maya/MAttributeSpecArray.h> +#include <maya/MBoundingBox.h> +#include <maya/MClothConstraint.h> +#include <maya/MColor.h> +#include <maya/MColorArray.h> +#include <maya/MCommandResult.h> +#include <maya/MComputation.h> +#include <maya/MDGContext.h> +#include <maya/MDGModifier.h> +#include <maya/MDagModifier.h> +#include <maya/MDagPath.h> +#include <maya/MDagPathArray.h> +#include <maya/MDataBlock.h> +#include <maya/MDataHandle.h> +#include <maya/MDeviceChannel.h> +#include <maya/MDeviceState.h> +#include <maya/MDistance.h> +#include <maya/MDoubleArray.h> +#include <maya/MDrawInfo.h> +#include <maya/MDrawProcedureBase.h> +#include <maya/MDrawRequest.h> +#include <maya/MDrawRequestQueue.h> +#include <maya/MDynSweptLine.h> +#include <maya/MDynSweptTriangle.h> +#include <maya/MEulerRotation.h> +#include <maya/MEvent.h> +#include <maya/MFeedbackLine.h> +#include <maya/MFileIO.h> +#include <maya/MFileObject.h> +#include <maya/MFloatArray.h> +#include <maya/MFloatMatrix.h> +#include <maya/MFloatPoint.h> +#include <maya/MFloatPointArray.h> +#include <maya/MFloatVector.h> +#include <maya/MFloatVectorArray.h> +#include <maya/MFn.h> +#include <maya/MFnAirField.h> +#include <maya/MFnAmbientLight.h> +#include <maya/MFnAnimCurve.h> +#include <maya/MFnAnisotropyShader.h> +#include <maya/MFnAreaLight.h> +#include <maya/MFnArrayAttrsData.h> +#include <maya/MFnAttribute.h> +#include <maya/MFnBase.h> +#include <maya/MFnBlendShapeDeformer.h> +#include <maya/MFnBlinnShader.h> +#include <maya/MFnCamera.h> +#include <maya/MFnCharacter.h> +#include <maya/MFnCircleSweepManip.h> +#include <maya/MFnClip.h> +#include <maya/MFnComponent.h> +#include <maya/MFnComponentListData.h> +#include <maya/MFnCompoundAttribute.h> +#include <maya/MFnCurveSegmentManip.h> +#include <maya/MFnDagNode.h> +#include <maya/MFnData.h> +#include <maya/MFnDependencyNode.h> +#include <maya/MFnDirectionManip.h> +#include <maya/MFnDirectionalLight.h> +#include <maya/MFnDiscManip.h> +#include <maya/MFnDistanceManip.h> +#include <maya/MFnDoubleIndexedComponent.h> +#include <maya/MFnDragField.h> +#include <maya/MFnDynSweptGeometryData.h> +#include <maya/MFnEnumAttribute.h> +#include <maya/MFnExpression.h> +#include <maya/MFnField.h> +#include <maya/MFnFreePointTriadManip.h> +#include <maya/MFnGenericAttribute.h> +#include <maya/MFnGeometryData.h> +#include <maya/MFnGeometryFilter.h> +#include <maya/MFnGravityField.h> +#include <maya/MFnHikEffector.h> +#include <maya/MFnIkEffector.h> +#include <maya/MFnIkHandle.h> +#include <maya/MFnIkJoint.h> +#include <maya/MFnIkSolver.h> +#include <maya/MFnIntArrayData.h> +#include <maya/MFnKeyframeDelta.h> +#include <maya/MFnKeyframeDeltaAddRemove.h> +#include <maya/MFnKeyframeDeltaBlockAddRemove.h> +#include <maya/MFnKeyframeDeltaBreakdown.h> +#include <maya/MFnKeyframeDeltaInfType.h> +#include <maya/MFnKeyframeDeltaMove.h> +#include <maya/MFnKeyframeDeltaScale.h> +#include <maya/MFnKeyframeDeltaTangent.h> +#include <maya/MFnKeyframeDeltaWeighted.h> +#include <maya/MFnLambertShader.h> +#include <maya/MFnLattice.h> +#include <maya/MFnLatticeDeformer.h> +#include <maya/MFnLayeredShader.h> +#include <maya/MFnLight.h> +#include <maya/MFnLightDataAttribute.h> +#include <maya/MFnManip3D.h> +#include <maya/MFnMatrixAttribute.h> +#include <maya/MFnMatrixData.h> +#include <maya/MFnMesh.h> +#include <maya/MFnMessageAttribute.h> +#include <maya/MFnMotionPath.h> +#include <maya/MFnNewtonField.h> +#include <maya/MFnNonAmbientLight.h> +#include <maya/MFnNonExtendedLight.h> +#include <maya/MFnNumericAttribute.h> +#include <maya/MFnNumericData.h> +#include <maya/MFnNurbsCurve.h> +#include <maya/MFnNurbsCurveData.h> +#include <maya/MFnNurbsSurface.h> +#include <maya/MFnNurbsSurfaceData.h> +#include <maya/MFnParticleSystem.h> +#include <maya/MFnPartition.h> +#include <maya/MFnPfxGeometry.h> +#include <maya/MFnPhongEShader.h> +#include <maya/MFnPhongShader.h> +#include <maya/MFnPlugin.h> +#include <maya/MFnPointArrayData.h> +#include <maya/MFnPointLight.h> +#include <maya/MFnPointOnCurveManip.h> +#include <maya/MFnPointOnSurfaceManip.h> +#include <maya/MFnRadialField.h> +#include <maya/MFnReflectShader.h> +#include <maya/MFnRenderLayer.h> +#include <maya/MFnRotateManip.h> +#include <maya/MFnScaleManip.h> +#include <maya/MFnSet.h> +#include <maya/MFnSingleIndexedComponent.h> +#include <maya/MFnSkinCluster.h> +#include <maya/MFnSphereData.h> +#include <maya/MFnSpotLight.h> +#include <maya/MFnStateManip.h> +#include <maya/MFnStringArrayData.h> +#include <maya/MFnStringData.h> +#include <maya/MFnSubd.h> +#include <maya/MFnSubdNames.h> +#include <maya/MFnToggleManip.h> +#include <maya/MFnTransform.h> +#include <maya/MFnTripleIndexedComponent.h> +#include <maya/MFnTurbulenceField.h> +#include <maya/MFnTypedAttribute.h> +#include <maya/MFnUInt64ArrayData.h> +#include <maya/MFnUniformField.h> +#include <maya/MFnUnitAttribute.h> +#include <maya/MFnVectorArrayData.h> +#include <maya/MFnVolumeAxisField.h> +#include <maya/MFnVolumeLight.h> +#include <maya/MFnVortexField.h> +#include <maya/MFnWeightGeometryFilter.h> +#include <maya/MFnWireDeformer.h> +#include <maya/MGlobal.h> +#include <maya/MHardwareRenderer.h> +#include <maya/MIkHandleGroup.h> +#include <maya/MIkSystem.h> +#include <maya/MImage.h> +#include <maya/MIntArray.h> +#include <maya/MItCurveCV.h> +#include <maya/MItDag.h> +#include <maya/MItDependencyGraph.h> +#include <maya/MItDependencyNodes.h> +#include <maya/MItGeometry.h> +#include <maya/MItInstancer.h> +#include <maya/MItMeshEdge.h> +#include <maya/MItMeshFaceVertex.h> +#include <maya/MItMeshPolygon.h> +#include <maya/MItMeshVertex.h> +#include <maya/MItSelectionList.h> +#include <maya/MItSubdEdge.h> +#include <maya/MItSubdFace.h> +#include <maya/MItSubdVertex.h> +#include <maya/MItSurfaceCV.h> +#include <maya/MIteratorType.h> +#include <maya/MLibrary.h> +#include <maya/MLightLinks.h> +#include <maya/MManipData.h> +#include <maya/MMaterial.h> +#include <maya/MMatrix.h> +#include <maya/MObject.h> +#include <maya/MObjectArray.h> +#include <maya/MObjectHandle.h> +#include <maya/MPlug.h> +#include <maya/MPlugArray.h> +#include <maya/MPoint.h> +#include <maya/MPointArray.h> +#include <maya/MProgressWindow.h> +#include <maya/MPxCommand.h> +#include <maya/MPxContext.h> +#include <maya/MPxData.h> +#include <maya/MPxDeformerNode.h> +#include <maya/MPxEmitterNode.h> +#include <maya/MPxFieldNode.h> +#include <maya/MPxFileTranslator.h> +#include <maya/MPxLocatorNode.h> +#include <maya/MPxNode.h> +#include <maya/MPxObjectSet.h> +#include <maya/MPxSpringNode.h> +#include <maya/MQuaternion.h> +#include <maya/MRampAttribute.h> +#include <maya/MRenderData.h> +#include <maya/MRenderLine.h> +#include <maya/MRenderLineArray.h> +#include <maya/MRenderShadowData.h> +#include <maya/MRenderUtil.h> +#include <maya/MRenderView.h> +#include <maya/MSelectInfo.h> +#include <maya/MSelectionList.h> +#include <maya/MSelectionMask.h> +#include <maya/MTypes.h> +#include <maya/MStatus.h> +#include <maya/MString.h> +#include <maya/MStringArray.h> +#include <maya/MSwatchRenderBase.h> +#include <maya/MSyntax.h> +#include <maya/MTesselationParams.h> +#include <maya/MTime.h> +#include <maya/MTimeArray.h> +#include <maya/MTimer.h> +#include <maya/MToolsInfo.h> +#include <maya/MTransformationMatrix.h> +#include <maya/MTrimBoundaryArray.h> +#include <maya/MTypeId.h> +#include <maya/MUintArray.h> +#include <maya/MUint64Array.h> +#include <maya/MVector.h> +#include <maya/MVectorArray.h> +#include <src_aux/_main.h> Modified: maya/trunk/maya_wrapper/src_aux/creatorfuncs.cpp.h =================================================================== --- maya/trunk/maya_wrapper/src_aux/creatorfuncs.cpp.h 2006-05-30 15:47:35 UTC (rev 6) +++ maya/trunk/maya_wrapper/src_aux/creatorfuncs.cpp.h 2006-05-30 15:50:26 UTC (rev 7) @@ -1,14677 +1,14677 @@ -/* - Plugin creator functions. - - This file was generated automatically and is included in the file - creatorfuncmanager.cpp. -*/ - -#include <maya/MPxCommand.h> -#include <maya/MPxContext.h> -#include <maya/MPxData.h> -#include <maya/MPxDeformerNode.h> -#include <maya/MPxEmitterNode.h> -#include <maya/MPxFieldNode.h> -#include <maya/MPxFileTranslator.h> -#include <maya/MPxLocatorNode.h> -#include <maya/MPxNode.h> -#include <maya/MPxObjectSet.h> -#include <maya/MPxSpringNode.h> - -static const int MAX_CREATOR_FUNCTIONS = 200; -static const int MAX_CREATESYNTAX_FUNCTIONS = 200; -static const int MAX_INIT_FUNCTIONS = 200; -static boost::python::object pycreatorfuncs[MAX_CREATOR_FUNCTIONS]; -static boost::python::object pycreatesyntaxfuncs[MAX_CREATOR_FUNCTIONS]; -static boost::python::object pyinitfuncs[MAX_INIT_FUNCTIONS]; - -/** - Convert a Python object into a raw pointer. - - The Python object must be an instance of a MPx... class, otherwise - 0 is returned. - - \param obj The Python object that holds a MPx instance - \returns Corresponding C++ object or 0. - */ -void* object2ptr(boost::python::object& obj) -{ - boost::python::extract<MPxCommand&> x0(obj); - if (x0.check()) return &(x0()); - boost::python::extract<MPxContext&> x1(obj); - if (x1.check()) return &(x1()); - boost::python::extract<MPxData&> x2(obj); - if (x2.check()) return &(x2()); - boost::python::extract<MPxDeformerNode&> x3(obj); - if (x3.check()) return &(x3()); - boost::python::extract<MPxEmitterNode&> x4(obj); - if (x4.check()) return &(x4()); - boost::python::extract<MPxFieldNode&> x5(obj); - if (x5.check()) return &(x5()); - boost::python::extract<MPxFileTranslator&> x6(obj); - if (x6.check()) return &(x6()); - boost::python::extract<MPxLocatorNode&> x7(obj); - if (x7.check()) return &(x7()); - boost::python::extract<MPxNode&> x8(obj); - if (x8.check()) return &(x8()); - boost::python::extract<MPxObjectSet&> x9(obj); - if (x9.check()) return &(x9()); - boost::python::extract<MPxSpringNode&> x10(obj); - if (x10.check()) return &(x10()); - return 0; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 0. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0000() -{ - boost::python::object pyres = pycreatorfuncs[0](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 1. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0001() -{ - boost::python::object pyres = pycreatorfuncs[1](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 2. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0002() -{ - boost::python::object pyres = pycreatorfuncs[2](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 3. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0003() -{ - boost::python::object pyres = pycreatorfuncs[3](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 4. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0004() -{ - boost::python::object pyres = pycreatorfuncs[4](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 5. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0005() -{ - boost::python::object pyres = pycreatorfuncs[5](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 6. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0006() -{ - boost::python::object pyres = pycreatorfuncs[6](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 7. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0007() -{ - boost::python::object pyres = pycreatorfuncs[7](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 8. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0008() -{ - boost::python::object pyres = pycreatorfuncs[8](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 9. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0009() -{ - boost::python::object pyres = pycreatorfuncs[9](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 10. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0010() -{ - boost::python::object pyres = pycreatorfuncs[10](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 11. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0011() -{ - boost::python::object pyres = pycreatorfuncs[11](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 12. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0012() -{ - boost::python::object pyres = pycreatorfuncs[12](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 13. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0013() -{ - boost::python::object pyres = pycreatorfuncs[13](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 14. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0014() -{ - boost::python::object pyres = pycreatorfuncs[14](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 15. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0015() -{ - boost::python::object pyres = pycreatorfuncs[15](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 16. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0016() -{ - boost::python::object pyres = pycreatorfuncs[16](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 17. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0017() -{ - boost::python::object pyres = pycreatorfuncs[17](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 18. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0018() -{ - boost::python::object pyres = pycreatorfuncs[18](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 19. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0019() -{ - boost::python::object pyres = pycreatorfuncs[19](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 20. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0020() -{ - boost::python::object pyres = pycreatorfuncs[20](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 21. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0021() -{ - boost::python::object pyres = pycreatorfuncs[21](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 22. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0022() -{ - boost::python::object pyres = pycreatorfuncs[22](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 23. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0023() -{ - boost::python::object pyres = pycreatorfuncs[23](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 24. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0024() -{ - boost::python::object pyres = pycreatorfuncs[24](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 25. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0025() -{ - boost::python::object pyres = pycreatorfuncs[25](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 26. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0026() -{ - boost::python::object pyres = pycreatorfuncs[26](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 27. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0027() -{ - boost::python::object pyres = pycreatorfuncs[27](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 28. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0028() -{ - boost::python::object pyres = pycreatorfuncs[28](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 29. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0029() -{ - boost::python::object pyres = pycreatorfuncs[29](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 30. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0030() -{ - boost::python::object pyres = pycreatorfuncs[30](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 31. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0031() -{ - boost::python::object pyres = pycreatorfuncs[31](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 32. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0032() -{ - boost::python::object pyres = pycreatorfuncs[32](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 33. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0033() -{ - boost::python::object pyres = pycreatorfuncs[33](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 34. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0034() -{ - boost::python::object pyres = pycreatorfuncs[34](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 35. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0035() -{ - boost::python::object pyres = pycreatorfuncs[35](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 36. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0036() -{ - boost::python::object pyres = pycreatorfuncs[36](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 37. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0037() -{ - boost::python::object pyres = pycreatorfuncs[37](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 38. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0038() -{ - boost::python::object pyres = pycreatorfuncs[38](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 39. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0039() -{ - boost::python::object pyres = pycreatorfuncs[39](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 40. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0040() -{ - boost::python::object pyres = pycreatorfuncs[40](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 41. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0041() -{ - boost::python::object pyres = pycreatorfuncs[41](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 42. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0042() -{ - boost::python::object pyres = pycreatorfuncs[42](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 43. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0043() -{ - boost::python::object pyres = pycreatorfuncs[43](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 44. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0044() -{ - boost::python::object pyres = pycreatorfuncs[44](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes the Python function with index 45. This function - must return an object derived from a MPx class. The C++ object is extracted - from the Python object and a reference to that object is returned. - */ -void* createFunc0045() -{ - boost::python::object pyres = pycreatorfuncs[45](); - void* res = object2ptr(pyres); - if (res==0) - { - std::cerr<<"ERROR: creator function did not return a MPx object."<<std::endl; - } - else - { - // Increase the reference count of the created plugin object, - // otherwise the instance would be deleted by Python when this function - // terminates. Maya will take over the responsibility of deleting the - // object (the reference count will however never decrease again). - Py_XINCREF(pyres.ptr()); - } - return res; -} - -/** - Creator function that will be passed to Maya via the C++ MFnPlugin object. - - This function invokes th... [truncated message content] |
|
From: <mb...@us...> - 2006-05-30 15:47:51
|
Revision: 6 Author: mbaas Date: 2006-05-30 08:47:35 -0700 (Tue, 30 May 2006) ViewCVS: http://svn.sourceforge.net/cgkit/?rev=6&view=rev Log Message: ----------- Switched from upper-case GUI to lower-case gui Modified Paths: -------------- maya/trunk/maya_wrapper/maya/gui/guiobjectbase.py maya/trunk/maya_wrapper/maya/gui/scripttable.py maya/trunk/maya_wrapper/maya/gui/textscrolllist.py maya/trunk/maya_wrapper/maya/initmaya/pythoneditor.py maya/trunk/maya_wrapper/maya/pluginmanagergui.py maya/trunk/maya_wrapper/maya/unittest/unittestgui.py maya/trunk/maya_wrapper/setup.py Modified: maya/trunk/maya_wrapper/maya/gui/guiobjectbase.py =================================================================== --- maya/trunk/maya_wrapper/maya/gui/guiobjectbase.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/gui/guiobjectbase.py 2006-05-30 15:47:35 UTC (rev 6) @@ -3,7 +3,7 @@ ###################################################################### import maya.api -import maya.GUI +import maya.gui from maya import mel from maya import _mel import types, copy, inspect @@ -328,7 +328,7 @@ if ((shortname in cdesc.commandattrs) or (shortname in cdesc.callbackattrs)): id = self.callableId(shortname) - func,args = maya.GUI._getCallable(id) + func,args = maya.gui._getCallable(id) # Return the function if it is set, otherwise proceed # as normal and return the string that is set if func!=None: @@ -369,7 +369,7 @@ """Return a string containing the MEL attribute value. """ id = self.callableId(shortname) - maya.GUI._deregisterCallable(id) + maya.gui._deregisterCallable(id) if val==None: return "" # Is the value a string? Then it's MEL code... @@ -384,7 +384,7 @@ args = None # print "Register callback callable",cmd - maya.GUI._registerCallable(id, cmd, args) + maya.gui._registerCallable(id, cmd, args) funcname = id.replace("|", "_") melcode = self._classdesc.callbackattrs[shortname]%(funcname, id) # print "EXECUTING:" @@ -397,7 +397,7 @@ """Return a string containing the command string. """ id = self.callableId(shortname) - maya.GUI._deregisterCallable(id) + maya.gui._deregisterCallable(id) if val==None: return "" # Is the value a string? Then it's MEL code... @@ -412,7 +412,7 @@ args = None # print "Register callable",cmd - maya.GUI._registerCallable(id, cmd, args) + maya.gui._registerCallable(id, cmd, args) return self._classdesc.commandattrs[shortname]%id def callableId(self, shortname): @@ -450,7 +450,7 @@ ## key = self._name ## if id!=None: ## key += str(id) -## maya.GUI._registerCallable(key, cmd, args) +## maya.gui._registerCallable(key, cmd, args) ## command = 'python "_callCallable(\'%s\')"'%key ## return command Modified: maya/trunk/maya_wrapper/maya/gui/scripttable.py =================================================================== --- maya/trunk/maya_wrapper/maya/gui/scripttable.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/gui/scripttable.py 2006-05-30 15:47:35 UTC (rev 6) @@ -2,7 +2,7 @@ # ScriptTable control ###################################################################### -import maya.GUI +import maya.gui from guiobjectbase import GUIObjectBase, declareCallbackAttr from maya import mel Modified: maya/trunk/maya_wrapper/maya/gui/textscrolllist.py =================================================================== --- maya/trunk/maya_wrapper/maya/gui/textscrolllist.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/gui/textscrolllist.py 2006-05-30 15:47:35 UTC (rev 6) @@ -2,7 +2,7 @@ # TextScrollList control ###################################################################### -import maya.GUI +import maya.gui from guiobjectbase import GUIObjectBase, declareCommandAttr from maya import mel Modified: maya/trunk/maya_wrapper/maya/initmaya/pythoneditor.py =================================================================== --- maya/trunk/maya_wrapper/maya/initmaya/pythoneditor.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/initmaya/pythoneditor.py 2006-05-30 15:47:35 UTC (rev 6) @@ -1,7 +1,7 @@ # Python Editor import sys, StringIO -from maya.GUI import * +from maya.gui import * from maya import mel from maya import api Modified: maya/trunk/maya_wrapper/maya/pluginmanagergui.py =================================================================== --- maya/trunk/maya_wrapper/maya/pluginmanagergui.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/pluginmanagergui.py 2006-05-30 15:47:35 UTC (rev 6) @@ -1,7 +1,7 @@ # Python plugin manager window import os.path, glob -from maya.GUI import * +from maya.gui import * from maya import pluginmanager from maya import mel import maya._mel Modified: maya/trunk/maya_wrapper/maya/unittest/unittestgui.py =================================================================== --- maya/trunk/maya_wrapper/maya/unittest/unittestgui.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/maya/unittest/unittestgui.py 2006-05-30 15:47:35 UTC (rev 6) @@ -1,7 +1,7 @@ # Unit test GUI import os.path, types -from maya.GUI import * +from maya.gui import * from maya import mel from maya import api import maya.unittest Modified: maya/trunk/maya_wrapper/setup.py =================================================================== --- maya/trunk/maya_wrapper/setup.py 2006-05-29 13:32:40 UTC (rev 5) +++ maya/trunk/maya_wrapper/setup.py 2006-05-30 15:47:35 UTC (rev 6) @@ -189,7 +189,7 @@ url = "http://cgkit.sourceforge.net", packages = ["maya", "maya.api", "maya._mel", "maya.mel", - "maya.initmaya", "maya.GUI", + "maya.initmaya", "maya.gui", "maya.unittest", "maya.unittest.sdk_unittests"], ext_modules=[Extension("maya._api", srcs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <mb...@us...> - 2006-05-29 13:32:54
|
Revision: 5 Author: mbaas Date: 2006-05-29 06:32:40 -0700 (Mon, 29 May 2006) ViewCVS: http://svn.sourceforge.net/cgkit/?rev=5&view=rev Log Message: ----------- 1) Modified the shaders for the built-in materials so that they can be used for baking. 2) The transformation of the object was ignored during baking. This led to incorrect results when the transformation was anything else than the identity. Modified Paths: -------------- cgkit/trunk/cgkit/material3ds.py cgkit/trunk/cgkit/objmaterial.py cgkit/trunk/cgkit/ribexport.py cgkit/trunk/changelog.txt Modified: cgkit/trunk/cgkit/material3ds.py =================================================================== --- cgkit/trunk/cgkit/material3ds.py 2006-05-29 13:29:33 UTC (rev 4) +++ cgkit/trunk/cgkit/material3ds.py 2006-05-29 13:32:40 UTC (rev 5) @@ -346,9 +346,11 @@ float refl_rotation = 0; float refl_percent = 0.0; float refl_blur = 0.0; + varying point Pref = point(0,0,0); ) { - normal Nf = faceforward(normalize(N),I); + BAKE_BEGIN + normal Nf = BAKE_NORMAL(N); color C_diffuse = diffuse_col; color C_specular = specular_col; color C_opacity = Os; @@ -449,6 +451,7 @@ Ci = mix(Ci, C_diffuse, final_self_ilpct); Oi = C_opacity; Ci *= Oi; + BAKE_END } """ Modified: cgkit/trunk/cgkit/objmaterial.py =================================================================== --- cgkit/trunk/cgkit/objmaterial.py 2006-05-29 13:29:33 UTC (rev 4) +++ cgkit/trunk/cgkit/objmaterial.py 2006-05-29 13:32:40 UTC (rev 5) @@ -311,9 +311,12 @@ string map_d = ""; float map_d_offset[3] = {0, 0, 0}; float map_d_scale[3] = {1, 1, 1}; + + varying point Pref = point(0,0,0); ) { - normal Nf = faceforward(normalize(N),I); + BAKE_BEGIN + normal Nf = BAKE_NORMAL(N); color _Ka = Ka; color _Kd = Kd; color _Ks = Ks; @@ -383,6 +386,7 @@ Oi = _d*Tr*Tf; Ci *= Oi; + BAKE_END } """ Modified: cgkit/trunk/cgkit/ribexport.py =================================================================== --- cgkit/trunk/cgkit/ribexport.py 2006-05-29 13:29:33 UTC (rev 4) +++ cgkit/trunk/cgkit/ribexport.py 2006-05-29 13:32:40 UTC (rev 5) @@ -1108,8 +1108,9 @@ # verts = 156*[(0,0,0)] # Create parameter list... + W = obj.worldtransform params = {"P":stcoords, - "Pref":geom.verts} + "Pref":map(lambda x: W*x, geom.verts)} RiDeclare("Pref", "vertex point") clss = ["constant", "uniform", "varying", "vertex", "facevarying", "facevertex", "user"] typs = ["integer", "float", "string", "color", "point", "vector", @@ -1126,7 +1127,7 @@ decl = "%s %s[%d]"%(cls, typ, multiplicity) RiDeclare(name, decl) - # RiCoordSysTransform("camera") +# RiCoordSysTransform("camera") RiPointsPolygons(len(geom.faces)*[3], list(geom.faces), params) def renderChilds(self, obj): @@ -1767,9 +1768,11 @@ float texenvcolor_alpha = 1; float blend_sfactor = -1; float blend_dfactor = -1; + varying point Pref = point(0,0,0); ) { - normal Nf = faceforward(normalize(N),I); + BAKE_BEGIN + normal Nf = BAKE_NORMAL(N); vector V = normalize(-I); color diffuse = Cs; @@ -1846,6 +1849,7 @@ Ci = S*Ci; Oi = 1-D; } + BAKE_END } """ Modified: cgkit/trunk/changelog.txt =================================================================== --- cgkit/trunk/changelog.txt 2006-05-29 13:29:33 UTC (rev 4) +++ cgkit/trunk/changelog.txt 2006-05-29 13:32:40 UTC (rev 5) @@ -7,6 +7,11 @@ Bug fixes/enhancements: +- The built-in materials (GLMaterial, Material3DS, OBJMaterial) can now + also be used for baking. +- Bugfix: When baking maps, the transformation of the object was ignored. + This led to incorrect surface shading when the transformation was + anything else than the identity. - WorldObjects now support comparison (i.e. two WorldObject wrappers that reference the same C++ object will now appear as identical) - The setup script was checking for Boost.Python headers even when the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <mb...@us...> - 2006-05-29 13:29:44
|
Revision: 4 Author: mbaas Date: 2006-05-29 06:29:33 -0700 (Mon, 29 May 2006) ViewCVS: http://svn.sourceforge.net/cgkit/?rev=4&view=rev Log Message: ----------- Added *.pyc to the ignore list Property Changed: ---------------- cgkit/trunk/unittests/ Property changes on: cgkit/trunk/unittests ___________________________________________________________________ Name: svn:ignore + *.pyc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <mb...@us...> - 2006-05-28 13:40:52
|
Revision: 3 Author: mbaas Date: 2006-05-28 06:40:43 -0700 (Sun, 28 May 2006) ViewCVS: http://svn.sourceforge.net/cgkit/?rev=3&view=rev Log Message: ----------- Added entries to the ignore list Property Changed: ---------------- maya/trunk/maya_wrapper/ Property changes on: maya/trunk/maya_wrapper ___________________________________________________________________ Name: svn:ignore + config.cfg build dist query.log decoration.log cache html *.pyc MANIFEST This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: Matthias B. <mb...@us...> - 2006-05-26 21:35:49
|
Update of /cvsroot/cgkit/cgkit2/demos In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12339/demos Added Files: piddemo1.py Log Message: Added a PID example --- NEW FILE: piddemo1.py --- ###################################################################### # PID demo ###################################################################### # Create the materials for the target position markers red = GLMaterial(diffuse=(0.5,0,0), emission=(0.2,0,0)) mark = GLMaterial(diffuse=(0.8,0.4,0.2), emission=(0.8,0.4,0.2)) # Create 3 spheres indicating the target positions m3=Sphere(radius=0.1, pos=(0,0,0), material=red) m2=Sphere(radius=0.1, pos=(1,0,0), material=mark) m1=Sphere(radius=0.1, pos=(2,0,0), material=red) # Create a cylinder CCylinder( radius = 0.02, length = 2, pos = (1,0,0), rot = mat3().fromEulerXYZ(0,radians(90),0), material = GLMaterial(diffuse=(0.6,0.4,0), emission=(0.2,0.13,0)) ) # Create a ball that will slide along an ODE slider joint... ball = Sphere( name = "Ball", radius = 0.2, mass = 1.0, segmentsu = 16, segmentsv = 16, material = GLMaterial(diffuse=(0.3,0.7,0.4), emission=(0.1,0.23,0.13)) ) joint = ODESliderJoint( body1 = ball ) joint.motorfmax = 10.0 joint.motorvel = 0.1 # Create the PID controller that will receive the joint position as input # and controls the motor velocity of the slider joint... pid = PIDController( setpoint = 1.0, Kp = 5.0, Ki = 0, Kd = 0.2, ) joint.position_slot.connect(pid.input_slot) pid.output_slot.connect(joint.motorvel_slot) # Create the dynamics components... ode = ODEDynamics() ode.add(ball) ode.add(joint) def key(e): """Callback for KEY_PRESS events. Press '1' to '4' to set a new set point on the PID controller. """ global pid, m1, m2, m3 if e.key=="1": pid.setpoint = 2.0 m1.setMaterial(mark) m2.setMaterial(red) m3.setMaterial(red) elif e.key=="2": pid.setpoint = 1.0 m1.setMaterial(red) m2.setMaterial(mark) m3.setMaterial(red) elif e.key=="3": pid.setpoint = 0.0 m1.setMaterial(red) m2.setMaterial(red) m3.setMaterial(mark) elif e.key=="4": pid.setpoint = 2.0 m1.setMaterial(red) m2.setMaterial(red) m3.setMaterial(red) # Register the key() callback eventmanager.connect(KEY_PRESS, key) print "Press keys '1' to '4' to select a target position..." |
|
From: Matthias B. <mb...@us...> - 2006-05-26 21:33:38
|
Update of /cvsroot/cgkit/cgkit2/cgkit In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11528 Modified Files: rmshader.py Log Message: Modified the RM shader class so that string params can also take render passes as value Index: rmshader.py =================================================================== RCS file: /cvsroot/cgkit/cgkit2/cgkit/rmshader.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** rmshader.py 27 Apr 2006 16:57:22 -0000 1.8 --- rmshader.py 26 May 2006 21:33:29 -0000 1.9 *************** *** 94,97 **** --- 94,102 ---- self.shaderparams = {} + # String parameters are not stored as slots because they can either + # contain a string or a RenderPass object + # str_params: Key:Parameter name / Value:Value + self.str_params = {} + # Params for which there is no declaration # Key: Param name Value:Value *************** *** 142,159 **** # getattr def __getattr__(self, name): slot = self.__dict__.get("%s_slot"%name, None) ! if slot==None: ! raise AttributeError, 'shader "%s" has no attribute "%s"'%(self.shadername, name) ! return slot.getValue() # setattr def __setattr__(self, name, val): slot = self.__dict__.get("%s_slot"%name, None) ! if slot==None: ! object.__setattr__(self, name, val) ! return ! slot.setValue(val) --- 147,177 ---- # getattr def __getattr__(self, name): + # Shader parameter? slot = self.__dict__.get("%s_slot"%name, None) ! if slot!=None: ! return slot.getValue() ! # String parameter? ! str_params = self.__dict__.get("str_params", {}) ! if name in str_params: ! return str_params[name] ! ! raise AttributeError, 'shader "%s" has no attribute "%s"'%(self.shadername, name) # setattr def __setattr__(self, name, val): + # Shader parameter? slot = self.__dict__.get("%s_slot"%name, None) ! if slot!=None: ! slot.setValue(val) ! return ! # String parameter? ! str_params = self.__dict__.get("str_params", {}) ! if name in str_params: ! str_params[name] = val ! return ! ! object.__setattr__(self, name, val) *************** *** 177,181 **** # params ! def params(self): """Return the parameter dictionary for the current time. --- 195,199 ---- # params ! def params(self, passes=None): """Return the parameter dictionary for the current time. *************** *** 190,197 **** decl = self.shaderparams[name] p = "%s %s"%(decl, name) ! res[p] = getattr(self, name) return res # declare def declare(self, name, type=None, cls=None, arraysize=None, default=None): --- 208,233 ---- decl = self.shaderparams[name] p = "%s %s"%(decl, name) ! val = getattr(self, name) ! if isinstance(val, ribexport.RenderPass): ! if val.done(): ! mapname = val.realFilename(val.output[0][0]) ! # mapname = os.path.splitext(mapname)[0]+".map" ! val = mapname ! else: ! val = "" ! res[p] = val return res + # getPasses + def getPasses(self): + """Return a list containing the passes required for this shader. + """ + res = [] + for val in self.str_params.values(): + if isinstance(val, ribexport.RenderPass): + res.append(val) + return res + # declare def declare(self, name, type=None, cls=None, arraysize=None, default=None): *************** *** 214,217 **** --- 250,255 ---- shader.declare('Ka', type='float') """ + + # print 'declare("%s", type=%s, cls=%s, arraysize=%s, default=%s)'%(name, type, cls, arraysize, default) # Create a "dummy shader" which will be passed to slparams to parse *************** *** 274,282 **** if pytype=="double": pytype = "float" ! pdefault = eval("%s(%s)"%(pytype, repr(self.undeclared[pname]))) del self.undeclared[pname] # Create the slot and add the variable to the params dictionary ! self.createSlot(pname, slottype, parraylen, pdefault) self.shaderparams[pname] = decl --- 312,328 ---- if pytype=="double": pytype = "float" ! ! # Don't cast strings because they might contain a RenderPass ! if pytype=="str": ! pdefault = self.undeclared[pname] ! else: ! pdefault = eval("%s(%s)"%(pytype, repr(self.undeclared[pname]))) del self.undeclared[pname] # Create the slot and add the variable to the params dictionary ! if ptype=="string": ! self.str_params[pname] = pdefault ! else: ! self.createSlot(pname, slottype, parraylen, pdefault) self.shaderparams[pname] = decl *************** *** 448,452 **** def createPasses(self): """Returns a list of RenderPass objects.""" ! return [] def preProcess(self, exporter): --- 494,501 ---- def createPasses(self): """Returns a list of RenderPass objects.""" ! res = self.surface.getPasses() ! res += self.displacement.getPasses() ! res += self.interior.getPasses() ! return res def preProcess(self, exporter): *************** *** 475,479 **** def surfaceShaderParams(self, passes): """Return a dictionary with shader parameters and their values.""" ! return self.surface.params() def surfaceShaderTransform(self): --- 524,528 ---- def surfaceShaderParams(self, passes): """Return a dictionary with shader parameters and their values.""" ! return self.surface.params(passes) def surfaceShaderTransform(self): *************** *** 488,492 **** def displacementShaderParams(self, passes): ! return self.displacement.params() def displacementBound(self): --- 537,541 ---- def displacementShaderParams(self, passes): ! return self.displacement.params(passes) def displacementBound(self): *************** *** 504,508 **** def interiorShaderParams(self, passes): ! return self.interior.params() def interiorShaderTransform(self): --- 553,557 ---- def interiorShaderParams(self, passes): ! return self.interior.params(passes) def interiorShaderTransform(self): *************** *** 575,579 **** def createPasses(self): """Returns a list of RenderPass objects.""" ! return [] # shaderName --- 624,628 ---- def createPasses(self): """Returns a list of RenderPass objects.""" ! return self.shader.getPasses() # shaderName *************** *** 590,594 **** def shaderParams(self, passes): """Return a dictionary with shader parameters and their values.""" ! return self.shader.params() --- 639,643 ---- def shaderParams(self, passes): """Return a dictionary with shader parameters and their values.""" ! return self.shader.params(passes) |
|
From: Matthias B. <mb...@us...> - 2006-05-26 21:32:12
|
Update of /cvsroot/cgkit/cgkit2/cgkit/all In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10853/all Modified Files: __init__.py Log Message: Make the RenderMan passes available Index: __init__.py =================================================================== RCS file: /cvsroot/cgkit/cgkit2/cgkit/all/__init__.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** __init__.py 20 Mar 2006 17:07:16 -0000 1.7 --- __init__.py 26 May 2006 21:32:01 -0000 1.8 *************** *** 147,150 **** --- 147,151 ---- from cgkit.rmshader import RMMaterial, RMLightSource, RMShader + from cgkit.ribexport import ShadowPass, FlatReflectionPass from cgkit.cmds import * |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:17:35
|
Update of /cvsroot/cgkit/maya/maya_wrapper/doc/tex In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14528/tex Modified Files: api.tex gui.tex maya.tex Log Message: Update Index: api.tex =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/doc/tex/api.tex,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** api.tex 12 Apr 2006 19:41:09 -0000 1.3 --- api.tex 26 May 2006 17:17:29 -0000 1.4 *************** *** 37,94 **** % M3dView ! \subsection{\class{M3dView}} ! {\em ...this class still contains some methods that cannot be called...} % MArgList \subsection{\class{MArgList}} ! {\em ...this class still contains some methods that cannot be called...} % MAttributeIndex ! \subsection{\class{MAttributeIndex}} ! {\em ...this class still contains some methods that cannot be called...} % MCommandResult \subsection{\class{MCommandResult}} ! {\em ...this class still contains some methods that cannot be called...} % MEvent ! \subsection{\class{MEvent}} ! {\em ...this class still contains some methods that cannot be called...} % MFloatVectorArray ! \subsection{\class{MFloatVectorArray}} ! {\em ...this class still contains some methods that cannot be called...} % MFnAnimCurve ! \subsection{\class{MFnAnimCurve}} ! {\em ...this class still contains some methods that cannot be called...} % MFnDoubleIndexComponent ! \subsection{\class{MFnDoubleIndexComponent}} ! {\em ...this class still contains some methods that cannot be called...} % MFnLayeredShader ! \subsection{\class{MFnLayeredShader}} ! {\em ...this class still contains some methods that cannot be called...} % MFnLight ! \subsection{\class{MFnLight}} ! {\em ...this class still contains some methods that cannot be called...} % MFnNonAmbientLight ! \subsection{\class{MFnNonAmbientLight}} ! {\em ...this class still contains some methods that cannot be called...} % MFnNonExtendedLight ! \subsection{\class{MFnNonExtendedLight}} ! {\em ...this class still contains some methods that cannot be called...} % MFnNumericAttribute ! \subsection{\class{MFnNumericAttribute}} ! {\em ...this class still contains some methods that cannot be called...} % MFnNumericData ! \subsection{\class{MFnNumericData}} ! {\em ...this class still contains some methods that cannot be called...} % MFnNurbsCurve --- 37,169 ---- % M3dView ! %\subsection{\class{M3dView}} ! %{\em ...this class still contains some methods that cannot be called...} % MArgList \subsection{\class{MArgList}} ! ! The following \class{MArgList} methods differ from their C++ ! counterparts. ! ! \begin{methoddesc}{getBool}{index, status=None} ! This is the wrapper for the \code{MStatus get(unsigned int index, bool\& ret)} ! method. The function returns a boolean value and takes an optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getInt}{index, status=None} ! This is the wrapper for the \code{MStatus get(unsigned int index, int\& ret)} ! method. The function returns an integer value and takes an optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getDouble}{index, status=None} ! This is the wrapper for the \code{MStatus get(unsigned int index, double\& ret)} ! method. The function returns a float value and takes an optional ! MStatus object as input. ! \end{methoddesc} ! ! % MArgParser ! \subsection{\class{MArgParser}} ! ! The following \class{MArgParser} methods differ from their C++ ! counterparts. ! ! \begin{methoddesc}{getFlagArgumentBool}{flag, index, status=None} ! This is the wrapper for the \code{MStatus getFlagArgument(const char* flag, unsigned int index, bool\& result)} ! method. The function returns a boolean value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getFlagArgumentInt}{flag, index, status=None} ! This is the wrapper for the \code{MStatus getFlagArgument(const char* flag, unsigned int index, int\& result)} ! method. The function returns an integer value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getFlagArgumentUInt}{flag, index, status=None} ! This is the wrapper for the \code{MStatus getFlagArgument(const char* flag, unsigned int index, unsigned int\& result)} ! method. The function returns an integer value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getFlagArgumentDouble}{flag, index, status=None} ! This is the wrapper for the \code{MStatus getFlagArgument(const char* flag, unsigned int index, double\& result)} ! method. The function returns a double value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getCommandArgumentBool}{index, status=None} ! This is the wrapper for the \code{MStatus getCommandArgument(unsigned int index, bool\& result)} ! method. The function returns a boolean value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getCommandArgumentInt}{index, status=None} ! This is the wrapper for the \code{MStatus getCommandArgument(unsigned int index, int\& result)} ! method. The function returns an integer value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! ! \begin{methoddesc}{getCommandArgumentDouble}{index, status=None} ! This is the wrapper for the \code{MStatus getCommandArgument(unsigned int index, double\& result)} ! method. The function returns a double value and takes an additional optional ! MStatus object as input. ! \end{methoddesc} ! % MAttributeIndex ! %\subsection{\class{MAttributeIndex}} ! %{\em ...this class still contains some methods that cannot be called...} % MCommandResult \subsection{\class{MCommandResult}} ! ! The following \class{MCommandResult} methods differ from their C++ ! counterparts. ! ! \begin{methoddesc}{getResult}{status=None} ! \end{methoddesc} ! % MEvent ! %\subsection{\class{MEvent}} ! %{\em ...this class still contains some methods that cannot be called...} % MFloatVectorArray ! %\subsection{\class{MFloatVectorArray}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnAnimCurve ! %\subsection{\class{MFnAnimCurve}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnDoubleIndexComponent ! %\subsection{\class{MFnDoubleIndexComponent}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnLayeredShader ! %\subsection{\class{MFnLayeredShader}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnLight ! %\subsection{\class{MFnLight}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnNonAmbientLight ! %\subsection{\class{MFnNonAmbientLight}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnNonExtendedLight ! %\subsection{\class{MFnNonExtendedLight}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnNumericAttribute ! %\subsection{\class{MFnNumericAttribute}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnNumericData ! %\subsection{\class{MFnNumericData}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnNurbsCurve *************** *** 116,129 **** % MFnPhongEShader ! \subsection{\class{MFnPhongEShader}} ! {\em ...this class still contains some methods that cannot be called...} % MFnPointOnSurfaceManip ! \subsection{\class{MFnPointOnSurfaceManip}} ! {\em ...this class still contains some methods that cannot be called...} % MFnSpotLight ! \subsection{\class{MFnSpotLight}} ! {\em ...this class still contains some methods that cannot be called...} % MFnTransform --- 191,204 ---- % MFnPhongEShader ! %\subsection{\class{MFnPhongEShader}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnPointOnSurfaceManip ! %\subsection{\class{MFnPointOnSurfaceManip}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnSpotLight ! %\subsection{\class{MFnSpotLight}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnTransform *************** *** 162,181 **** % MFnUnitAttribute ! \subsection{\class{MFnUnitAttribute}} ! {\em ...this class still contains some methods that cannot be called...} % MFnVolumeLight ! \subsection{\class{MFnVolumeLight}} ! {\em ...this class still contains some methods that cannot be called...} % MPxNode ! \subsection{\class{MPxNode}} ! {\em ...this class still contains some methods that cannot be called...} % MRenderUtil ! \subsection{\class{MRenderUtil}} ! {\em ...this class still contains some methods that cannot be called...} % MQuaternion ! \subsection{\class{MQuaternion}} ! {\em ...this class still contains some methods that cannot be called...} --- 237,280 ---- % MFnUnitAttribute ! %\subsection{\class{MFnUnitAttribute}} ! %{\em ...this class still contains some methods that cannot be called...} % MFnVolumeLight ! %\subsection{\class{MFnVolumeLight}} ! %{\em ...this class still contains some methods that cannot be called...} % MPxNode ! %\subsection{\class{MPxNode}} ! %{\em ...this class still contains some methods that cannot be called...} % MRenderUtil ! %\subsection{\class{MRenderUtil}} ! %{\em ...this class still contains some methods that cannot be called...} % MQuaternion ! %\subsection{\class{MQuaternion}} ! %{\em ...this class still contains some methods that cannot be called...} ! ! % MPoint ! \subsection{\class{MPoint}} ! ! The following \class{MPoint} methods differ from their C++ ! counterparts. ! ! \begin{methoddesc}{get}{status=None} ! Returns a list of 4 floats with the components of the point. ! \var{status} is an optional \class{MStatus} ! object that receives the result code. ! \end{methoddesc} ! ! % MVector ! \subsection{\class{MVector}} ! ! The following \class{MVector} methods differ from their C++ ! counterparts. ! ! \begin{methoddesc}{get}{status=None} ! Returns a list of 3 floats with the components of the vector. ! \var{status} is an optional \class{MStatus} ! object that receives the result code. ! \end{methoddesc} Index: gui.tex =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/doc/tex/gui.tex,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gui.tex 6 Apr 2006 14:45:08 -0000 1.1 --- gui.tex 26 May 2006 17:17:29 -0000 1.2 *************** *** 9,22 **** particular GUI element there is a corresponding class that wraps that function. For example, instead of using the MEL function \code{window} ! to create or edit windows you can now use the \class{Window} class to ! do the same thing. Attributes of a GUI element can be accessed via ! regular Python attribute access on the appropriate GUI object. MEL ! functions that are related to a particular GUI element are wrapped as ! methods (for example, the method \code{Window.show()} will internally invoke ! the MEL function \code{showWindow}). The main advantage of the GUI classes is that they allow passing ! Python functions or methods as callbacks whereas the MEL GUI functions ! would only allow MEL code. Example: \begin{verbatim} --- 9,38 ---- particular GUI element there is a corresponding class that wraps that function. For example, instead of using the MEL function \code{window} ! to create or edit windows you can use the \class{Window} class to ! do the same thing. ! ! Attributes of a GUI element can be accessed via regular Python ! attribute access on the appropriate GUI object. MEL functions that are ! related to a particular GUI element are wrapped as methods (for ! example, the method \code{Window.Show()} will internally invoke the ! MEL function \code{showWindow}). Some GUI objects define their own ! methods to invoke certain operations which are also done via flags ! in MEL. To distinguish attributes from methods and to prevent name clashes, ! all methods on GUI classes begin with an upper case letter. For example, the ! \class{TextScrollList} class provides a method \method{Append()} that ! can be used to append a new item to the scroll list. You can either use ! this method or still use attribute access: ! ! \begin{verbatim} ! tsl = TextScrollList() ! tsl.Append("Spam") ! tsl.append = "Spam" # this line is equivalent to the previous line ! \end{verbatim} ! ! Both ways will internally invoke the MEL command \code{textScrollList -e -append "Spam"}. The main advantage of the GUI classes is that they allow passing ! Python functions or methods as commands or callbacks whereas the MEL GUI ! functions would only allow MEL code. Example: \begin{verbatim} *************** *** 35,36 **** --- 51,136 ---- mel.button(label="Hit me", command='python \\\"myCallback()\\\"') \end{verbatim} + + %-------------------------------------------------- + \subsection{Controls} + + % ScriptTable + \subsubsection{\class{SpriptTable}} + + \begin{classdesc}{ScriptTable}{name = None, **flags} + \end{classdesc} + + % Methods + \begin{methoddesc}{GetCell}{row, column} + Default callback. + \end{methoddesc} + + \begin{methoddesc}{CellChanged}{row, column, value} + Default callback. + \end{methoddesc} + + \begin{methoddesc}{InsertRow}{row} + Insert an empty row before the specified row. + \end{methoddesc} + + \begin{methoddesc}{DeleteRow}{row} + Delete the specified row. The row number is 1-based. + \end{methoddesc} + + \begin{methoddesc}{ClearRow}{row} + Clear the contents for all the cells on the specified row. + \end{methoddesc} + + \begin{methoddesc}{ClearTable}{} + Clears the contents of all the cells in the table. + \end{methoddesc} + + % TextScrollList + \subsubsection{\class{TextScrollList}} + + \begin{classdesc}{TextScrollList}{name = None, **flags} + \end{classdesc} + + % Methods + \begin{methoddesc}{Append}{txt, pos=-1} + Append an item. + \end{methoddesc} + + \begin{methoddesc}{Remove}{item} + Remove an item. \var{item} can either be a 1-based index or a string. + \end{methoddesc} + + \begin{methoddesc}{RemoveAll}{} + Remove all items. + \end{methoddesc} + + \begin{methoddesc}{Select}{item} + Select an item. \var{item} can either be a 1-based index or a string. + \end{methoddesc} + + \begin{methoddesc}{Deselect}{item} + Deselect an item. \var{item} can either be a 1-based index or a string. + \end{methoddesc} + + \begin{methoddesc}{DeselectAll}{} + Deselect all items. + \end{methoddesc} + + \begin{methoddesc}{GetSelectedItems}{} + Return a list of currently selected items. + \end{methoddesc} + + \begin{methoddesc}{GetSelectedIndices}{} + Return a list of indices with the currently selected items. + \end{methoddesc} + + \begin{methoddesc}{ShowIndexedItem}{idx} + Show the indexed item. \var{idx} is 1-based. + \end{methoddesc} + + %-------------------------------------------------- + \subsection{Layouts} + + %-------------------------------------------------- + \subsection{Menus} + Index: maya.tex =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/doc/tex/maya.tex,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** maya.tex 12 Apr 2006 19:41:09 -0000 1.3 --- maya.tex 26 May 2006 17:17:29 -0000 1.4 *************** *** 16,20 **** %--------------------------------------------------------- % Version information ! \release{0.9.1} \setreleaseinfo{} \setshortversion{1.0} --- 16,20 ---- %--------------------------------------------------------- % Version information ! \release{0.9.2} \setreleaseinfo{} \setshortversion{1.0} |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:17:09
|
Update of /cvsroot/cgkit/maya/maya_wrapper/doc In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14188 Modified Files: makefile Log Message: Add support for a4/letter format Index: makefile =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/doc/makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** makefile 6 Apr 2006 14:45:08 -0000 1.1 --- makefile 26 May 2006 17:17:06 -0000 1.2 *************** *** 6,7 **** --- 6,12 ---- pdf: mkhowto --pdf --a4 tex/maya.tex + mv maya.pdf maya_a4.pdf + + pdf_letter: + mkhowto --pdf --letter tex/maya.tex + mv maya.pdf maya_letter.pdf |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:16:20
|
Update of /cvsroot/cgkit/maya/maya_wrapper In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14089 Modified Files: pypp_setup.py Log Message: Update Index: pypp_setup.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/pypp_setup.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pypp_setup.py 30 Apr 2006 10:28:23 -0000 1.2 --- pypp_setup.py 26 May 2006 17:16:14 -0000 1.3 *************** *** 33,36 **** --- 33,38 ---- logger = logging.getLogger('pyplusplus') logger.setLevel(logging.INFO) + logger = logging.getLogger('pygccxml') + logger.setLevel(logging.INFO) # A list of classes the should be included in the wrappers *************** *** 493,496 **** --- 495,520 ---- return res + # CheckIndex + class CheckIndex(ArgTransformerBase): + + def __init__(self, idx, lower, upper): + """ + lower/upper can be integers or strings with source code. + The valid range is lower <= i < upper + """ + ArgTransformerBase.__init__(self) + self.index = idx + self.lower = lower + self.upper = upper + + def __str__(self): + return "CheckIndex(%d,%s,%s)"%(self.index, self.lower, self.upper) + + def preCall(self, wm): + varname = wm.funcargs[self.index].name + s = "// Check if %s is inside a valid range\n"%varname + s += "if (%s<(%s) || %s>=(%s))\n"%(varname, self.lower, varname, self.upper) + s += " throw EIndexError();" + return s ### *************** *** 628,631 **** --- 652,659 ---- ### + # Register the exception translators... + mod.registerExceptionTranslator("EIndexError", "IndexError") + mod.registerExceptionTranslator("EValueError", "ValueError") + # Wrap the copy constructor manually (as pyplusplus doesn't support copy # constructors yet). *************** *** 868,871 **** --- 896,900 ---- MPointArray.Method("set", args=["float *", "unsigned int"]).ignore() MPointArray.Method("operator[]", retval="MPoint &").expose() + #MPointArray.Method("operator[]", retval="MPoint &").setArgPolicy(CheckIndex(1,0,"self.length()")) MPointArray.Methods("get").ignore() MPointArray.cdef("__str__", "pyMPointArray::__str__") *************** *** 874,877 **** --- 903,910 ---- MPointArray.cdef("get", "pyMPointArray::get2") + MIntArray = mod.Class("MIntArray") + MIntArray.Method("operator[]", retval="int").setArgPolicy(CheckIndex(1,0,"self.length()")) + MIntArray.cdef("__str__", "pyMIntArray::__str__") + MVectorArray = mod.Class("MVectorArray") MVectorArray.Method("set", args=["double *", "unsigned int"]).ignore() *************** *** 937,940 **** --- 970,975 ---- MColor = mod.Class("MColor") + MColor.Method("operator[]", retval="float").setArgPolicy(CheckIndex(1,0,4)) + MColor.cdef("__len__", "pyMColor::__len__") MColor.cdef("__str__", "pyMColor::__str__") # Friend functions... *************** *** 950,955 **** --- 985,995 ---- MStatus.cdef("__nonzero__", "&MStatus::operator bool") + MTime = mod.Class("MTime") + MTime.cdef("__str__", "pyMTime::__str__") + MVector = mod.Class("MVector") #MVector.cdef("bp::init< const MVector& >()") + MVector.Method("operator[]", retval="double").setArgPolicy(CheckIndex(1,0,3)) + MVector.cdef("__len__", "pyMVector::__len__") MVector.cdef("__str__", "pyMVector::__str__") # Replace one version of rotateBy() by a "Pythonized" version that serves *************** *** 969,972 **** --- 1009,1014 ---- MPoint = mod.Class("MPoint") + MPoint.Method("operator[]", retval="double").setArgPolicy(CheckIndex(1,0,4)) + MPoint.cdef("__len__", "pyMPoint::__len__") MPoint.cdef("__str__", "pyMPoint::__str__") # Friend functions... *************** *** 974,980 **** --- 1016,1026 ---- MFloatVector = mod.Class("MFloatVector") + MFloatVector.Method("operator[]", retval="float").setArgPolicy(CheckIndex(1,0,3)) + MFloatVector.cdef("__len__", "pyMFloatVector::__len__") MFloatVector.cdef("__str__", "pyMFloatVector::__str__") MFloatPoint = mod.Class("MFloatPoint") + MFloatPoint.Method("operator[]", retval="float").setArgPolicy(CheckIndex(1,0,4)) + MFloatPoint.cdef("__len__", "pyMFloatPoint::__len__") MFloatPoint.cdef("__str__", "pyMFloatPoint::__str__") |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:13:39
|
Update of /cvsroot/cgkit/maya/maya_wrapper In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12693 Modified Files: setup.py Log Message: Increased version number Index: setup.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/setup.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** setup.py 12 Apr 2006 21:22:21 -0000 1.13 --- setup.py 26 May 2006 17:13:35 -0000 1.14 *************** *** 183,187 **** # setup setup(name="maya", ! version = "0.9.2", description = "Maya SDK wrapper", author = "Matthias Baas", --- 183,187 ---- # setup setup(name="maya", ! version = "0.9.3", description = "Maya SDK wrapper", author = "Matthias Baas", |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:11:17
|
Update of /cvsroot/cgkit/cgkit2/wrappers In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11855/wrappers Modified Files: py_glmaterial.cpp Log Message: Fixed some doc strings Index: py_glmaterial.cpp =================================================================== RCS file: /cvsroot/cgkit/cgkit2/wrappers/py_glmaterial.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** py_glmaterial.cpp 5 Apr 2006 08:17:16 -0000 1.6 --- py_glmaterial.cpp 26 May 2006 17:11:12 -0000 1.7 *************** *** 156,160 **** .def("setTexture", &GLMaterial::setTexture, (arg("texture"), arg("idx")=0), ! "setTexture(mat, idx=0)\n\n" "Set a new texture. An IndexError exception is thrown if the index\n" "is out of range.") --- 156,160 ---- .def("setTexture", &GLMaterial::setTexture, (arg("texture"), arg("idx")=0), ! "setTexture(tex, idx=0)\n\n" "Set a new texture. An IndexError exception is thrown if the index\n" "is out of range.") *************** *** 175,179 **** .def("setVertexShader", &GLMaterial::setVertexShader, (arg("shader"), arg("idx")=0), ! "setVertexShader(mat, idx=0)\n\n" "Set a new vertex shader object. An IndexError exception is thrown if the\n" "index is out of range. A ValueError exception is thrown if the shader is\n" --- 175,179 ---- .def("setVertexShader", &GLMaterial::setVertexShader, (arg("shader"), arg("idx")=0), ! "setVertexShader(shader, idx=0)\n\n" "Set a new vertex shader object. An IndexError exception is thrown if the\n" "index is out of range. A ValueError exception is thrown if the shader is\n" *************** *** 194,198 **** .def("setFragmentShader", &GLMaterial::setFragmentShader, //(arg("shader"), arg("idx")=0), ! "setFragmentShader(mat, idx=0)\n\n" "Set a new fragment shader object. An IndexError exception is thrown if the\n" "index is out of range. A ValueError exception is thrown if the shader is\n" --- 194,198 ---- .def("setFragmentShader", &GLMaterial::setFragmentShader, //(arg("shader"), arg("idx")=0), ! "setFragmentShader(shader, idx=0)\n\n" "Set a new fragment shader object. An IndexError exception is thrown if the\n" "index is out of range. A ValueError exception is thrown if the shader is\n" |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:10:15
|
Update of /cvsroot/cgkit/cgkit2 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11464 Modified Files: changelog.txt Log Message: Update Index: changelog.txt =================================================================== RCS file: /cvsroot/cgkit/cgkit2/changelog.txt,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** changelog.txt 27 Apr 2006 16:57:22 -0000 1.67 --- changelog.txt 26 May 2006 17:10:11 -0000 1.68 *************** *** 8,11 **** --- 8,13 ---- Bug fixes/enhancements: + - WorldObjects now support comparison (i.e. two WorldObject wrappers that + reference the same C++ object will now appear as identical) - The setup script was checking for Boost.Python headers even when the 'light' version was installed. This is fixed. |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:08:11
|
Update of /cvsroot/cgkit/cgkit2/cgkit In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10495 Modified Files: odedynamics.py Log Message: Fixed an error message Index: odedynamics.py =================================================================== RCS file: /cvsroot/cgkit/cgkit2/cgkit/odedynamics.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** odedynamics.py 30 Aug 2005 16:39:39 -0000 1.7 --- odedynamics.py 26 May 2006 17:08:04 -0000 1.8 *************** *** 203,207 **** \param objs World objects to be simulated (given as names or objects) """ - objs = cmds.worldObjects(objs) for obj in objs: --- 203,206 ---- *************** *** 1013,1017 **** # Unknown geometry else: ! print 'WARNING: ODEDynamics: Cannot determine collision geometry of object "%s".'%obj.name # print 'WARNING: ODEDynamics: Cannot determine collision geometry of object "%s". Using bounding box instead.'%obj.name # bmin, bmax = obj.boundingBox().getBounds() --- 1012,1016 ---- # Unknown geometry else: ! raise ValueError, 'WARNING: ODEDynamics: Cannot determine collision geometry of object "%s".'%geom.name # print 'WARNING: ODEDynamics: Cannot determine collision geometry of object "%s". Using bounding box instead.'%obj.name # bmin, bmax = obj.boundingBox().getBounds() |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:06:49
|
Update of /cvsroot/cgkit/cgkit2/unittests In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv9984 Modified Files: test_worldobject.py Log Message: Test WorldObject comparison Index: test_worldobject.py =================================================================== RCS file: /cvsroot/cgkit/cgkit2/unittests/test_worldobject.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** test_worldobject.py 15 Aug 2005 15:47:57 -0000 1.4 --- test_worldobject.py 26 May 2006 17:06:43 -0000 1.5 *************** *** 38,41 **** --- 38,49 ---- self.failIf(w.hasChild("spam")) + class TestComparison(unittest.TestCase): + + def testComparison(self): + w = WorldObject(name="parent", auto_insert=False) + q = WorldObject(name="child", parent=w) + + self.assertEqual(w,q.parent) + ###################################################################### |
|
From: Matthias B. <mb...@us...> - 2006-05-26 17:04:32
|
Update of /cvsroot/cgkit/cgkit2/doc/tex In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv9182/tex Modified Files: glmaterial.tex Log Message: Update Index: glmaterial.tex =================================================================== RCS file: /cvsroot/cgkit/cgkit2/doc/tex/glmaterial.tex,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** glmaterial.tex 12 Apr 2006 11:50:44 -0000 1.4 --- glmaterial.tex 26 May 2006 17:04:25 -0000 1.5 *************** *** 50,53 **** --- 50,110 ---- \end{classdesc} + % Methods + \begin{methoddesc}{getNumTextures}{} + Return the current size of the texture array. + \end{methoddesc} + + \begin{methoddesc}{setNumTextures}{num} + Set a new size for the texture array. + \end{methoddesc} + + \begin{methoddesc}{getTexture}{idx=0} + Get a stored texture. The method returns \code{None} if the given index + is out of range or if there is no texture stored at that position. + \end{methoddesc} + + \begin{methoddesc}{setTexture}{tex, idx=0} + Set a new texture. An \exception{IndexError} exception is thrown if the + index is out of range. + \end{methoddesc} + + \begin{methoddesc}{getNumVertexShaders}{} + Return the current size of the vertex shader array. + \end{methoddesc} + + \begin{methoddesc}{setNumVertexShaders}{num} + Set a new size for the vertex shader array. + \end{methoddesc} + + \begin{methoddesc}{getVertexShader}{idx=0} + Get a vertex shader object. The method returns \code{None} if the given index + is out of range or if there is no shader object stored at that position. + \end{methoddesc} + + \begin{methoddesc}{setVertexShader}{shader, idx=0} + Set a new vertex shader object. An \exception{IndexError} exception is + thrown if the index is out of range. A ValueError exception is thrown if the + shader is not of type \code{VERTEX}. + \end{methoddesc} + + \begin{methoddesc}{getNumFragmentShaders}{} + Return the current size of the fragment shader array. + \end{methoddesc} + + \begin{methoddesc}{setNumFragmentShaders}{num} + Set a new size for the fragment shader array. + \end{methoddesc} + + \begin{methoddesc}{getFragmentShader}{idx=0} + Get a fragment shader object. The method returns \code{None} if the given index + is out of range or if there is no shader object stored at that position. + \end{methoddesc} + + \begin{methoddesc}{setFragmentShader}{shader, idx=0} + Set a new fragment shader object. An \exception{IndexError} exception is + thrown if the index is out of range. A ValueError exception is thrown if the + shader is not of type \code{FRAGMENT}. + \end{methoddesc} + %----------------------- \subsection{\class{GLTexture} --- Specifying a texture map} |
|
From: Matthias B. <mb...@us...> - 2006-05-26 15:20:55
|
Update of /cvsroot/cgkit/cgkit2/doc/tex In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31767 Modified Files: spotlight3ds.tex Log Message: Update Index: spotlight3ds.tex =================================================================== RCS file: /cvsroot/cgkit/cgkit2/doc/tex/spotlight3ds.tex,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** spotlight3ds.tex 12 Dec 2004 14:31:56 -0000 1.1.1.1 --- spotlight3ds.tex 26 May 2006 15:20:46 -0000 1.2 *************** *** 4,7 **** --- 4,15 ---- 3DS spot light} + The \class{SpotLight3DS} class stores all parameters of the spot lights + as they are stored in 3DS files. The main purpose of this class is to + ensure that data doesn't get lost during file conversions. + + This light sources can also be used for RenderMan renderings. However, + not all of the parameters are currently taken into account in the + corresponding RenderMan shader (see below). + \begin{classdesc}{SpotLight3DS}{name = "SpotLight3DS",\\ enabled = True,\\ *************** *** 29,33 **** --- 37,112 ---- } + \var{enabled} is a boolean flag that can be used to turn the light source + on or off. + + \var{intensity} is the overall intensity of the light source. The higher + the value, the brighter the light. + + \var{color} defines the color of the light source. It must be a sequence + of 3 floats containing RGB values. + + \var{see_cone} ... + + \var{roll} ... + + \var{inner_range} and \var{outer_range} specify an intensity range based + on distance. Any parts of the scene that are nearer to the light source + than \var{inner_range} are fully illuminated. Within the range between + \var{inner_range} and \var{outer_range} the brightness drops off to 0 + and objects further than \var{outer_range} are not illuminated at all. + These range values are only taken into account when \var{attenuation} + is not 0. + + \var{rectangular_spot} ... + + If \var{shadowed} is set to \code{True} the light casts a shadow. + + \var{shadow_bias} is a small value greater than 0 that is used to prevent + invalid self-shadowing (i.e. so that a surface element doesn't shadow itself). + + \var{shadow_filter} specifies the size of the filter when doing shadow map + lookups. The higher the value the blurrier the shadow. + + \var{shadow_size} defines the size of the shadow map. The shadow map will + always be square and have a width of \var{shadow_size} pixels. + + \var{spot_aspect} ... + + \var{use_projector} ... + + \var{projector} ... + + If \var{overshoot} is \code{True} the light virtually becomes a point light + source, i.e. it also illuminates the parts of the scene that lie outside + its cone but the shadow is still restricted to the cone. + + \var{ray_shadows} ... + + \var{ray_bias} ... + + \var{hotspot} This is the angle (in degrees) of the "inner" cone which is fully illuminated. + + \var{falloff} This is the angle (in degrees) of the "outer" cone. The light + intensity between the inner and outer cone drops off to 0. The region outside + the outer cone is not illuminated (unless \var{overshoot} is activated). + + \var{target} is the target point that the light source aims at. + \end{classdesc} + The following parameters are used in the corresponding RenderMan + shader, all other parameters are currently ignored: + \begin{itemize} + \item intensity + \item color + \item falloff + \item hotspot + \item attenuation + \item inner_range + \item outer_range + \item overshoot + \item shadow_bias + \item shadow_filter + \item shadow_size + \end{itemize} |
|
From: Matthias B. <mb...@us...> - 2006-05-23 15:57:53
|
Update of /cvsroot/cgkit/maya/maya_wrapper/maya/mel In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv26410 Modified Files: __init__.py Log Message: Added a wrapper for listRelatives() so that an empty list is returned instead of None. Index: __init__.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/maya/mel/__init__.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** __init__.py 24 Mar 2006 17:13:48 -0000 1.6 --- __init__.py 23 May 2006 15:57:50 -0000 1.7 *************** *** 27,28 **** --- 27,37 ---- ls.__doc__ = _mel.ls.__doc__ + # listRelatives + def listRelatives(*args, **flags): + res = _mel.listRelatives(*args, **flags) + if res==None: + return [] + else: + return res + + listRelatives.__doc__ = _mel.listRelatives.__doc__ |
|
From: Matthias B. <mb...@us...> - 2006-05-23 15:57:13
|
Update of /cvsroot/cgkit/maya/maya_wrapper/maya/GUI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv26068 Modified Files: __init__.py Added Files: textscrolllist.py Log Message: Added the TextScrollList class --- NEW FILE: textscrolllist.py --- ###################################################################### # TextScrollList control ###################################################################### import maya.GUI from guiobjectbase import GUIObjectBase, declareCommandAttr from maya import mel declareCommandAttr("textScrollList", ["doubleClickCommand", "deleteKeyCommand", "selectCommand"]) # TextScrollList class TextScrollList(GUIObjectBase): """TextScrollList control. """ def Append(self, txt, pos=-1): """Append an item. If no position is specified the item is appended at the end of the list. The position can be a value >0 or a negative value. The first position is 1, the last position is -1. """ if pos==-1: self.append = txt else: if pos<0: pos = self.numberOfItems+pos+2 if pos==0: raise ValueError, "Positions are 1-based (0 is not allowed)" self.appendPosition = (pos, txt) def RemoveAll(self): """Remove all items. """ self.removeAll = None def Remove(self, item): """Remove an item. item can be either a 1-based index or a string. """ if type(item)==int: self.removeIndexedItem = item else: self.removeItem = item def Select(self, item): """Select an item. item can be either a 1-based index or a string. """ if type(item)==int: self.selectIndexedItem = item else: self.selectItem = item def DeselectAll(self): """Deselect all items. """ self.deselectAll = None def Deselect(self, item): """Deselect an item. item can be either a 1-based index or a string. """ if type(item)==int: self.deselectIndexedItem = item else: self.deselectItem = item def GetSelectedItems(self): """Return a list of currently selected items. """ return self.selectItem def GetSelectedIndices(self): """Return a list of indices with the currently selected items. """ return self.selectIndexedItem def ShowIndexedItem(self, idx): """Show the indexed item. """ self.showIndexedItem = idx Index: __init__.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/maya/GUI/__init__.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** __init__.py 15 May 2006 15:11:57 -0000 1.6 --- __init__.py 23 May 2006 15:56:56 -0000 1.7 *************** *** 11,14 **** --- 11,15 ---- from groups import * from scripttable import * + from textscrolllist import TextScrollList ###################################################################### |
|
From: Matthias B. <mb...@us...> - 2006-05-23 15:56:36
|
Update of /cvsroot/cgkit/maya/maya_wrapper/maya/GUI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv26032 Modified Files: scripttable.py window.py Log Message: Switched to methods with a leading upper case character Index: window.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/maya/GUI/window.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** window.py 15 May 2006 15:19:01 -0000 1.3 --- window.py 23 May 2006 15:56:29 -0000 1.4 *************** *** 17,20 **** --- 17,21 ---- def show(self): mel.showWindow(self) + Show = show # "title" property... Index: scripttable.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/maya/GUI/scripttable.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** scripttable.py 15 May 2006 15:19:01 -0000 1.2 --- scripttable.py 23 May 2006 15:56:29 -0000 1.3 *************** *** 34,42 **** """ GUIObjectBase.__init__(self, **flags) ! self.getCellCmd = self.getCell ! self.cellChangedCmd = self.cellChanged ! def getCell(self, row, column): """Callback that is used to populate the control. --- 34,42 ---- """ GUIObjectBase.__init__(self, **flags) ! self.getCellCmd = self.GetCell ! self.cellChangedCmd = self.CellChanged ! def GetCell(self, row, column): """Callback that is used to populate the control. *************** *** 46,50 **** return "" ! def cellChanged(self, row, column, value): """Callback that is called whenever the user entered a new value. --- 46,50 ---- return "" ! def CellChanged(self, row, column, value): """Callback that is called whenever the user entered a new value. *************** *** 57,61 **** return 0 ! def setLabel(self, column, txt): """Set the label of the specified column. --- 57,61 ---- return 0 ! def SetLabel(self, column, txt): """Set the label of the specified column. *************** *** 64,73 **** self.label = (column, txt) ! def insertRow(self, row): """Insert an empty row before the specified row. """ mel.scriptTable(self._name, edit=None, insertRow=row) ! def deleteRow(self, row): """Delete the specified row. --- 64,73 ---- self.label = (column, txt) ! def InsertRow(self, row): """Insert an empty row before the specified row. """ mel.scriptTable(self._name, edit=None, insertRow=row) ! def DeleteRow(self, row): """Delete the specified row. *************** *** 76,85 **** mel.scriptTable(self._name, edit=None, deleteRow=row) ! def clearRow(self, row): """Clear the contents for all the cells on the specified row. """ mel.scriptTable(self._name, edit=None, clearRow=row) ! def clearTable(self): """Clears the contents of all the cells in the table. """ --- 76,85 ---- mel.scriptTable(self._name, edit=None, deleteRow=row) ! def ClearRow(self, row): """Clear the contents for all the cells on the specified row. """ mel.scriptTable(self._name, edit=None, clearRow=row) ! def ClearTable(self): """Clears the contents of all the cells in the table. """ |
|
From: Matthias B. <mb...@us...> - 2006-05-23 15:55:35
|
Update of /cvsroot/cgkit/maya/maya_wrapper/maya/GUI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv25657 Modified Files: radiobuttons.py Log Message: Added the RadioButtonGrp class Index: radiobuttons.py =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/maya/GUI/radiobuttons.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** radiobuttons.py 15 May 2006 15:19:01 -0000 1.4 --- radiobuttons.py 23 May 2006 15:55:12 -0000 1.5 *************** *** 18,19 **** --- 18,27 ---- class IconTextRadioButton(GUIObjectBase): pass declareCommandAttr("iconTextRadioButton", ["onCommand", "offCommand", "changeCommand"]) + + # RadioButtonGrp + class RadioButtonGrp(GUIObjectBase): pass + declareCommandAttr("radioButtonGrp", + ["changeCommand", "changeCommand1", "changeCommand2", "changeCommand3", "changeCommand4", + "onCommand", "onCommand1", "onCommand2", "onCommand3", "onCommand4", + "offCommand", "offCommand1", "offCommand2", "offCommand3", "offCommand4"]) + |
|
From: Matthias B. <mb...@us...> - 2006-05-17 14:09:41
|
Update of /cvsroot/cgkit/maya/maya_wrapper In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17674 Modified Files: extraheaders.h Log Message: Added a __str__ method for MTime Index: extraheaders.h =================================================================== RCS file: /cvsroot/cgkit/maya/maya_wrapper/extraheaders.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** extraheaders.h 5 May 2006 15:54:31 -0000 1.4 --- extraheaders.h 17 May 2006 14:09:38 -0000 1.5 *************** *** 68,71 **** --- 68,72 ---- #include "mstatus.h" #include "mstring.h" + #include "mtime.h" #include "mtransformationmatrix.h" #include "mvector.h" |
|
From: Matthias B. <mb...@us...> - 2006-05-17 14:09:41
|
Update of /cvsroot/cgkit/maya/maya_wrapper/src_aux In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17674/src_aux Added Files: mtime.h mtime.cpp Log Message: Added a __str__ method for MTime --- NEW FILE: mtime.cpp --- /*====================================================================== cgkit - Python Computer Graphics Kit Copyright (C) 2006 Matthias Baas (ba...@ir...) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA cgkit homepage: http://cgkit.sourceforge.net ======================================================================*/ /* Additional methods for the MTime class. */ #include <iostream> #include <sstream> #include "mtime.h" #include "exceptions.h" namespace pyMTime { // __str__ method boost::python::str __str__(MTime& self) { std::ostringstream s; s<<self; return boost::python::str(s.str()); } } --- NEW FILE: mtime.h --- /*====================================================================== cgkit - Python Computer Graphics Kit Copyright (C) 2006 Matthias Baas (ba...@ir...) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA cgkit homepage: http://cgkit.sourceforge.net ======================================================================*/ /** \file mtime.h Additional methods for the MTime class. */ #include <boost/python.hpp> #include <maya/MTime.h> using boost::python::object; /** This namespace contains extra methods for the MTime class. */ namespace pyMTime { boost::python::str __str__(MTime& self); } |
|
From: Matthias B. <mb...@us...> - 2006-05-17 12:10:59
|
Update of /cvsroot/cgkit/cgkit2/cgkit In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30452 Modified Files: quadrics.py Log Message: Import _core which is required when setting attributes Index: quadrics.py =================================================================== RCS file: /cvsroot/cgkit/cgkit2/cgkit/quadrics.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** quadrics.py 19 Apr 2005 08:45:56 -0000 1.2 --- quadrics.py 17 May 2006 12:10:53 -0000 1.3 *************** *** 30,34 **** from slots import * import protocols ! # Sphere --- 30,34 ---- from slots import * import protocols ! import _core # Sphere |