Announcement

Collapse
No announcement yet.

Q: a script to turn ALL Proxies to BB or Preview mode?

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

  • Q: a script to turn ALL Proxies to BB or Preview mode?

    does anyone have one?, or know what the code would be?
    Just want to be able to turn all proxies in a scene to either 'Bounding Box' or 'Preview from file' mode without having to select them individually....
    (I know that instances will update, but what if you have a scene with hundreds of different plant types for example...)

    Thanks in advance!

  • #2
    The way we do it is to have always the proxies set to preview from file and turn them to bounding box trough max object properties (Edit/Object Properties/Display As Box).
    Pretty straightforward if you have your scene well organized, plus you can have easily a whole group of proxies in box-mode while you have some in preview from file if you need to adjust a certain camera.

    Anyway, the script for setting ALL your scenes proxies to box would be something like:
    Code:
    for o in geometry where (classof o == VRayProxy) do o.display = 0
    And to set them back to display from file:
    Code:
    for o in geometry where (classof o == VRayProxy) do o.display = 1

    Comment


    • #3
      Cheers Codi - thanks a lot & yes good idea about just using Max's display properties.

      Thanks again.

      Comment

      Working...
      X