Profile Picture

2 little tips when doing a 'round-trip' to Blender

Posted By sonic7 2 Years Ago
You don't have permission to rate!
Author
Message
sonic7
sonic7
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 1.7K, Visits: 19.4K

I'm no Blender expert - far from it. But there's a couple of aspects to Blender that I find a tad inconvenient/annoying. So here's what I've discovered and it *might* be useful to YOU (if you use Blender). (You may be a seasoned Blender user, in which case these may be nothing new to you).

ISSUE #1
Blender's on-screen display of *Statistics* (activated under the 'overlays' menu), gives readings for Objects, Vertices, Edges, Faces and Triangles.
Though helpful, that's only a 'total' count for what mesh is "on-screen". But what if you want a count on just one sub-part of what's on the screen?
One 'work-around' is to select and 'hide all' except the part you want a 'count' for, but that's a little indirect.

SOLUTION:
Simply hit the forward slash key and instantly, you'll go into "Isolate Mode". This will hide all other mesh except the highlighted part, it will zoom in on that part, and it will show the part's correct statistics. One key-click. And since it's a "toggle" function, you can immediately return to the previous full screen layout just by tapping it again. Neat.

https://forum.reallusion.com/uploads/images/bb9f1207-9b26-4b22-934b-bb83.jpg


ISSUE #2
When exporting your mesh, you have tick-box 'options' for export:
* Selected Objects
* Visible Objects
* Active Collection
Personally, I like to select (highlight) the objects I'd like to export from among my total on-screen meshes. However, ticking "Selected Objects" during one Blender session doesn't mean it will be still selected in your next session. It does not stay on by default. There is no way to make it a 'preferred' setting. I've often gone ahead with an export only to realize (too late) that *everything* is being exported because I hadn't remembered to again tick 'Selected Objects'. Annoying.

SOLUTION:
(Disclaimer: Though this is quite straight forward - perform this at your own risk!) 
Inside your Blender Program folder you'll find a folder named 'scripts', inside which is a folder named 'addons'. Here is where you'll find folders for different export formats. Since FBX is probably the most commonly used export format, let's use that. So search for the folder named io_scene_fbx and INSIDE THAT you should see the following files:


https://forum.reallusion.com/uploads/images/c7491ef0-b746-49a7-9757-c863.jpg



The one we're after is called __init__.py
All that needs changing is ONE single setting inside this file. But BEFORE doing anything, make a duplicate copy of this __init__.py file. This will be a safety backup if needed. It's fairly straight forward (for those accustomed to editing python scripts) but for the benefit of others, here's the full procedure ....

So ....... Right-click the __init__.py file and choose "Edit with IDLE" from your dropdown list. (if you have it available). If not, you can use another text editor for doing the same thing, though 'preferrably' it should be a proper python text editor. I tried with "wordpad" but that didn't work - I'm not sure about notepad since I haven't tried it). The following instructions are based on the IDLE python editor.


https://forum.reallusion.com/uploads/images/96ac5f60-6719-4fe1-9e5b-7f55.jpg



Once open, we want to search for the following section of the script:

https://forum.reallusion.com/uploads/images/dbc41a4f-ff0d-4731-acf4-fd51.png



You can do this using the text editor's "replace" function (found in the 'edit' dropdown). Simply enter "Selected Objects" in the "find" window, then click "FIND" ---- DO NOT hit Enter !!!!!! (or you'll erase things!!!!)

https://forum.reallusion.com/uploads/images/81148e33-a2ec-45ee-b985-26c0.jpg



So, the very NEXT reference of the word "False" needs to be changed to the word "True".
Again using the "replace" function, we type "False" in the top window AND 'True' in the 'Replace with' window. DO NOT hit enter, but rather hit 'find'. This SHOULD take you 2 lines further down and sitting exactly where we want to be, with the word False highlighted.

https://forum.reallusion.com/uploads/images/a6a4ca11-1e2c-4ab8-81f4-e723.jpg



If all looks good for replacing, then NOW click "Replace".
(If you make a mistake and hit the wrong button, just close out of the python file and when prompted to "save" the changes, select "no". (Now you can start over again fresh).

https://forum.reallusion.com/uploads/images/02191cad-f197-4c53-98ba-f4a1.jpg

You *should* have successfully changed the "False" to "True". Now just save the .py file by going "file" > "save". If Blender is already open, you'll need to re-start it. If things have been done correctly, when you go to export out an FBX file, the "Selected Objects" option will now (always) be showing as ticked 'ON' so you'll never need to remember ticking that box again !!!! Yay!
And I believe you can do this for any other export formats you might need - though I've not tried. And if you've gone though this and your FBX export option happens to now be MISSING - it simply means something wasn't done correctly. You can always use the backup you made earlier and replace your faulty file.



--------------------------------------------------------------------------------------------------------------------------------------------------------
Please be patient with me ..... I don't always 'get it' the first time 'round - not even the 2nd time! :(  - yikes! ... 
MSI GT72VR Laptop, i7 7700HQ 4-Core 3.8 GHz 16GB RAM; Nvidia 1070, 8GB Vram iClone-7.93  3DXChange Pipeline 7.81  CC-3 Pipeline 3.44  Live Face  HeadShot  Brekel Pro-Body  Popcorn FX  iRAY  Kinect V2  DaVinci Resolve17  Mixcraft 8.1

Mana.Lucine
Mana.Lucine
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)Veteran Member (871 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 99, Visits: 396
What a great and huge guide in detail! Thank you so much.
animagic
animagic
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 15.8K, Visits: 31.4K
Great tips for a novice Blender user like myself.

BTW, another free editor with Python highlighting is the free notepad++.


https://forum.reallusion.com/uploads/images/436b0ffd-1242-44d6-a876-d631.jpg

sonic7
sonic7
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 1.7K, Visits: 19.4K

@Mana.Lucine .... You're welcome Mana - I found these tips on the net, so they're not of my own design. But I'm passing them along so as to help others. I hope these prove helpful to you !  :)

@animagic .... yes I'm a Blender novice too - I use it for basic things like working on avatar clothing (in my case mostly 'droid' outfits). I'll simply move some of the mesh around, use the 'sculpt mode' section to do a little shaping or brush 'smoothing'. I've found Blender's "Decimate" to be very good at making the mesh 'light weight'. (I can often reduce to 40%, making a 100K mesh just 40K while retaining close-up detail). Before exporting as FBX, I'll use Blender's "Auto Smooth" to ensure the mesh arrives back in iClone looking *smooth*. If I need to change things on the Avatar base mesh itself, I'll use Victor's wonderful 'Blender Add-On'. :)


--------------------------------------------------------------------------------------------------------------------------------------------------------
Please be patient with me ..... I don't always 'get it' the first time 'round - not even the 2nd time! :(  - yikes! ... 
MSI GT72VR Laptop, i7 7700HQ 4-Core 3.8 GHz 16GB RAM; Nvidia 1070, 8GB Vram iClone-7.93  3DXChange Pipeline 7.81  CC-3 Pipeline 3.44  Live Face  HeadShot  Brekel Pro-Body  Popcorn FX  iRAY  Kinect V2  DaVinci Resolve17  Mixcraft 8.1




Reading This Topic