design-automation / mobius-parametric-modeller

Möbius for parametric modelling.
https://design-automation.github.io/mobius-parametric-modeller/
MIT License
10 stars 6 forks source link

attribute name parsed as variable when square brackets are included #516

Closed derekpung closed 5 years ago

derekpung commented 5 years ago

image

phuongtung1 commented 5 years ago

For this issue, a little while ago, we decided that the @attribute_name should be accessible from an array. Say we have: a = ["xyz", "test"]; xyz_vals = pos@a[0] would be acceptable and thus equivalent to xyz_vals = pos@xyz. So in this case, it requires that the parameter before the square brackets is an existing variable name

I'm not sure how we should resolve this