Welcome Guest [Log In] [Register]
LOM Traffic Stats
https://youtu.be/whBtH9AnKRo

Join Legends of Modding!



If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply:
[Solved] Unmirror Tool Tutorial, Script Error - Help Needed
Topic Started: Dec 15 2017, 11:37 AM (188 Views)
GamerNafZ
Member Avatar
PPSSPP Modder
So I was following Vinay1 bro's unmirror tool tutorial (HERE), but stuck in script portion.

i created a folder in C drive called Objects. Then put the @02.yobj folder Inside.

Posted Image

Then in Blender copied and Pasted the script,

but its showing error in line 16

Posted Image
.
.
I am using the latest blender, OS: Windows 10 64 Bit
- - Quote Go To Top
 
Vinay1
Member Avatar

The script i pasted was with error and i thought of correcting it but I forgot thanks ofr reminding me

import os
import bpy

#put the location folder where the obj's are located here in this fashion
#this line will only work on windows ie C:\Objects
path_to_obj_dir = os.path.join('C:\\Objects\\@02.yobj')

#get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))

#get a list of all files ending in obj
obj_list = [item for item in file_list if item.endswith('.obj')]

#loop through the strings in obj_list and add the files to the scene
for item in obj_list:
path_to_file = os.path.join(path_to_obj_dir, item)
bpy.ops.import_scene.obj(filepath = path_to_file)


Use this fixed it
There is also another way to do without script
Just by importing single obj its time taking but useful if you want sculpting you don't have to import thise obj again
- - Quote Go To Top
 
GamerNafZ
Member Avatar
PPSSPP Modder
still showing the same error in line 16, what blender version you use?
- - Quote Go To Top
 
GamerNafZ
Member Avatar
PPSSPP Modder
oh now i got it, its not the script problem, its copy paste problem..... the final two lines must have some spaces before, but when copy pasted in forum it deletes those spaces.... thanks for the help
Edited by GamerNafZ, Dec 15 2017, 12:33 PM.
- - Quote Go To Top
 
WWE MODDER

GamerNafZ
Dec 15 2017, 12:21 PM
oh now i got it, its not the script problem, its copy paste problem..... the final two lines must have some spaces before, but when copy pasted in forum it deletes those spaces.... thanks for the help
I CANT UNDERSTAND !

CAN YOU GIVE A SCREENSHOT HERE.

PLEASE
- - Quote Go To Top
 
GamerNafZ
Member Avatar
PPSSPP Modder
here it is, it should work
Attached to this post:
Attachments: code.txt (593 Bytes)
- - Quote Go To Top
 
_P1307_
Member Avatar

WWE MODDER
Mar 31 2018, 04:09 PM
GamerNafZ
Dec 15 2017, 12:21 PM
oh now i got it, its not the script problem, its copy paste problem..... the final two lines must have some spaces before, but when copy pasted in forum it deletes those spaces.... thanks for the help
I CANT UNDERSTAND !

CAN YOU GIVE A SCREENSHOT HERE.

PLEASE
can you plz stop using caps
Posted Image
Posted Image

- - Quote Go To Top
 
People's Champ
Member Avatar
People's Champ
thanx vinay1 and gamernafz it worked
- - Quote Go To Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · PSP Help & Support · Next Topic »
Add Reply:

Black Water created by tiptopolive of the Zetaboards Theme Zone