PDA

View Full Version : Reset "locked" bitflags?


haavard
06-17-2010, 05:41 AM
I was working on a script that uses bit flags in editablePoly to work with face selections on an object. I initially set the flags property undoable to true, and that works fine. But if i want to run the script multiple times on the same object, the saved face selection just get appended from the last iteration and that destroys the purpose of the script. I could set the undoable property to false, but then i have to rewrite most of the script, so I was wondering if there is a fast workaround to reset the faces associated with a flag? I could assign new flags for each iteration, but as far as I understand you only have seven flags to set freely.
Please correct me if I have misunderstood the usage of bitflags or if anything is unclear! :)

Pretty image to illustrate my problem
http://folk.ntnu.no/havardsc/img/flag-problem.png

CGTalk Moderation
06-17-2010, 05:41 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.