About us Careers Contact us Investor relations Trust center Newsroom Privacy/Cookies (Updated) | Legal Notices & Trademarks | Report Noncompliance | Site map | © 2016 Autodesk Inc. cmds.setAttr( IkStretch_MultNode + '.input1X', cmds.getattr(IkStretch_DivNode + '.input1X') ) share|improve this answer answered Feb 26 '15 at 10:48 Eithos 1,38338 Ahh, that makes complete sense, thank you. Eduardo Grana 2014-10-15 15:58:24 UTC PermalinkRaw Message Hello Flaye,Maybe you are trying to set a double3 type with this?[(24.1303752966691, 1.4210854715202004e-13, 5.329070518200751e-15)]If this is the case,be aware, you have a list with in this case....and in fact, it is in the documentation...) But still failssetAttr "plumber_grp.parts" -type "stringArray" size($parts) $parts; joojaa 2013-02-10 10:14:36 UTC #3 setAttr "plumber_grp.parts" -type "stringArray" size($parts) $parts; Wont work, Check This Out
In my case, I did the following: cmds.setAttr(Node + '.input1X', float(variable)) share|improve this answer edited May 29 '15 at 13:39 milz 7,073112952 answered May 29 '15 at 13:19 3dmpro 1 add If you weren't using pyMel you could still get around it by referencing the individual element: print color # Result: .3 but pyMel seems infinitely better for this kind of thing hansesurfer 2013-03-05 12:38:24 UTC #4 Peter, in case you are still looking for a solution for setting a stringArray attribute, heres the right way
(Im stopping on creativeCrash only rarely) // group Do you save your files in increments? look at this site
Should be fully possible if you know what you're doing(or get lucky?) 0 · Share on TwitterMy site || ShaderFX TGA PBL shader || Video Tutorials||Cube map pack || Cube map sometimes maya will not load certain plugins. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. Ted Charlton Re: [Maya-Python] Re: how to change this mel co...
Thank you again! –robek Feb 27 '15 at 7:42 add a comment| up vote 0 down vote In my case, the variable being assigned to be set as the new attribute If you ain't got one, what is the resulting behaviour of this script and what did you expect? An easy way of figuring out stuff like this, by the way, is manually connecting stuff in Maya and seeing the MEL output in the script editor. this page Board index The team • Delete all board cookies • All times are UTC - 5 hours Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group current community chat Stack
Join them; it only takes a minute: Sign up Querying a shading node Maya Python up vote 0 down vote favorite I am currently having a problem where i want to The makes it very hard to then setAttr with that info. But maybe a few quick reminders if you haven't tried these already.. 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
Why aren't we sending quadcopters to mars? http://python_inside_maya.narkive.com/IRUvPjSp/maya-python-runtimeerror-setattr def stretchyIK(firstJointStore, lastJointStore, side, limb): GlobalMoveRig = cmds.rename ('GlobalMove_Grp_01') locFirstJoint = cmds.spaceLocator (n='Loc_' + firstJointStore + '_0#') locLastJoint = cmds.spaceLocator (n='Loc_' + lastJointStore + '_0#') pointLoc1 = cmds.pointConstraint (side + '_Fk_' a ma file is essentially a mel script. Especially not anymore...
Not the answer you're looking for? his comment is here But thank-you. 0 · Share on Twitter Offline / Send Message Illusions October 2012 martynball wrote: » Secondly, Maya is retarded - why not just save WHAT IS MADE rather than My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages Highend3d Forums Log In setAttr with stringArray Maya mel Tags: #
Italso does not update the code for finding the primary joint orientationaxisI'll update once I (hopefully) find the culprit.--You received this message because you are subscribed to the Google Groups "Python Can you benefit from a second casting of Armor of Agathys while the first is still active? That will often times mess things up when trying to re-open a file. 0 · Share on Twittercharacter artist : portfolio : blog Offline / Send Message martynball October 2012 Would this contact form Mesh: https://dl.dropbox.com/u/63494571/University/VFX/Semester%201/Digital%20Presentation/mesh.ma 0 · Share on Twitter Offline / Send Message kodde polycounter lvl 11 October 2012 You could give it a try.
You need to start deleting history more often as it has a tooooooon of nodes. Loading... setAttr interpreted the variable value as text, even though the value was input as a float value.
The code is identical for both.thanks--You received this message because you are subscribed to the Google Groups"Python Programming for Autodesk Maya" group.To unsubscribe from this group and stop receiving emails from And where do I delete the history, ive been looking for that button. The characters are just references for the scale, it's all the other objects that I need. Download & Installation New: Get an Activation Code Mac OS X 10.12 Support Windows 10 Support Autodesk Online Store Help Software Downloads Serial Numbers & Product Keys Installation & Licensing Online
The code is identical for both.thanks--You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.To unsubscribe from this group and stop receiving emails But it throws an error if I try to print color #list index out of range# Color prints out (.3, .5, 1) cmds.setAttr('mia_material_x_passes4.refl_color', type="float3", *color) throw out an error also... # Thanks 0 · Share on Twitter Offline / Send Message martynball October 2012 Okay, I read somewhere that I could try and find the problem in the MA file, so I navigate here Can you have negative sets?
So even if you were to remove those history states you wouldn't have the sphere if you see what I mean. 0 · Share on TwitterMy site || ShaderFX TGA PBL You'll get the real deal every time, and translating that stuff to Python afterwards is quick. It flags up this error: // Error: line 3772: setAttr: Error reading data element number 17: 4 Here is the code, it's funny that the setAttr is actually on like 3773: more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
My knowledge in rigging is really limited so I'll try to help you as much as I can. –DrHaze Feb 26 '15 at 10:13 The error is... "Error reading