Author Topic: Parsing Scene and _forest_template objects  (Read 1531 times)

2019-02-07, 11:55:18

corona_butler

  • Active Users
  • **
  • Posts: 8
    • View Profile
Hi all,

We have a huge housing development project of around 100 different house types, landscape etc etc and the parsing scene part of corona rendering takes about 25 minutes, I then get a huge list of Geometry objects(s) with zero scale will be ignored.

All of the offending node(s) are _forest_tempate objects. The standard ones that Forest pack creates by default that seem to be of no or little usage! Anyway, as we have 100 house XRefs to deal with, and the base file that was used to model the houses must have had these _forest_templates in originally, as a consequence they all have those objects in........

So we are trying to speed up the rendering process and I was wondering if anyone would know if we were to delete all of these _forest_template objects from all of the xrefs whether this would actually speed up the scene parsing element of the rendering process.

This is a manual process so will be a few hours of work, I personally feel it should be done regardless and am confident it will help, but I don't want to waste a few hours if it's not going to help.......

A penny for your thoughts please...

Thanks in advance.

Andy.

2019-02-11, 12:50:53
Reply #1

Frood

  • Active Users
  • **
  • Posts: 2002
    • View Profile
    • Rakete GmbH
The standard ones that Forest pack creates by default that seem to be of no or little usage!

Those templates can get even dangerous in a situation like you described - if you are using billboards though (only then) in xrefed scenes which are rotated.

if we were to delete all of these _forest_template objects from all of the xrefs whether this would actually speed up the scene parsing element of the rendering process.

I don't think it will make any significant difference.

This is a manual process so will be a few hours of work

Why do you think it should be done manually? Use this script template:

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/MAXScript-Help/files/GUID-D5AC3BA8-6808-48A3-88DA-227ED8743E05-htm.html

And correct the line "for f intheFiles do-- go through all of them" to "for f in theFiles do-- go through all of them" if they haven't done it already.

And where it reads "MAKE SOME SCRIPTED CHANGES TO THE SCENE HERE..." you would insert something like:

Code: [Select]
objects2delete=#(
$'_forest_template_CurvedPlane',
$'_forest_template_High Animated Plane',
$'_forest_template_Low Animated Plane',
$'_forest_template_Medium Animated Plane',
$'_forest_template_One Plane',
$'_forest_template_Simple 3D Tree',
$'_forest_template_Three Planes',
$'_forest_template_Four Planes',
$'_forest_template_Two Planes'
)

for obj in objects2delete do (
if obj!=undefined do (
try (
delete obj
)
catch()
)
)


Now you can process a complete xref directory and automatically clean it from those templates. Do a backup of course :)


Good Luck



Never underestimate the power of a well placed level one spell.