View previous topic :: View next topic |
Author |
Message |
Jetfire
Joined: 27 Nov 2013 Posts: 2
|
Posted: Tue Jan 21, 2014 10:44 pm Post subject: Output scale solution. |
|
|
Hello all.
I have recently been using K3DSurf and found it a cool little piece of software. However, I found out that the scale of the obj files it outputs is off. Seeing as I could not find any solution at the time, I wrote a script in Python to do so for me. Apologies if this problem has already been solved.
Requirements of Use:
-> Python 3.3 or greater if you want to use the run with double click feature
OR
Python 3 or greater if you know how to run a Python script
-> To know the intended size of the object. So long as the use knows the
total (intended) length of the object along any of the major axes
(x, y or z) , then he/she will have enough.
-> The script has to be in the same location as the OBJ file.
The script should guide you through most of the process.
Feel free to leave any comments. Bugs, recommendations, anything. I'm quite new to Python, so I wouldn't be surprised if there was a better way to do half the things this script does. If someone knows how to convert this script into an executable, feel free to notify me. I tried a couple of things, but most of the tools aren't yet available for Python 3.
The link:
https://www.dropbox.com/s/9rz4305uqz45kfy/ScaleOBJ.py |
|
Back to top |
|
 |
AmazingText
Joined: 19 Dec 2014 Posts: 1
|
Posted: Mon Dec 22, 2014 3:15 am Post subject: |
|
|
Wow Wow !!! Amazing . How can you do it? I never see. |
|
Back to top |
|
 |
Jetfire
Joined: 27 Nov 2013 Posts: 2
|
Posted: Fri Sep 18, 2015 3:20 am Post subject: |
|
|
Oh hey, a reply! I know this is old now, but I've changed my settings to send me an email if another post appears here.
Are you having trouble using the script, or are you asking how it works? |
|
Back to top |
|
 |
nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539
|
Posted: Sat Sep 19, 2015 4:38 pm Post subject: |
|
|
Hi,
Just to say that in MathMod, the output .OBJ file contain the exact values of the 3D coordinates so you don't have to resize later your output file. _________________ Cheers,
Abderrahman |
|
Back to top |
|
 |
|