THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 15:18, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Using SetBit() and calling GetAllBits() afterwards works fine for me (on objects and tags), and it doesn't for you?
Well...No.... It didn't.
Here's the very simple code I was using:
def main() :
obj = doc.GetFirstObject() #The first object in the OM(a cube)
ft = obj.GetFirstTag() #The first tag on the object
print obj.GetAllBits() #Printed 0
print ft.GetAllBits() #Printed 0
print ft.GetAllBits() #Still printed 0 <---I don't know why
Now all of a sudden it does work for me.
I must have been in one of those annoying corrupted sessions that occasionally happens to me.
SetBit(c4d.BIT_ACTIVE) has always been a bit flaky in my script manager code.
But I sometimes get corrupted results from the script manager if I make too many errors while creating scripts with it. And when that happens I have to close C4D and re open it to make it work properly again.
It's a talent that I can't teach. I'm just born with it. :joy: