예제 #1
0
파일: __init__.py 프로젝트: UIKit0/gear-1
    def addShadow(self, obj, name):

        if self.options["shadowRig"]:
            shd = pri.addImplicite(self.shd_org, "Cube", self.getName(str(name)+"_shd"), obj.Kinematics.Global.Transform, self.options["size"]*.15)
            shd.Kinematics.AddConstraint("Pose", obj, False)
        else:
            shd = pri.addImplicite(obj, "Cube", self.getName(str(name)+"_shd"), obj.Kinematics.Global.Transform, self.options["size"]*.15)

        self.addToGroup(shd, "deformers")

        return shd
예제 #2
0
    def addShadow(self, obj, name):

        if self.options["shadowRig"]:
            shd = pri.addImplicite(self.shd_org, "Cube",
                                   self.getName(str(name) + "_shd"),
                                   obj.Kinematics.Global.Transform,
                                   self.options["size"] * .15)
            shd.Kinematics.AddConstraint("Pose", obj, False)
        else:
            shd = pri.addImplicite(obj, "Cube",
                                   self.getName(str(name) + "_shd"),
                                   obj.Kinematics.Global.Transform,
                                   self.options["size"] * .15)

        self.addToGroup(shd, "deformers")

        return shd
예제 #3
0
파일: __init__.py 프로젝트: immagery/air
    def addShadow(self, obj, name):

        if self.options["shadowRig"]:
            shd = pri.addImplicite(self.shd_org, "Cube", self.getName(str(name)+"_shd"), obj.Kinematics.Global.Transform, self.options["size"]*.15)
            oICEBoneProp = shd.AddProperty("CustomProperty", False,"BoneParams");
            oParam = oICEBoneProp.AddParameter3("BoneID", c.siInt2, -1, -1, 999);
            oParam = oICEBoneProp.AddParameter3("ParentID", c.siInt2, -1, -1, 999); 
            oParam = oICEBoneProp.AddParameter3("expansion", c.siFloat, 1, 0, 10);
            oParam = oICEBoneProp.AddParameter3("propagation", c.siFloat, 1, 0, 10); 
            shd.AddProperty("Static Kinematic State Property" ); 
            shd.Kinematics.AddConstraint("Pose", obj, False)
        else:
            shd = pri.addImplicite(obj, "Cube", self.getName(str(name)+"_shd"), obj.Kinematics.Global.Transform, self.options["size"]*.15)
            oICEBoneProp = shd.AddProperty("CustomProperty", False,"BoneParams");
            oParam = oICEBoneProp.AddParameter3("BoneID", c.siInt2, -1, -1, 999);
            oParam = oICEBoneProp.AddParameter3("ParentID", c.siInt2, -1, -1, 999);  
            oParam = oICEBoneProp.AddParameter3("expansion", c.siFloat, 1, 0, 10);
            oParam = oICEBoneProp.AddParameter3("propagation", c.siFloat, 1, 0, 10);
            shd.AddProperty("Static Kinematic State Property" );   

        self.addToGroup(shd, "deformers")

        return shd