Announcement

Collapse
No announcement yet.

proxy export issues.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • proxy export issues.

    im trying to script the creation of proxy versions of a scene with one click.


    heres what i want:

    scene with many objects in, click script, vray creates and saves a proxy of the whole scene as a single vrmesh, places it in scene, and hides it, leaving original meshes untouched.

    if scene is updated, running the script again will delete existing proxy from scene, and resave an updated one, replacing it in the scene.



    problems:

    *vraymesh export wont work on multiple objects if they have different materials. attaching creates a multisub that works fine, but in very large scenes, the attachment process takes forever, and would need undoing again after export of proxy file.

    is there a script that will create a single multisub to replace all the materials in the scene and apply to all objects, without attaching them?


    *if you choose to automatically create proxy, it always deletes the source mesh. i want the source meshes to remain in the file.


    please help!

  • #2
    I impelmented this for the studio i work.

    1. build a copy of all meshes
    2. collapse stack and attack to a new,empty geometry. A multisubmaterial is generated automatic (meshop.attach emptyEditpoly copyOftmpNode attachMat:#MatToID)
    3. export the new object to get the VrayProxy.

    We take this a little further. Your script works with groups and build a proxy for the upper group and all its content.
    I build a customattribute holding a preview rendering and two nice buttons.
    First button resets the material of the Proxy to its exported multisub.
    The second one merges the source group where the proxy was generated from.

    About the performance during attaching. There are some tweaks to accelerate this. (such as start with emty poly and collapsestack before attaching)
    Last edited by Klonsemann; 13-01-2012, 04:43 AM.

    Comment


    • #3
      Here is a screenshot.

      Click image for larger version

Name:	VRayProxyAddon.jpg
Views:	1
Size:	65.1 KB
ID:	844882

      Comment

      Working...
      X