Saving multiple ?

Next
 From:  Frenchy Pilou (PILOU)
9105.1 
Not remember...

Say I have a selection of 3 volumes A, B, C

does it yet existing something who automatically save them like

objectA.obj, objectB.obj, objectC.obj ? or objectA.3dm, objectB.3dm, objectC.3dm...

EDITED: 20 Oct 2018 by PILOU

  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:  amur (STEFAN)
9105.2 
Hi Pilou,

maybe this one works for you.

https://github.com/CesarChodun/Obj-splitter

Regards
Stefan
  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:  Frenchy Pilou (PILOU)
9105.3 In reply to 9105.2 
@stefan
I am affraid that java don't works on my computer for mysterious reasons! :(

I am thinking of an existing native Moi Script! :)

(here with Magica without efforts :)

EDITED: 20 Oct 2018 by PILOU

  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:  amur (STEFAN)
9105.4 
Hi Pilou,

to bad that it is not working for you!

P.S. Very nice rendering and modeling you did!

Regards
Stefan
  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:  Frenchy Pilou (PILOU)
9105.5 In reply to 9105.4 
This modeling every one can do it! ;)

It's just some cubes or faces "Push Pulled" !
The best cubic modeler i have never seen!

So funny!



PS and of course you can save it as OBJ format! ;)

EDITED: 20 Oct 2018 by PILOU

  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
9105.6 In reply to 9105.1 
Hi Pilou,

re:
> Say I have a selection of 3 volumes A, B, C
>
> does it yet existing something who automatically save them like
>
> objectA.obj, objectB.obj, objectC.obj ? or objectA.3dm, objectB.3dm, objectC.3dm...

Try the script from here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8230.5

Note that you need to modify the script before you run it to specify the directory where you want the files to be written to.

- 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:  Frenchy Pilou (PILOU)
9105.7 In reply to 9105.6 
Cool that was this one: my memory was only half burned! :)

What is the state of an object selected wihtout Name ?
it will be ignored ?
  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
9105.8 In reply to 9105.7 
Hi Pilou, yes that script ignores objects without any name assigned.

You could change this pretty easily though, for example if you want unnamed objects to go to a file unnamed.obj try modifying line 26 of the script. Currently it has:

code:
	if ( name == '' )
		continue;


Try changing it to:

code:
	if ( name == '' )
		name = 'unnamed';




- 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:  Frenchy Pilou (PILOU)
9105.9 
Bravo! Works like a charm for the named objects selected to .OBJ format! And unamed! :)

And what about if the same will be with .3Dm files format ?
  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
9105.10 In reply to 9105.9 
Hi Pilou, for saving to .3dm format go to line #42 where it is appending the .obj file extension:
code:
        var filename = g_dirname + name + '.obj';


And change it to append a .3dm file extension instead:

code:
        var filename = g_dirname + name + '.3dm';


- 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:  Frenchy Pilou (PILOU)
9105.11 
Excellent!

Ps Must I do relaunch Moi when I edit and save the js file ?
  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
9105.12 In reply to 9105.11 
Hi Pilou,

> Ps Must I do relaunch Moi when I edit and save the js file ?

Yes, unless you have set DisableFileCaching=y as described here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6727.2


- 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:  Frenchy Pilou (PILOU)
9105.13 In reply to 9105.12 
Many thanks : all is clear after this ultima trick! :)

All that for 2 things! :)

1- Can make multiple Drag & Drop multiple of objects separated inside the marvelous free render of MagicaVoxel! :)

2 - Have a best precision in the crazzy MagicaVoxel who accepts by Drag & Drop objects OBJ but only in a maxi matrix 126 * 126 *126 !

So a drastic reduction of the original object!

So we must make some tricky spliting objects :) http://moi3d.com/forum/index.php?webtag=MOI&msg=9096.2


In theory we can have 16*16*16 so 4096 matrix of 126 *126 *126 (something like 8 billions of cubes) so a little more precision! :)

more the object is big more the precision increase! (if all parts are put in several matrix! :)


In theory we can have 16*16*16 so 4096 matrix of 126 *126 *126 so a little more precision! :)

Here 2 Moi objects destroyed (Cylinder + Half Sphere) & a Cone with a very low resolution in a little matrix 34 * 52 * 39 !




Exactly the same object from another point of view and a fisheyes effect of 220° !

EDITED: 21 Oct 2018 by PILOU

  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