Python RenderElementMgr No constructor defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to export the render element paths to an XML file for later use. I keep hitting a brick wall when trying to get the Render Elements.
python.execute "REmgr = MaxPlus.RenderElementMgr"
python.execute "res = REmgr.NumRenderElements"
python.execute "print res"
output:
#success
#success
<unbound method RenderElementMgr.NumRenderElements>
#success
That method needs to be called on an instance of the object. When I try to make an instance of RenderElementMgr, I get this error:
-- Runtime error: Line 16661 __init__()
<type 'exceptions.AttributeError'> No constructor defined
Accessing MaxPlus.RenderElementMgr.RenderElements returns a SWIG property, but it is not iterable eventhough the MaxPlus API docs say it returns a tuple.
Any clarification or examples would be greatly appreciated.
Thanks,
Miles