Modcraft - The community dedicated to quality WoW modding!

Projects => Software Development => PyModelEditor => Topic started by: Tigurius on July 28, 2010, 12:24:23 pm

Title: [TOOL] PyModelEditor
Post by: Tigurius on July 28, 2010, 12:24:23 pm
So this is the Alpha Version, I'll release. It has been tested under Ubuntu and Windows Vista  until now, but it should run under every OS where a Python Interpreter and PyQt is available.

Things you need:
Python 2.6.x (other versions may work aswell) (http://www.python.org/download/)
PyQt4 (http://www.riverbankcomputing.co.uk/software/pyqt/download)
PyOpenGL (most likely) (http://pyopengl.sourceforge.net/)


Currently, it's mighty enough, to add animated textures to models:
(http://imagr.eu/up/4c0cd1e420d2b_AnimatedTexture.png)
(http://imagr.eu/up/4c50042236db3_goeseteditor.jpg)
Atm it has no global m2, so you need to edit the things one after another (it doesn't update globally, yet). Big models, like Character ones, may need some time to load.
Run it via the startme.py file.


Download (http://www.file-upload.net/download-2852355/pymodeleditor.zip.html)
Last Changes:
*Added LightEditor
*Added SequenceEditor
*Bugfixes
Old Versions:
DOWNLOAD NOW! (http://filebeam.com/97a07778a45d86305ebe52b51a79ebdf)
Old: http://www.file-upload.net/download-2593348/pymodeleditor.zip.html
Older: File-Upload.net - PyModelEditor-AlphaRelease.zip (http://www.file-upload.net/download-2580684/PyModelEditor-AlphaRelease.zip.html)
Title: Re: [TOOL] PyModelEditor
Post by: Ultradeth on September 17, 2010, 05:18:55 am
Ive downloaded everything, but what do I open?
Title: Re: [TOOL] PyModelEditor
Post by: Tigurius on September 17, 2010, 12:17:10 pm
Quote
Run it via the startme.py file.
Title: Re: [TOOL] PyModelEditor
Post by: Ultradeth on September 17, 2010, 09:21:27 pm
It opens then instantly closes...
Title: Re: [TOOL] PyModelEditor
Post by: Tigurius on September 20, 2010, 02:40:06 pm
Start it via cmd (Shift+righ click -> start command prompt -> either startme.py or python startme.py) and then post which errors occured.
Title: Re: [TOOL] PyModelEditor
Post by: gorq on September 25, 2010, 03:51:55 pm
it does not load pandarenmonk model... Can i make something to load this model in pymodeleditor?
Title: Re: [TOOL] PyModelEditor
Post by: Tigurius on September 26, 2010, 02:21:50 am
For me it does.
Can you give me the error?
Title: Re: [TOOL] PyModelEditor
Post by: gorq on September 26, 2010, 10:14:47 pm
sure

Code: [Select]
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorpymodeleditor.py", line 156, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 1095, in __init__
    f = open(filename,"r+b")
IOError: [Errno 22] invalid mode ('r+b') or filename: PyQt4.QtCore.QString(u'')
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorpymodeleditor.py", line 156, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 1134, in __init__
    self.particle_emitters = ReadBlock(f,hdr.particle_emitters,Particle,self.anim_files)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorwowfile.py", line 31, in ReadBlock
    temp = func().unpack(f,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 739, in unpack
    self.Enabled = AnimBlock().unpack(f,DATA_INT,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 337, in unpack
    temp = AnimSub().unpack(f,type)
  File "C:Documents and SettingsAdministradorEscritoriotemppymodeleditorm2.py", line 245, in unpack
    temp, = struct.unpack("i",f.read(4))
struct.error: unpack requires a string argument of length 4

Title: Re: [TOOL] PyModelEditor
Post by: Tigurius on September 29, 2010, 12:30:19 am
Have you all the *.anim files in the directory?

Also try the newest version:
http://www.file-upload.net/download-285 ... r.zip.html (http://www.file-upload.net/download-2852355/pymodeleditor.zip.html" onclick="window.open(this.href);return false;)
Title: Re: [TOOL] PyModelEditor
Post by: gorq on September 29, 2010, 02:50:59 pm
I have extracted all .anim files in the same folder; and tried with new version; but pandarenmonk seems to not work.

Code: [Select]
Traceback (most recent call last):
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorpymodeleditor.py", line 188, in openM2
    self.m2 = M2File(openname)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 1134, in __init__
    self.particle_emitters = ReadBlock(f,hdr.particle_emitters,Particle,self.anim_files)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorwowfile.py", line 31, in ReadBlock
    temp = func().unpack(f,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 739, in unpack
    self.Enabled = AnimBlock().unpack(f,DATA_INT,animfiles)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 337, in unpack
    temp = AnimSub().unpack(f,type)
  File "C:Documents and SettingsAdministradorEscritoriopymodeleditorm2.py", line 244, in unpack
    temp, = struct.unpack("i",f.read(4))
struct.error: unpack requires a string argument of length 4



New version is great!!! :D Maybe you could add a UV Mapping util? ^^ This could fix a bit the Murloc :D:D

EDIT:

I want to add a bug i have noticed. When i modify texture type, PyModelEditor broke .anim animations. I have changed texture type via hexedit and it works fine ^^

EDIT2:

i think i have nothiced another bug in attachment point. When adding or modifing them it brokes .anim animations too. i have tried with m2modder and attachment adder and it works fine.
Title: Re: [TOOL] PyModelEditor
Post by: Herbalism on December 05, 2010, 10:59:59 pm
Ok, to be completely honest here... I don't understand what this tool can do/does.
Title: Re: [TOOL] PyModelEditor
Post by: Jøk3r on December 27, 2010, 01:20:42 am
I can't start the programm. It close itselfs instant :/
Title: Re: [TOOL] PyModelEditor
Post by: Eluo on February 06, 2011, 04:43:41 pm
Take a look ito the log or post it in here :)
Title: Re: [TOOL] PyModelEditor
Post by: Serifaz on February 08, 2011, 04:11:03 am
Hey trying to get this program working...
not working out for me.

I did all of the above I downloaded all the files... I think my problem is I don't know what I am supposed to do with them / don't know were to put them / I need details.

I am kinda retarded when it comes to this stuff so I need a lot of details...
I have never ever ever EVER run python.
so please help me do this it would help me a lot with Ashbringer.

I have run the
startme py by running cmd. and then selecting it...
I don't know what you meen by shift right click.
that doesn't do anything when I try it but bring up the normal right click menu.

any help would be greatly appreciated, thanx in advance.
Title: Re: [TOOL] PyModelEditor
Post by: SirFranc on February 14, 2011, 01:31:30 am
I installed everything, on startup pops an error:
Import Error: DLL load failed %1 is not a valid application of win32

O.o'
i wrote startme.py on the prompt...
Title: Re: [TOOL] PyModelEditor
Post by: Serifaz on March 29, 2011, 09:48:33 am
Hey guys still trying to get this to work, I have finaly got pyqt4 opengl and python 2.6 but when I run the module it just gives me this error

Code: [Select]
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
   
IDLE 2.6.6      ==== No Subprocess ====
>>>
Traceback (most recent call last):
  File "C:UsersGamesOverDesktopPyModelEditor AlphaReleasestartme.py", line 4, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4
>>>


my best guess is that something is in the wrong directory, seeing as it is telling me there is no such module as pyqt4... can someone explain to me were pyqt4 is supposed to be in relation to python and were opengl 2.6 should be installed / what folder the pyqt contents should be in...
In a sum up how do I setup the files for pyqt4 opengl python and pymodel editor so they work with each other.
I would love to get this tool working but still having trouble please anyone that knows how to do this, please help.  :cry:
Title: Re: [TOOL] PyModelEditor
Post by: gorq on April 22, 2011, 01:17:52 pm
i want to try ur new color, light and particle emissor editors; i will give feedback soon ^^ Thnx to be still developing it.
Title: Re: [TOOL] PyModelEditor
Post by: Zim4ik on May 11, 2011, 07:41:53 pm
Yeah! It`s working for me!

TIP: Download QT witch matches with your python version
example: if python 2.66 download PyQt-Py2.6-x86-gpl-4.8.4-1.exe   Windows 32 bit installer
Title: Re: [TOOL] PyModelEditor
Post by: Supora on May 23, 2011, 04:44:10 pm
i have a import error
cannot import name QtCore
Title: Re: [TOOL] PyModelEditor
Post by: Vel on May 24, 2011, 01:16:59 pm
if the model has particle pymodeleditor an error. (v51)
http://img109.imageshack.us/img109/4941/vellear89834.jpg
may be in the next version this will be fixed?
(if the model has no particles, then the button (Edit particles) automatically would create an "empty" particle)
Title: Re: [TOOL] PyModelEditor
Post by: gorq on June 12, 2011, 05:04:47 pm
I think something is wrong with writing bloick. Models modified by pym2 does not usually works for other programs. Maybe is it changing some format stuff? Wow reads it nice but i have several problems with this edited models then
Title: Re: [TOOL] PyModelEditor
Post by: Garthog on July 19, 2011, 09:00:04 pm
Quote
C:Python32>python.exe C:UsersAymericDocumentsWorld of Warcraftpymodeledito
rpymodeleditorstartme.py
python.exe: can't open file 'C:UsersAymericDocumentsWorld': [Errno 2] No suc
h file or directory

C:Python32>python.exe "C:UsersAymericDocumentsWorld of Warcraftpymodeledit
orpymodeleditorstartme.py"
Traceback (most recent call last):
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
startme.py", line 4, in <module>
    from pymodeleditor import PyModelEditor as Editor
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
pymodeleditor.py", line 16, in <module>
    from glView import *
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
glView.py", line 74
    print "oO"
             ^
SyntaxError: invalid syntax

This is what i'm getting when I run it via startme.py.
I have Python32.
Title: Re: [TOOL] PyModelEditor
Post by: Vel on July 21, 2011, 02:44:57 am
Quote from: "Garthog"
Quote
C:Python32>python.exe C:UsersAymericDocumentsWorld of Warcraftpymodeledito
rpymodeleditorstartme.py
python.exe: can't open file 'C:UsersAymericDocumentsWorld': [Errno 2] No suc
h file or directory

C:Python32>python.exe "C:UsersAymericDocumentsWorld of Warcraftpymodeledit
orpymodeleditorstartme.py"
Traceback (most recent call last):
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
startme.py", line 4, in <module>
    from pymodeleditor import PyModelEditor as Editor
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
pymodeleditor.py", line 16, in <module>
    from glView import *
  File "C:UsersAymericDocumentsWorld of Warcraftpymodeleditorpymodeleditor
glView.py", line 74
    print "oO"
             ^
SyntaxError: invalid syntax

This is what i'm getting when I run it via startme.py.
I have Python32.
pymodeleditor works only in 2.6 python.
Title: Re: [TOOL] PyModelEditor
Post by: gorq on August 02, 2011, 04:16:25 pm
Inico and me has noticed some bugs on Pymodel.

It brokes some anims (usually talk, laught and emotework)
Added attachment points do not work well (they do not appear or exist)
The first Material is always bugged, u can change the stuff but when u save it or u change to another material, the first one becomes as it was at the beginning.

DP: To the newly users that are having trouble installing it: U have to use, u must use Python 2.6.6 (or 2.6.7), pyqt4 for python 2.6 and pyopengl 3.0 (for 2.6)
Title: Re: [TOOL] PyModelEditor
Post by: phucko1 on August 08, 2011, 02:20:27 pm
Can I use PyModelEditor to make a Creature to Character edit? For example; Tigon with armor?
I got PyME alr but is it attachment I shall add for armor or geosets? :P
Title: Re: [TOOL] PyModelEditor
Post by: Vel on August 09, 2011, 11:15:52 am
Quote from: "phucko1"
Can I use PyModelEditor to make a Creature to Character edit? For example; Tigon with armor?
I got PyME alr but is it attachment I shall add for armor or geosets? :P
Yes, you can.
-----
In the Textures are several types.
Hardcoded - the texture is only used in the specified path.
Item  capes - This type of texturee used in, armor and weapons textures. The path to the texture is taken from the DBC. (itemdisplayinfo)
Body or Clothes - This type of texture used to texture the character's body and put on their armor (armor texture boots, gloves, bracers etc.)
------
Just change the type of texture.
------
If you want to dress to Tigon, a helmet and shoulders. You need to add three attachment. Open any character model (for example: Humanmale.m2) in py, and see how they are made for attachments them.
(http://i.hebimage.com/0811/4e40fd06bc352.png)
Full image: http://i.hebimage.com/0811/4e40fd06bc352.png (http://i.hebimage.com/0811/4e40fd06bc352.png" onclick="window.open(this.href);return false;)
Title: Re: [TOOL] PyModelEditor
Post by: Steff on August 09, 2011, 11:47:00 am
Tigu a add you a project on the traker.
There you can collect bugs and feature requests.

bugtraker/index.php?do=toplevel&project=6 (http://modcraft.io/bugtraker/index.php?do=toplevel&project=6" onclick="window.open(this.href);return false;)
Title: Re: [TOOL] PyModelEditor
Post by: Vel on August 09, 2011, 01:00:27 pm
Quote from: "Steff"
Tigu a add you a project on the traker.
There you can collect bugs and feature requests.

bugtraker/index.php?do=toplevel&project=6 (http://modcraft.io/bugtraker/index.php?do=toplevel&project=6" onclick="window.open(this.href);return false;)
Great!
Title: Re: [TOOL] PyModelEditor
Post by: gorq on August 24, 2011, 11:05:52 pm
bugtracker is not workin for me (im still registered and loged in)
Title: Re: [TOOL] PyModelEditor
Post by: Vel on August 25, 2011, 07:59:46 am
Oo, I have everything working
Title: Re: [TOOL] PyModelEditor
Post by: frezer748 on September 06, 2011, 10:04:38 pm
i install all 3 setup's from  viewtopic.php?f=53&t=164 (http://modcraft.io/viewtopic.php?f=53&t=164" onclick="window.open(this.href);return false;)

but when i start "startme.py" comes follow error : (picture is in german) http://www.imagebanana.com/view/7mt6m9z7/problem.png (http://www.imagebanana.com/view/7mt6m9z7/problem.png" onclick="window.open(this.href);return false;)

i have windows 7 64 bit, maybe i download the wrong setup's .. but it can't be the problem, can me send anyone maybe the direct downlaod link to the right setup's? when it's the problem
Title: Re: [TOOL] PyModelEditor
Post by: Shrexx on October 16, 2011, 10:41:05 am
WoW, its great that something like that is possible to code in python O.O

I'm also learning Python, but i'm just at the very basic stuff, maybe in a few months I can understand how you coded this programm ;=)
Title: Re: [TOOL] PyModelEditor
Post by: Zim4ik on November 11, 2011, 10:36:04 am
reinstall python 2.6
Title: Re: [TOOL] PyModelEditor
Post by: galaris on November 12, 2011, 08:34:16 pm
This one looks pretty interesting too, gonna check it out!
Title: Re: [TOOL] PyModelEditor
Post by: gernard21 on December 12, 2011, 02:12:07 am
When i try to open it via startme it says it's not a valid windows 32 application. Any idea how to fix this?
Title: Re: [TOOL] PyModelEditor
Post by: granthill on January 23, 2012, 12:01:30 pm
so good work
Title: Re: [TOOL] PyModelEditor
Post by: Vel on January 24, 2012, 04:12:53 am
Quote from: "gernard21"
When i try to open it via startme it says it's not a valid windows 32 application. Any idea how to fix this?

Installs in the order listed in this topic: viewtopic.php?f=53&t=1288 (http://modcraft.io/viewtopic.php?f=53&t=1288" onclick="window.open(this.href);return false;)
Title: Re: [TOOL] PyModelEditor
Post by: KevinBM on February 16, 2012, 08:31:52 pm
Doesn't work for me, could anyone help me? I tried everything, but this is too difficult for me -.-



Quote
(http://[url=http://www.pic-upload.de/view-13003429/opengyl.jpg.html][IMG]http://www10.pic-upload.de/16.02.12/v9po9vfe4ng.jpg)[/url][/img]
Title: Re: [TOOL] PyModelEditor
Post by: Vel on February 22, 2012, 07:09:16 pm
Quote from: "KevinBM"
Doesn't work for me, could anyone help me? I tried everything, but this is too difficult for me -.-



Quote
(http://[url=http://www.pic-upload.de/view-13003429/opengyl.jpg.html][IMG]http://www10.pic-upload.de/16.02.12/v9po9vfe4ng.jpg)[/url][/img]

Several times I wrote on the forum what you need - to pymodeleditor to work properly.

I advise you to try their hand at something more easy such as Starcraft ll or Warcraft 3 maping.
Title: Re: [TOOL] PyModelEditor
Post by: frezer748 on March 26, 2012, 05:05:34 pm
Pymodeledtitor don't work for me, but i installed all 2.6 Versions and 64 bit too.

here are 3 screens


http://www.imagebanana.com/view/8mv7g2wh/error1.png (http://www.imagebanana.com/view/8mv7g2wh/error1.png" onclick="window.open(this.href);return false;)

http://www.imagebanana.com/view/f2suv7pm/error2.png (http://www.imagebanana.com/view/f2suv7pm/error2.png" onclick="window.open(this.href);return false;)

http://www.imagebanana.com/view/9c9eit0r/error3.png (http://www.imagebanana.com/view/9c9eit0r/error3.png" onclick="window.open(this.href);return false;)

PS: maybe the setup's are wrong, but the download links here in the forum are deleted, so they aren't working anymore. And other things I don't find on google...
Title: Re: [TOOL] PyModelEditor
Post by: Christoffel on June 10, 2012, 08:35:41 pm
I can not run on my operating system: (

(http://img696.imageshack.us/img696/3594/errorxy.png) (http://imageshack.us/photo/my-images/696/errorxy.png/)
 
ImportError: DLL load failed:% 1 is not a valid Win32 application
Title: Pymodel Editor Reupload
Post by: Serifaz on September 09, 2012, 10:06:52 pm
Hey guys.
I noticed the latest version of pymodel editor link takes you to file upload, which when i click download it takes me to an error page. I was wondering if someone could re upload the latest version?
Title: Re: [TOOL] PyModelEditor
Post by: LukeStrike on April 05, 2014, 03:31:22 am
Link down?
Title: Re: [TOOL] PyModelEditor
Post by: Roxas on April 13, 2014, 02:16:11 pm
can you reupload this file
Title: Re: [TOOL] PyModelEditor
Post by: leeviathan on November 08, 2015, 11:22:38 am
Also looking for an up to date version of this in my never ending quest to be able to resize 1 stupid model. I finally managed to get mine running (my problem was using 64 bit versions, you have to use 32 bit versions of python 2.66, pyqt4 for 2.66 python, and pyopengl)
Title: Re: [TOOL] PyModelEditor
Post by: UltraNic on November 10, 2015, 01:56:25 pm
What is this Tool doing? What can you do with it?
Title: Re: [TOOL] PyModelEditor
Post by: Vortalex on January 12, 2016, 12:16:14 am
Gonna bump this because currently there is no working link for this application anywhere. If anyone has the latest version please upload.
Title: Re: [TOOL] PyModelEditor
Post by: Skarn on January 14, 2016, 09:24:12 am
It is funny but it is in the very next topic. Anyway, here you go. viewtopic.php?f=53&t=3846 (http://modcraft.io/viewtopic.php?f=53&t=3846" onclick="window.open(this.href);return false;)
Title: Re: [TOOL] PyModelEditor
Post by: Vortalex on January 18, 2016, 01:29:21 pm
Quote from: "Skarn"
It is funny but it is in the very next topic. Anyway, here you go. viewtopic.php?f=53&t=3846 (http://modcraft.io/viewtopic.php?f=53&t=3846" onclick="window.open(this.href);return false;)

I used the search box to find the thread so I didn't see it on the board. Thanks for the link.
Title: Re: [TOOL] PyModelEditor
Post by: Simple_Spectr on January 10, 2017, 04:12:27 pm
Link is dead. Update it plz :)