All pastes #822436 Raw Edit

CopyRenderSettings

public python v1 · immutable
#822436 ·published 2007-12-18 18:56 UTC
rendered paste body
#CopyRenderSettings 0.1from Blender import Scene as Sccurscene= Sc.GetCurrent()context= curscene.getRenderingContext()ivars= dir(context)scenes= Sc.Get()for key in ivars:	#make sure instance variable is copied	if not key.startswith("__"):		value= getattr(context, key)		if not callable(value):			#copy value to all scenes. not all vars are writable			if key != "sFrame" and key != "eFrame":				for scene in scenes:					try: setattr(scene.getRenderingContext(), key, value)					except: pass