Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpy.ops.import_scene.obj removed at bpy==4 #1

Open
KhanPython opened this issue Mar 12, 2024 · 1 comment
Open

bpy.ops.import_scene.obj removed at bpy==4 #1

KhanPython opened this issue Mar 12, 2024 · 1 comment

Comments

@KhanPython
Copy link

With newer versions of blender (>4) the following adjustments can be made to blenderScript.py:

parser.add_argument("--input") # Syntax change
parser.add_argument("--output") 

def render(x: Path):
    # Updated import function to the new API call. Not sure what an equivalent would be, but this works. 
    bpy.ops.wm.obj_import(filepath=str(x))
   
    bpy.context.scene.render.filepath = params["output"]
@OttoHatt
Copy link
Owner

OttoHatt commented Mar 14, 2024

Anecdotally most Roblox artists are on versions 3.x & 2.8. I am holding off updating the script until 4.x sees more adoption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants