import OBJ is not keeping geom in correct location

Next
 From:  co3Darts (CO3DPRINTS)
9343.1 
I'm using v4 beta and the latest Max Smirnov import obj script. I have geo I've created in Moi, exported to obj to MAX/Maya and in those programs aligned the geometry I made from Moi to an exemplar. It's too heavy to bring in all of the tires etc. as .obj back into moi to align my nurbs geo to new location found from MAX/Maya.

However if the .obj file is floating (has no geometry that physically goes down to 0 on the Z or Y axis, when I reimport the aligned geo backinto Moi; it appears to snap this geometry down to the ground plane. I don't see any controls to specify to maintain the location from the file etc.

Any ideas?

Jason

Note: making a 1 unit cube at 0,0,0 that I include in export to .obj from DCC app, allows me to position geometry back correctly in MOI, but it's kinda a pain and tedious for lots of geometry, not sure why this is default behavior?

EDITED: 22 Apr 2019 by CO3DPRINTS

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9343.2 In reply to 9343.1 
Hi Jason, that's a feature of Max's import obj script, see here for how to disable the normalization scaling:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6674.453

> not sure why this is default behavior?

I don't know why, you would have to find out from Max.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  co3Darts (CO3DPRINTS)
9343.3 In reply to 9343.2 
Thanks Michael. I should have done a more thorough search...

Thanks for the link.

Jason

P.S. I have the "impObj exact" now working as a short cut but I'm not able to find the same command that's being issued using max's impObj menu button. Is it using impSubDiv perhaps?

EDITED: 23 Apr 2019 by CO3DPRINTS

Image Attachments:
Size: 220.8 KB, Downloaded: 29 times, Dimensions: 1021x695px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9343.4 In reply to 9343.3 
Hi Jason,

re:
> P.S. I have the "impObj exact" now working as a short cut but I'm not able to find the same command
> that's being issued using max's impObj menu button. Is it using impSubDiv perhaps?

I don't think so... What version of CustomUI and MoI are you using?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  co3Darts (CO3DPRINTS)
9343.5 In reply to 9343.4 
I believe latest version but it's a bit of a blurr as I've added dark gui etc. on top. But this command should reside either in native program files or %appdata%

C:\Program Files\MoI 4.0 beta Feb-27-2019\..

I find the following using search of *imp*

Import.js
ImportPart.js
ImportSubD.js

%appdata%\Roaming\Moi\..

I find the following using search of *imp*

_ImportObj.js (which is v.1.5)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9343.6 In reply to 9343.5 
Hi Jason, maybe it's easiest to modify the _ImportObj.js file to always do "exact" mode and then it wouldn't matter how you were launching it.

To do that, edit the file _ImportObj.js in a text editor, then on line 10 there is currently this:
code:
if ( moi.command.getCommandLineParams() ==='exact' ) { moi.ui.commandUI.normalizeObj( false ) } else { moi.ui.commandUI.normalizeObj( true ) }


Delete that or comment it out by putting in a // at the front of it, and then have this instead:
code:
moi.ui.commandUI.normalizeObj( false );


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  co3Darts (CO3DPRINTS)
9343.7 In reply to 9343.6 
Thanks a bunch for that code Michael. Works and doesn't throw an error leaving "_ImportObj exact" as a command input either for hotkey.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All