Python → Localize all reference model in scene
#=============================================
# Make all ref model in scene local
from siutils import si, sisel, log
for obj in si.ActiveSceneRoot.FindChildren("*", "#model"):
xx = obj.Parameters("referenced_model").Value==True
if xx:
yy = obj.Parameters("active_resolution").Value==True
if yy:
#print obj
si.MakeModelLocal(obj, "", 2)
#=============================================