Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

→ Localize all reference model in scene

0 comments

#=============================================
# 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)

#=============================================

→ Welcome to Python

0 comments


from siutils import si, sisel, log

log("Hello World!")