Thanks! I updated to the newest build.
I tried it with maya2008 and 2009. In maya 2008 I get some messages
that look as if there is somehing wrong, but it seems to work.

------------------------------------------------------------------
Here are the messages from maya2008
------------------------------------------------------------------
import pymel

error making __doc__
Trees module will use pure python implementation
error making __doc__
imported mayahook
Maya is already initialized as version 2008
Initialized API Cache in in 1.41 sec
Maya is already initialized as version 2008
No api information for api class MItCurveCV
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Could not determine pymel name for MFn.Type
Initialized Pymel PyNodes types list in 0.27 sec
# ExecutionWarning: Cannot find function ContextKey_G
# ExecutionWarning: Cannot find function DistributeRender
# ExecutionWarning: Cannot find function DuplicateDefaults
# ExecutionWarning: Cannot find function DuplicateMirrorX
# ExecutionWarning: Cannot find function HyperShadeMarkingMenu_Press
# ExecutionWarning: Cannot find function HyperShadeMarkingMenu_Release
# ExecutionWarning: Cannot find function HyperShadePickWalkLeft
# ExecutionWarning: Cannot find function HyperShadePickWalkRight
# ExecutionWarning: Cannot find function HypershadeDownstream
# ExecutionWarning: Cannot find function HypershadePickWalkDown
# ExecutionWarning: Cannot find function HypershadePickWalkUp
# ExecutionWarning: Cannot find function HypershadeUpDownstream
# ExecutionWarning: Cannot find function HypershadeUpstream
# ExecutionWarning: Cannot find function Instance
# ExecutionWarning: Cannot find function InstanceMirrorX
# ExecutionWarning: Cannot find function Navigator
# ExecutionWarning: Cannot find function RenderViewAlpha
# ExecutionWarning: Cannot find function RenderViewBlue
# ExecutionWarning: Cannot find function RenderViewColor
# ExecutionWarning: Cannot find function RenderViewGreen
# ExecutionWarning: Cannot find function RenderViewRed
# ExecutionWarning: Cannot find function ToggleNurbsCurves
# ExecutionWarning: Cannot find function ToggleNurbsSurfaces
# ExecutionWarning: Cannot find function TogglePolygon
# ExecutionWarning: Cannot find function ToggleSubdiv
# ExecutionWarning: Cannot find function TransferSurfaceInfo
# ExecutionWarning: Cannot find function TransferSurfaceInfoOptions
# ExecutionWarning: Cannot find function WireframeToggle
# ExecutionWarning: Cannot find function XRayToggle
# ExecutionWarning: Cannot find function perspOutlinerView
imported api
imported core
adding pluginLoaded callback
adding pluginUnloaded callback
Updating pymel with pre-loaded plugins: Fur, DirectConnect, Mayatomr,
ikSpringSolver, spreadObjects, shaveNode, VectorRender, studioImport,
rotateHelper, MayaMuscle, fbxmaya, ik2Bsolver, RXF
Plugin loaded Fur
pymel: adding new commands: buildFurImages, buildFurFiles,
isFromReferencedFile, furPointOnMesh, furClosestFace, furMeshArea,
furSubdArea, furNurbsArea, furCompareFileTime
could not find callback id!
adding new nodes: FurGlobals, FurDescription, FurAttractors,
FurCurveAttractors, FurFeedback, furPointOnSubd, furPointOnMeshInfo
Plugin loaded DirectConnect
Plugin loaded Mayatomr
pymel: adding new commands: Mayatomr, convertLightmap,
convertLightmapSetup, mrFactory, MayatomrJob, mrProgress
could not find callback id!
adding new nodes: mentalrayFramebuffer, mentalrayOutputPass,
mentalrayRenderPass, mentalrayUserBuffer, mentalraySubdivApprox,
mentalrayCurveApprox, mentalraySurfaceApprox, mentalrayDisplaceApprox,
mentalrayOptions, mentalrayGlobals, mentalrayItemsList,
mentalrayShader, mentalrayUserData, mentalrayText,
mentalrayTessellation, mentalrayPhenomenon, mentalrayLightProfile,
mentalrayColorProfile, mentalrayVertexColors, mentalrayIblShape,
mapVizShape, mentalrayCCMeshProxy, cylindricalLightLocator,
discLightLocator, rectangularLightLocator, sphericalLightLocator,
dcdDepth, mia_physicalsun, mia_physicalsky, mia_material,
mia_material_x, mia_roundcorners, mia_exposure_simple,
mia_portal_light, mia_light_surface, mia_exposure_photographic,
mia_lens_bokeh, mia_envblur, mib_texture_vector, mib_texture_remap,
mib_texture_rotate, mib_bump_basis, mib_bump_map,
mib_passthrough_bump_map, mib_bump_map2, mib_lookup_spherical,
mib_lookup_cube1, mib_lookup_cube6, mib_lookup_background,
mib_lookup_cylindrical, mib_texture_lookup, mib_texture_lookup2,
mib_texture_filter_lookup, mib_texture_checkerboard,
mib_texture_polkadot, mib_texture_polkasphere, mib_texture_turbulence,
mib_texture_wave, mib_reflect, mib_refract, mib_transparency,
mib_continue, mib_opacity, mib_twosided, mib_refraction_index,
mib_dielectric, mib_ray_marcher, mib_illum_lambert, mib_illum_phong,
mib_illum_ward, mib_illum_ward_deriv, mib_illum_blinn,
mib_illum_cooktorr, mib_illum_hair, mib_volume, mib_color_alpha,
mib_color_average, mib_color_intensity, mib_color_interpolate,
mib_color_mix, mib_color_spread, mib_geo_cube, mib_geo_torus,
mib_geo_sphere, mib_geo_cone, mib_geo_cylinder, mib_geo_square,
mib_geo_instance, mib_geo_instance_mlist, mib_geo_add_uv_texsurf,
mib_photon_basic, mib_light_infinite, mib_light_point, mib_light_spot,
mib_light_photometric, mib_cie_d, mib_blackbody,
mib_shadow_transparency, mib_lens_stencil, mib_lens_clamp,
mib_lightmap_write, mib_lightmap_sample, mib_amb_occlusion,
mib_fast_occlusion, mib_fg_occlusion, mib_bent_normal_env,
mib_glossy_reflection, mib_glossy_refraction, mib_v2_geo_instance,
mib_v2_geo_instance_mlist, contour_store_function,
contour_store_function_simple, contour_contrast_function_levels,
contour_contrast_function_simple, contour_shader_simple,
contour_shader_silhouette, contour_shader_maxcolor,
contour_shader_curvature, contour_shader_factorcolor,
contour_shader_depthfade, contour_shader_framefade,
contour_shader_layerthinner, contour_shader_widthfromcolor,
contour_shader_widthfromlightdir, contour_shader_widthfromlight,
contour_shader_combi, contour_only, contour_composite, contour_ps,
ctrl_ghost_settings, ctrl_ghost_settings_mat, fgOcclusion,
objSettings, mi_metallic_paint, mi_bump_flakes, mi_car_paint_phen,
physical_lens_dof, physical_light, dgs_material, dgs_material_photon,
dielectric_material, dielectric_material_photon, oversampling_lens,
path_material, parti_volume, parti_volume_photon, transmat,
transmat_photon, mip_rayswitch, mip_rayswitch_advanced,
mip_rayswitch_environment, mip_card_opacity, mip_motionblur,
mip_motion_vector, mip_matteshadow, mip_cameramap, mip_mirrorball,
mip_grayball, mip_gamma_gain, mip_render_subset, mip_matteshadow_mtl,
mip_binaryproxy, shaveMRInstanceGeom, shaveMRGeomPasser,
shaveMRHairComp, shaveMRHairGeomDRA, shaveMRHairIllum,
shaveMRHairShadows, shaveMRRenderComp, shaveMRSatData,
shaveMRShadowMatte, shaveMRVertexIllum, simplePasses, misss_physical,
misss_physical_phen, misss_fast_shader, misss_skin_specular,
misss_lightmap_write, misss_lambert_gamma, misss_call_shader,
misss_set_normal, misss_fast_lmap_maya, misss_fast_simple_maya,
misss_fast_skin_maya, surfaceSampler, facet, transShader, kd, kdGeo,
normal, haggi_phen, svShader, volumeShader01, trans, threshold_volume,
Vue7xStreamEnvMR, depth_pheno
Plugin loaded ikSpringSolver
pymel: adding new commands: ikSpringSolverRestPose,
ikSpringSolverCallbacks
could not find callback id!
adding new nodes: ikSpringSolver
Plugin loaded spreadObjects
pymel: adding new commands: soCreateEqualizerMap,
soCreateDistributionMap, soEvalGroupRadius, soConvertToDag,
soGetAttributeMap
could not find callback id!
adding new nodes: spreadObjectsCreator, spreadObjectsLocator,
spreadObjectsOverlap, spreadObjectsMixer, spreadObjectsDeformer,
spreadObjectsDeformerLocator, spreadObjectsInfluence
Plugin loaded shaveNode
pymel: adding new commands: isShared, shaveIcon, shaveInfo,
shaveMayatomr, shaveNode, shavePadCmd, shaveUpdateTextures,
shaveRender, shaveStyle, shaveUtil, shaveWriteHair, shaveWriteRib
could not find callback id!
adding new nodes: shaveHair, shaveGlobals, shaveShadowNode, shaveNode,
shaveBackground, shaveVertexShader, shaveVolumeShader, shaveBrushManip
# ExecutionWarning: could not get inheritance for mayaType
shaveBrushManip
Plugin loaded VectorRender
pymel: adding new commands: vectorize
could not find callback id!
adding new nodes: vectorRenderGlobals
Plugin loaded studioImport
pymel: adding new commands: filterStudioImport
could not find callback id!
adding new nodes: studioClearCoat, smear
Plugin loaded rotateHelper
could not find callback id!
adding new nodes: rotateHelper
Plugin loaded MayaMuscle
pymel: adding new commands: cMuscleAbout, cMuscleWeight, cMuscleQuery,
cMuscleBindSticky, cMuscleRelaxSetup, cMuscleSplineBind, cMuscleCache,
cMuscleWeightSave, cMuscleWeightMirror, cMuscleCompIndex,
cMuscleWeightDefault, cMuscleSimulate, cMuscleRayIntersect,
cMuscleWeightPrune
could not find callback id!
adding new nodes: cMuscleObject, cMuscleSystem, cMuscleDirection,
cMuscleStretch, cMuscleDisplay, cMuscleSpline, cMuscleSplineDeformer,
cMuscleSurfAttach, cMuscleShader, cMuscleKeepOut, cMuscleDisplace,
cMuscleMultiCollide, cMuscleCreator, cMuscleDebug,
cMuscleSmartCollide, cMuscleFalloff, cMuscleSmartConstraint,
cMuscleRelative
Plugin loaded fbxmaya
pymel: adding new commands: FBXImport, FBXExport, FBXResetImport,
FBXResetExport, FBXBatchDialog, FBXSetUserParams,
FBXCheckForWebUpdates, FBXImportShowUI, FBXImportMode, FBXImportMerge,
FBXImportMergeAnimationOnly, FBXImportMergeBackNullPivots,
FBXImportConvertDeformingNullsToJoint, FBXImportHardEdges,
FBXImportEdgeSmoothing, FBXImportOverrideNormalsLock,
FBXImportProtectDrivenKeys, FBXImportMergeAnimationLayers,
FBXImportResamplingRateSource, FBXImportSetMayaFrameRate,
FBXImportQuaternion, FBXImportAxisConversionEnable,
FBXImportScaleFactorEnable, FBXImportScaleFactor, FBXImportUpAxis,
FBXImportCacheFile, FBXExportShowUI, FBXExportApplyConstantKeyReducer,
FBXExportQuaternion, FBXExportReplacePivotsByNulls, FBXResamplingRate,
FBXExportBakeComplexStart, FBXExportBakeComplexEnd,
FBXExportBakeComplexStep, FBXExportEmbeddedTextures,
FBXExportConvert2Tif, FBXExportInAscii, FBXExportBakeComplexAnimation,
FBXExportAnimationOnly, FBXExportHardEdges, FBXExportEdgeSmoothing,
FBXExportConstraints, FBXImportConstraints, FBXExportCharacter,
FBXImportCharacter, FBXRead, FBXGetTakeCount, FBXGetTakeIndex,
FBXGetTakeName, FBXGetTakeComment, FBXGetTakeLocalTimeSpan,
FBXGetTakeReferenceTimeSpan, DXFFBXOptions, FBXConvertUnitString,
FBXExportAxisConversionMethod, FBXExportUpAxis, FBXExportScaleFactor,
FBXExportCacheFile, FBXExportQuickSelectSetAsCache
Plugin loaded ik2Bsolver
pymel: adding new commands: addIK2BsolverCallbacks
could not find callback id!
adding new nodes: ik2Bsolver
Plugin loaded RXF
pymel: adding new commands: sunfishAttributes





