Key frames on global ambiance adds fcurves to all objects locally and cannot be removed

Article needs peer review

Symptom

If the Global ambient lighting of the scene is animated (Render > Modify > Ambience). The fcurves are propagated to all the other objects within the scene. If objects have materials other than the default scene material, these fcurves are going to slow down the scene operations. Loading and saving such scenes also take a long time. It also seems impossible to remove the animation on the ambient lighting at this point.

Cause

This bug is logged as #76043: key frames on Global ambiance, added f-curves to all objects locally and cannot be removed.

Solution

These few lines of code goes through all the nodes and gets rid of the animation on the ambient nodes. Note: It may take a few hours for the script to remove the animation off all the objects in the scene.

 While IsAnimated("Scene_Root.AmbientLighting.ambience")
 RemoveAllAnimation "Scene_Root.AmbientLighting.ambience"
 Wend
 LogMessage "Done!"



Applies To: XSI 2.0.1 on NT,Win2K,Irix,Linux

Posted: 4/26/2002



This page was last modified 11:56, 27 Nov 2005.
This page has been accessed 2061 times.

© Copyright 2009 Autodesk Inc. All Rights Reserved. Privacy Policy | Legal Notices and Trademarks | Report Piracy