Message 1 of 2
Not applicable
08-04-2017
01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am able to create a layer in python, but have had no luck with a creating a sub layer / nested layer structure.
I want to create layer A, then create layer B as a child of A.
Here is code that hasn't worked:
import MaxPlus, pymxs
from pymxs import runtime as rt
parent = MaxPlus.LayerManager.CreateLayer("A") MaxPlus.LayerManager.AddLayer(parent ) MaxPlus.LayerManager.SetCurrentLayer("A") child = MaxPlus.LayerManager.CreateLayer("B") MaxPlus.LayerManager.AddLayer(child)
Solved! Go to Solution.