------------------------------------------------------------------
This is what I get from maya2009:
-------------------------------------------------------------------
import pymel
error making __doc__
Trees module will use pure python implementation
error making __doc__
imported mayahook
Maya is already initialized as version 2009
Initialized API Cache in in 1.30 sec
Unable to open 'C:\daten\haggi\coding\pymel\mayaApiMelBridge2009.bin'
for reading the api-mel bridge
No api information for api class MPoint
No api information for api class MFloatPoint
# Error: too many values to unpack
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "C:\daten\haggi\coding\pymel\__init__.py", line 860, in
<module>
#     import core.pmtypes.factories as factories
#   File "C:\daten\haggi\coding\pymel\core\__init__.py", line 3, in
<module>
#     from general import *
#   File "C:\daten\haggi\coding\pymel\core\general.py", line 22, in
<module>
#     import pmtypes.wrappedtypes as _types
#   File "C:\daten\haggi\coding\pymel\core\pmtypes\wrappedtypes.py",
line 955, in <module>
#     class Color(Vector):
#   File "C:\daten\haggi\coding\pymel\core\pmtypes\wrappedtypes.py",
line 163, in __new__
#     newcls = super(MetaMayaArrayTypeWrapper, mcl).__new__(mcl,
classname, bases, classdict)
#   File "C:\daten\haggi\coding\pymel\core\pmtypes\factories.py", line
2603, in __new__
#     method = wrapApiMethod( apicls, methodName, newName=pymelName,
proxy=proxy, overloadIndex=overloadIndex )
#   File "C:\daten\haggi\coding\pymel\core\pmtypes\factories.py", line
2355, in wrapApiMethod
#     if argHelper.canBeWrapped() :
#   File "C:\daten\haggi\coding\pymel\core\pmtypes\factories.py", line
2057, in canBeWrapped
#     for argname, argtype, direction in self.methodInfo['args'] :
# ValueError: too many values to unpack #

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to