Solution:
def myCallback(in_ctxt):
oSource = in_ctxt.Source
oICETreeView = in_ctxt.GetAttribute("Target")
oContainer = oICETreeView.GetAttributeValue("container")
xsi.LogMessage(oContainer)
--------------------------------------------
Eric Thivierge
http://www.ethivierge.com
On Fri, Nov 16, 2012 at 11:15 AM, Eric Thivierge <[email protected]>wrote:
> I have a command I need to run on the active Ice Tree in the ICE Tree
> editor and the command will be called from a CallbackItem the "User Tools"
> menu. Is there a way to get to the ICE Tree view object from that menu
> without having to get all ICE Trees visible?
>
> In the callback I can use the following to get the source but that just
> points me to the menu item object and not the view object:
>
> def myCallback(in_ctxt):
> oSource = in_ctxt.Source
> # Prints the menu item :(
>
> Any help is appreciated.
>
> --------------------------------------------
> Eric Thivierge
> http://www.ethivierge.com
>