I am using Tulip 4.9.0 through the python binding, I get an error when doing:
vs = graph.getSizeProperty('viewSize')
n = graph.addNode()
vs[n] = tlp.Vec3f(1, 1, 1) * 5
I get it either from the GUI python command line or from a python external script.
I do not get the rror when running Tulip 4.8.1.
???
Thanks
Thank you very much for your report.
This regression introduced in Tulip 4.9 is now fixed in the current
svn code line (commit #11852).
Hi Guy,
As patrick said, the bug is now fixed in the current tulip trunk.
I introduced that annoying behavior in commit 11366, my bad.
As a workaround when you want to use operators or tlp.Vec3f instance to handle sizes, you can define a Python function to force the cast of a tlp.Vec3f instance to a tlp.Size one and use it to provide a size parameter correctly typed:
def toSize(v):
return tlp.Size(v[0], v[1], v[2])
graph['viewSize'].setAllNodeValue(toSize(tlp.Vec3f(1,1,1)*1.5))
Antoine