Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Owned by Victor

CG Python Academy (Free)

907 members • Free

3D artists learning Blender Python.

CP
CG Python Pro

1 member • $10/m

Memberships

Kourse (Free)

111.8k members • Free

Kourse

834 members • Paid

Skoolers

174.9k members • Free

Synthesizer

28.7k members • Free

WavyWorld

33.8k members • Free

289 contributions to CG Python Academy (Free)
Heed help with Export FBX operator
I'm trying to build an operator that moves selected objects to world origin (ignoring Z axis), runs 'Export FBX' operator and after execution (either finished or cancelled) the objects should move back to their original locations. The problem that 'Export FBX' is a modal operator and if I write 'move objects back' code after bpy.ops.export_scene.fbx('INVOKE_DEFAULT') , it executes right after the operator was called even if user haven't exported objects yet. So pretty much the objects should stay at world center until user clicks 'Export FBX' or 'Cancel' button because objects need to have their pivot points at the center when I import them to other programs such as Unreal. I can't wrap my head around how to do it. I was thinking of something like "if bpy.ops.export_scene.fbx('INVOKE_DEFAULT') returns {"FINISHED"} or {"CANCELLED"} -> do the thing", but it returns {"RUNNING_MODAL"} on call. Hope it makes sense :D Help please! I'll try to attach the code in comments as it says 'failed to upload an image' when I try to attach .py file here.
0 likes • 9h
You could create a wrapper dialog for the settings and then just call bpy.ops.export_scene.fbx( 'EXEC_DEFAULT', filepath=self.filepath, use_selection=self.use_selection, apply_unit_scale=self.apply_unit_scale, ... other settings go here )
0 likes • 9h
@Valentyn Porada Also, why can't you create a tmp copy of the thing you are exporting, modify the copy, export it, and then delete it? No need to get the results of the Export FBX
IGES file import add-on
I finally got my add-on working and packaged; I successfully installed it on another computer. It was a tricky first add-on, and I really appreciate the help I've received here. Huge thanks to @Victor Stepanov! I'll put it up on Github and make it available on Gumroad and Superhive for anyone who wants it off the shelf.
4 likes • Aug 19
@Gregory Tada congratulations !
1 like • 10d
@Gregory Tada it is not that hard to do that. If you want, I can guide you through this.
Completed “1. Welcome to Part 1 - Getting Started”
That was a great introduction to blender scripting. The provided scripts will be great study material. Off to a fun start. Many thanks, Victor
0 likes • 10d
[attachment]
Blender Python for Artists course
You can find the course in the Classroom tab. Please let me know if you have any questions or if you run into any issues!
Blender Python for Artists course
1 like • 24d
@Rectro Rectro Hey! Welcome!
0 likes • 11d
@T D hey Welcome 🙏
Introduction - Alfredo
I'm a retired Data Engineer. I'm interested in Python Programming, Geometric Algebra, AI, Animations, Blender for Animations. Looking forward to having fun with the available courses.
0 likes • 13d
@Alfredo Ramirez hey! Welcome welcome!
1-10 of 289
Victor Stepanov
6
1,011points to level up
@victor-stepanov
Helping artists learn the Python programming language.

Active 2h ago
Joined Oct 16, 2024
Powered by