Trying to figure out how to check if something exist in my scene (on loop) and then if it does not then create bla bla bla.
In any case I have this code from codeacademy that I'm studying.
#Write your two "elif" statements below!
answer = "I like Spam!"
if answer == "I hate Spam!":
elif answer =='I like Spam!': #Fill in your `elif` statement here!
return True #Make sure `elif` returns `True`
else: answer != 'I like Spam!':
that kinda makes sense. I just cant figure out how to check if something exist by name/type/layer etc...
in any case heres my test...
LTest = cmds.ls(lights=True)
# listing lights by type
#if they exist just print, not sure if thats correct how do I check if it exist?
# from now on I think its correct but maybe not :)
else: print 'test'
Thanks any1 that come to help in advice! :)