agMathParser addon: Expression to ICE

Discussions about SOFTIMAGEs© Interactive Creative Environment©
agedito
Posts: 6
Joined: 16 Mar 2010, 07:28

agMathParser addon: Expression to ICE

Post by agedito » 04 Apr 2011, 21:57

Hi

I just published a addon to translate math expressions to ICE. ICE is wonderfull but write some math is tedious. So I wrote this plugin to parse a expression and convert to ice compound.
Please, tell me any idea, bug or comment :)


http://www.agedito.com/blog/?p=134

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: agMathParser addon: Expression to ICE

Post by rray » 04 Apr 2011, 22:28

just brilliant :-bd
Something similare would make sense also for the render tree ;)
softimage resources section updated Sep 26th 2026

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: agMathParser addon: Expression to ICE

Post by Hirazi Blue » 05 Apr 2011, 07:14

Very cool, thanks... :-bd
Stay safe, sane & healthy!

agedito
Posts: 6
Joined: 16 Mar 2010, 07:28

Re: agMathParser addon: Expression to ICE

Post by agedito » 05 Apr 2011, 11:35

Hi, thanks :)

I'd released a second version fixing a bug.

Ramon
Posts: 111
Joined: 19 Aug 2010, 20:47

Re: agMathParser addon: Expression to ICE

Post by Ramon » 26 Sep 2011, 21:52

Application.AddProp("agMathParser_Property", "Scene_Root", "siDefaultPropagation", "agMathParser", "")
# ERROR : 2003 - Traceback (most recent call last):
# File "<Script Block 2>", line 84, in agMathParser_Property_DefineLayout
# draw(oLayout, None)
# File "<Script Block 2>", line 62, in draw
# lContainers = GetIceContainersComboData()
# File "C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\modules\Views.py", line 24, in GetIceContainersComboData
# lContainers = GetIceContainers()
# File "C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\modules\Views.py", line 11, in GetIceContainers
# cViewports = cViews("vm").Views
# File "C:\Program Files\Autodesk\Softimage 2012 SP1\Application\python\Lib\site-packages\win32com\client\__init__.py", line 455, in __getattr__
# return self._ApplyTypes_(*args)
# File "C:\Program Files\Autodesk\Softimage 2012 SP1\Application\python\Lib\site-packages\win32com\client\__init__.py", line 448, in _ApplyTypes_
# dispid, 0, wFlags, retType, argTypes, *args),
# COM Error: Interface not supported. - [line 61 in C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\agMathParserPlugin.py]
# ERROR : 2003 - Traceback (most recent call last):
# File "<Script Block 2>", line 84, in agMathParser_Property_DefineLayout
# draw(oLayout, None)
# File "<Script Block 2>", line 62, in draw
# lContainers = GetIceContainersComboData()
# File "C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\modules\Views.py", line 24, in GetIceContainersComboData
# lContainers = GetIceContainers()
# File "C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\modules\Views.py", line 11, in GetIceContainers
# cViewports = cViews("vm").Views
# File "C:\Program Files\Autodesk\Softimage 2012 SP1\Application\python\Lib\site-packages\win32com\client\__init__.py", line 455, in __getattr__
# return self._ApplyTypes_(*args)
# File "C:\Program Files\Autodesk\Softimage 2012 SP1\Application\python\Lib\site-packages\win32com\client\__init__.py", line 448, in _ApplyTypes_
# dispid, 0, wFlags, retType, argTypes, *args),
# COM Error: Interface not supported. - [line 61 in C:\Users\\Autodesk\Softimage_2012_SP1\Addons\agMathParser\Application\Plugins\agMathParserPlugin.py]
Application.DeselectAll()

Leo
Posts: 128
Joined: 04 Jun 2009, 15:06

Re: agMathParser addon: Expression to ICE

Post by Leo » 26 Sep 2011, 22:50

Very cool.