Hi,
but for the street widths it works ?
lemme know..
m.
Yes, it was a strange thing, but I figured out the answer. Not sure why I had to take this route, but I needed to set the attribute source to "OBJECT", because it wasn't completely making the connection. So, I added a few extra lines of code as a fail-safe: ce.setAttributeSource(streetsegment, "/ce/street/streetWidth", "OBJECT")
ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthLeft ", "OBJECT")
ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthRight", "OBJECT")
I've made a little progress in my python understanding and have changed my approach. After first selecting the objects from the scene with my specified attributes, I then run the above lines of code in a new context: selectedSegments = ce.getObjectsFrom(ce.selection())
for streetsegment in selectedSegments:
ce.setAttributeSource(streetsegment, "/ce/street/streetWidth", "OBJECT")
ce.setAttribute(streetsegment , 'streetWidth', W1)
ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthLeft", "OBJECT")
ce.setAttribute(streetsegment , 'sidewalkWidthLeft', W2)
ce.setAttributeSource(streetsegment, "/ce/street/sidewalkWidthRight", "OBJECT")
ce.setAttribute(streetsegment , '/sidewalkWidthRight', W3)