PDA

View Full Version : Enable proxies for all xref objects


AndreasHackel
09-12-2007, 10:51 AM
Hi,

i wrote this script to toggle the display of xref proxies for all objects in the scene. But it's incredible slow with many XRefs in the scene. Max seems to reload all xrefs from the HD. Is there a way to make it faster?

Macroscript ToggleXRefProxies

category:"Replay"

ButtonText:"XRef Proxies"

Tooltip:"XRef Proxies"

(

global XRefProxiesEnabled;

if XrefProxiesEnabled == undefined then XRefProxiesEnabled = false;



on isChecked do return XRefProxiesEnabled;

on execute do

(

SetWaitCursor();

Suspendediting();

With Redraw off

(

XRefProxiesEnabled = not XRefProxiesEnabled;

local xrefObjects = for n in objects where classof n == Xrefobject collect n;

for n in xrefObjects do

(

if n.useproxy != XRefProxiesEnabled then

n.useproxy = XRefProxiesEnabled;

)

)

Resumeediting();

SetArrowCursor();

)

)

ypuech
09-12-2007, 03:53 PM
Try to set .renderProxy property to true.

AndreasHackel
09-12-2007, 04:53 PM
This will use the proxy for rendering, but I need to display the proxies in the viewport...

CGTalk Moderation
09-12-2007, 04:53 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.