mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
266 stars 94 forks source link

Build from guide template file incompatible with EPIC components #238

Closed Lohult closed 1 year ago

Lohult commented 1 year ago

Hi @miquelcampos It turns out that building from a guide file is incompatible with EPIC components. In the EPIC components __init__.py jnt_pos gets appended withself.guide.guide_locators which is referencing what is in the scene at the time thus it will return None because the guide is not in the scene.

I tried finding an alternative way of accessing specific guide locators. Apart from the root, for which self.root exists, you cannot seem to get any of the locators under the root, like the spineTop or spineBase in the case of the EPIC spine.

the guide file with the component dictionary has those locators in there but they are keys with position values. Perhaps updating what information gets stored in the guide file will help, like adding "guide locators" to the .sgt file per component?

miquelcampos commented 1 year ago

Hi @Lohult
Sorry, I didn't reply before to this. That is a very nasty bug. I will fix it ASAP. Thanks for the feedback!

miquelcampos commented 1 year ago

@Lohult this was fixed in the issue #112