ya this isnt a pymel thing, just a python thing, what kinda text file is it? if just plain text or csv, you can do what haiddaslami said. But if it is more complex Data like XML or JSON you can use ElemeantTree for parsing XML data or python's JSON module. if you can provide a sample of the data, and how it needs to be…
EDIT: Nevermind. I haven't used this tool before, so wasn't sure what to expect, but a friend told me it still wasn't working for him. Haven't had a chance to properly test, but It appears to work if you copy the "lib" folder from "C:\Program Files\Quixel SUITE 2.0\colors\" to "C:\Program Files\Autodesk\3ds Max…
holy crap i haven't mentioned blender yet, it's totally free http://www.blender.org If a dumbass like me can use it, it must be good! It's python-powered, and exporters/importers are written in Python, so you could tweak them if you know what you doing. shame the commercial-level free software want your info in exchange…
Unless you're doing some low-level (hardware) programming work or interviewing for a job, bit-shifting is irrelevant. I would spend more time on learning how to build complex data structures and algorithms. And this is the area where Python really excels at(much much better than C/C++/C#/Java). For learning material, I…
Hi, It is currently possible (and has been since about 1.1) but we're cleaning up the API for doing so for 2.1 (in Beta at the moment) To perform a full replacement of the shading system pre 2.1 needed a combination of API calls and editing files. In 2.1 you can replace pretty much anything you like via python. New…
been using it at work and for several side projects - im also looking at the code side of things and now im building a small casual game called "Greedy Cookie" with unity (i might roll out for flash and mobile). i moved from c# to boo, as i prefer the python like syntax much more (i learned a bit of python a few months…
@skodone Thanks! Glad your enjoying them! @pasha_sevez : I'm very happy your finding the tools useful! Are you talking about something like this? I could try to implement something like that. I choose python as it was just more natural to me, I would advice against learning from my code as the way I'm doing things might…
"Discourage add-on developers to port their work now since the Python API will still change." Reads from the "Beyond the Code Quest blog post at code.blender.org So, you'll have to wait till September 19 when the final python API of Blender 2.80 is finished and add-on developers can finally port their add-ons to Blender…
1. Format dropdown, choose Code. 2. Paste some code. 3. Preview (looks OK) 4. Post Reply import MaxPlus somethingHappened = False def doSomething(): global somethingHappened somethingHappened = True print "I sleep all night and I work all day!" def printAction(a): print "id ", a.Id print "button text ", a.ButtonText print…
Heh, a few months of Python is more than enough to write an exporter for Blender (or any other app that uses it, I suppose). You only need to know the basic syntax, the file handling and Blender API can be looked up in the respective docs (I always write the scripts with the Python Tutorial or Reference and the Blender API…