THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/03/2011 at 07:24, xxxxxxxx wrote:
Thanks, that got me access to the layer name at least. Phew!
This is what I have so far:
import c4d, math, random
from c4d import bitmaps, documents, gui, modules, plugins, storage, utils
def main() :
c4d.CallCommand(100004738) # New Layer
root = doc.GetLayerObjectRoot()
if __name__ == '__main__':
What I'm trying to do is change the switches on the layer, like Solo, Visible, etc.
I think I need to use SetLayerData, but cannot for the life of me get it to work.
Also, is there a more elegant way to create a layer other than CallCommand?