Getting to the scene item

From The Foundry MODO SDK wiki
Revision as of 08:13, 24 June 2016 by Ivo.grigull (Talk | contribs) (Created page with "{{Snippet |summary=Getting the scene as an actual item can be useful at times: |code=<syntaxhighlight lang="python">scene = lxu.select.SceneSelection().current() sceneIte...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description:

Getting the scene as an actual item can be useful at times:

Code:

scene     = lxu.select.SceneSelection().current()
sceneItem = scene.AnyItemOfType (lx.service.Scene().ItemTypeLookup('scene'))