Smart Vrmesh Converter

Version: 
1.02
Date Updated: 
03/19/2010
Author Name: 
Cooper

Here is a little script I wrote a while ago. Basically, it converts all selected objects into Vray Proxy format. The main difference between this script and standard quad menu that comes with Vray, is that script preserves instanced objects, so the resulting Vray Proxys will be instanced and this, in turn, will save memory during render. Besides, it lets you select and convert entire groups of objects, without opening them. And finally, the most useful part of it – it keeps original meshes in the same folder as Vray meshes, and can restore original geometry back in scene, all with one click. Of course, it won’t restore geometry, converted to Vray mesh using default tool, only converted with this script.

Additional Info: 

Here is a demonstration object. It consists of several groups, which, in turn, have instanced objects inside. Each color represents set of instanced objects. What I'm going to do is convert entire group with all subgroups into Vray Proxy format while keep instances instanced :) Then, I'm going to revert this operation simply by running this script again.

Other Software Required: 
Vray
Video URL: 
AttachmentSize
Cooper-SmartVrmeshConverter.mcr2.31 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tomastnt's picture

vrayproxy-switcher by onodi.andras works 100%

Ok, If there is no support, I would recommend to other people who would like to convert their instances, objects to proxies and back quickly this script:
http://www.scriptspot.com/3ds-max/scripts/vrayproxy-switcher

I have tested this script on a few big projects and works without any problem compare Smart Vrmesh Converter
So you can get back your objects, modify them and again convert to proxies. vrayproxy-switcher is 100% right working!
Sorry cooper, but it is true :( Your script would be great, but it is not working properly...sorry for add to another product.
Best regards.
Tomas

tomastnt's picture

It is not working properly :((

Hi. Unfortunately I have just lost a few hours of work. Never mind... :) The script works fine just in "first step". It means, I can select objects and convert them as proxies. That works fine. But when I will try to convert back to mesh and modify mesh and again convert to proxy, then proxy is NOT modified! Proxy is as same as in a first step. Same problem like crystal3d.

Pleas, could you repair it? This could be very useful script, but this bug is doing this script half working.

fajar's picture

little fix for browse button

little fix for browse button add this line

if vrmesh_path != undefined then 
   ( 
    saveto.text = vrmesh_path					
   renderSceneDialog.update()
   )
makco's picture

Hey there

I really liked your script. I was starting to write something similar and ran into yours; so i took it and add an interface to make it a bit more functional.

Anyway, im sharing the version i made so you can use it if you'd like

AttachmentSize
cooper-smartvrmeshconverter3.mcr 3.32 KB
crystal3d's picture

My other question about it is,

is there a way to clear the identification or a converted model, i want your script the the mesh as a new mesh.

crystal3d's picture

Updating proxies

hello and thanks for this effort,
I am using it for months now and untill now, i did not know that it had a problem when updating the original meshes.
here s the problem:

if you convert a box to a proxy (for example) and revert it back to initial mesh, everything is fine, but if you edit the "reverted mesh"( means the box that was converted to proxy and back to initial mesh) all modifications are lost.

the script creates a proxy but can not overwrite the proxy nor the max file.

what the script need doing IMO:

when a proxy is reverted back to normal mesh, the script should clear any data belonging to that mesh.

i can give explain more if you like.

akramserry's picture

hi man great script , but

hi man great script , but there is something strange with it , when i group a large group of instanced objects it exports a vrmesh for every single one of them and use only one.
example : group of instanced 100 objects , it will export 100 identical vrmsh files and only use one of them , can this be fixed cuz it takes looooooot of time to export those unneeded vrmeshes.
thanks.

crystal3d's picture

Can you add " convert group

Can you add " convert group to mesh" feature to your marvelous script?

C00PER's picture

Such script would be very

Such script would be very simple to create, however its not related in any way with Smart VrayMesh converter. And maybe a useful thing for you to know is that max 64 bit can attach enormous amounts of polygons without crashing. I've experienced same problems when I was on max 32, but in 64 everything was just fine. Also try to use different geometry format - i.e. if you're using Editable Mesh, try to convert to Editable Poly before attaching and vice versa.

C00PER's picture

Can you give more detailed

Can you give more detailed information? I don't have max 2010, but I don't see any reason why script shouldn't work there. It doesn't depend on max version.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.