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
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
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