On 14/10/2015 at 15:02, xxxxxxxx wrote:
Hello,
Once again. I need your help!
How to replace "char" with "Not Found object" if char not exist ? **** (see image below) ****
**
Script :**
import c4d
def main() :
obj_parent = doc.SearchObject("Parent")
String = "Hello World"
iChar = 0
if iChar < len(String) :
for char in String:
newChar = doc.SearchObject(char).GetClone()
newChar.SetName(newChar.GetName() + '.temp' )
doc.InsertObject(newChar, parent=obj_parent)