Error Reading Data Element Number 1
portfolio My Forum Profile Upload Art Upgrade accountCGConnect Benefits Email Subscriptions Log out Register Login Login Login using your username or email. You don't have an account yet? No worries, joining is easy. Username / Email Password {{loginErrorMsg}} Login Register | Reset password CGTalk > Software > Autodesk Maya > Maya Programming > python setAttr error PDA View Full Version : python setAttr error Pixlmonky05-13-2010, 02:31 PMI am trying to get color information from an attribute, then set that color somewhere else. color = cmds.getAttr('mia_material_x_passes1.diffuse') cmds.setAttr('mia_material_x_passes1.refl_color', type="float3", color) I get this error # Error: RuntimeError: file
2016NAB 2016GDC 2016VES 2016Past EventsUser GroupsChapter listDownloadsTexturesShadersPluginsFun ExtrasScriptsPresetsCompounds3d ModelsMaya Bonus ToolsPost a TexturePost a ShaderPost a PluginPost a ScriptPost a Fun ExtraPost a PresetPost a CompoundPost a 3d ModelJobsCompanies Looking for ArtistsArtists Looking for JobsPost your job OpeningPost your resuméGalleryUpload your workBlogsSoftware3ds MaxFlameMayaMaya LTMotionBuilderMudboxSmokeSoftimageEntertainment Creation SuiteIndustryFilm & TVGamesDesign VisualizationForumsProducts3ds MaxCharacter GeneratorFBXFlameMayaMaya LTMotionBuilderMudboxShowcaseSmokeSoftimageStingrayTopicAREA Website SupportGame Making Create Account Sign In Help CommunityCategoryBoardArticlesUsers turn on suggestions Auto-suggest helps http://forums.cgsociety.org/archive/index.php?t-881959.html you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean Search the Community Advanced Search Forums | Ideas Browse by product Products 3ds Max A360 Products Advance Steel Alias APIs and Programming ArtCAM AutoCAD AutoCAD 360 http://forums.autodesk.com/t5/maya-forum/quot-errors-have-occured-while-reading-this-scene-that-may/td-p/5886662 AutoCAD Architecture AutoCAD Civil 3D AutoCAD Electrical AutoCAD for Mac AutoCAD Land Desktop AutoCAD LT AutoCAD Map 3D AutoCAD Mechanical AutoCAD MEP AutoCAD P&ID AutoCAD Plant 3D AutoCAD Raster Design AutoCAD Structural Detailing AutoCAD Utility Design Autodesk Media and Entertainment AutoSketch BIM 360 Building Ops Buzzsaw BXD: Synthesis CFD Configurator 360 Constructware Design Review DWG TrueView Exchange Apps Fabrication FeatureCAM Flow Design ForceEffect FormIt 360 Fusion 360 Fusion Connect Fusion Lifecycle Fusion Team Game Making Helius Composite Helius PFA Infrastructure Map Server InfraWorks 360 Insight 360 Inventor Inventor HSM & HSMWorks CAM Maya Mechanical Desktop Mockup 360 Moldflow Nastran Nastran In-CAD Navisworks Point Layout PowerInspect PowerMill PowerShape ReCap 360 ReMake Remote Revit Robot Structural Analysis Screencast & Project PRAXIS SimStudio Simulation Mechanical Smoke Structural Bridge Design Vault VRED New Users Getting Started with your Autodesk Product Suites Factory Design Utilities Product Design Suite International Forums
after effectsnukephotoshopshake Resources Free Downloads Digital Marketplace Forums Tutorials Jobs Schools Community People Studios Editor's Pick Gallery Portfolios Videos Blogs News News/Events Post Your News Contact Contact Us About Us Advertising https://www.creativecrash.com/forums/mel/topics/setattr-with-stringarray--2 Newsletter Upload Free Downloads Marketplace Assets News Tutorials Training Portfolio Images Videos https://www.mail-archive.com/python_inside_maya@googlegroups.com/msg01270.html Home » Forums » Maya Boards » MEL » setAttr with stringArray Topic 194 of 7662 3D Forums Show All 2D and VFX Shake Combustion Digital Fusion After Effects Flint/Flame/Inferno Nuke Photoshop Motion DVD Studio Pro Final Cut Pro 3D Forums Softimage Houdini RenderMan renderers and plug-ins error reading Autodesk Design/Surface/Automotive 3ds max General Bodypaint 3D Cinema4D Maya Boards XSI Boards Zbrush in production pipelines Motion Builder Mudbox Sketchup Stock Asset Sales Audio Forums Sound Track Pro Galleries and Works WIP (works in progress) For Students WIP (Works in progress) For Professionals Gallery: Finished Work : User Submitted Global 2D/3D Forums 4 Sale Forums Linux Forum Hardware Discussions Admin Highend3d error reading data V5 New Design FAQ : Your transition Guide General Industry Discussions Tech News: from around the web Jobs and Careers Career and Industry Advice Non Paying Job Board (For jobs that DO NOT pay) Site Forums CreativeCrash Bugs - post bugs here Maya Boards Show All 3ds max General Autodesk Design/Surface/Automotive Bodypaint 3D Cinema4D Houdini Maya Boards Animation API Cloth Dynamics & Effects Fluids Games Related General Usage MEL Mental Ray Modeling New User PaintFX / Fur / Hair Python Rendering/Lighting/Shading Renderman for Maya Plugin Rigging/Character Setup Wish List Motion Builder Mudbox RenderMan renderers and plug-ins Sketchup Softimage Stock Asset Sales XSI Boards XSI Animation XSI Developers/Scripting XSI General XSI Modeling XSI Rendering/Lighting Zbrush in production pipelines MEL Show All Animation API Cloth Dynamics & Effects Fluids Games Related General Usage MEL Mental Ray Modeling New User PaintFX / Fur / Hair Python Rendering/Lighting/Shading Renderman for Maya Plugin Rigging/Character Setup Wish List Index > 3D Forums > Maya Boards > MEL Categories Latest Active Search setAttr with stringArray Peter Vogel Feb 10, 2013 Post id: 311411 Hi everyone,I try to use setAt
hoped they might. The clue for me that got me going was in his error: # RuntimeError: Error reading data element number 7: 0 That told me that some of the data elements were reading without errors based on the nurbsCurve type. I tried any reference I could think of, but the one that wins in the end is the good old node description for nurbsCurve, I just didn't know it as it stared me in the face. But I tried passing both the knots and the cvs as lists, lists of tuples.... The funky part started in when I started getting the next dataType correct, and then it would skip a data element and complain about the following one. I still didn't clue in for some time. At one point I thought the cv list of tuples might not be defined by the number preceding, as I would add another tuple and it seemed to ask for more. So I doubled up the list of cvs with a copy paste and it went through. After that I noticed that the cvs that were created were every other one, and then I looked back at the description in the node docs to try and understand it. It is good to remember that Python can't just drop arguments it doesn't need at the moment the way MEL can. The Python version of this dataType must account for the full description of the dataType (the un-needed W values in this instance) so Python will parse the arg list correctly. It can properly ignore those elements it doesn't use, but it needs everything it needs in its expected place in the arg list. - JohnCreson On Fri, May 15, 2009 at 8:25 PM, Paul Molodowitch