RE: LPub3D 2.0 Released
2017-01-02, 12:30 (This post was last modified: 2017-01-02, 12:33 by Merlijn Wissink.)
2017-01-02, 12:30 (This post was last modified: 2017-01-02, 12:33 by Merlijn Wissink.)
Ok, I believe I found another 'bug':
when I change the orientation of a call-out in a submodel, it actually places/changes the command in the main model instead of in the submodel. Which means that when I have multiple call-outs in a single submodel, things keep getting changed. Lemme (try to) explain:
Let's say I have a example.mpd with a submodel subA which contains 2 other submodels subB and subC:
example.mpd
subA.ldr
subB.ldr
subC.ldr
subB and and subC are both callouts. However, subB needs a horizontal orientation and subC needs a vertical orientation.
So, while formatting the instructions in LPub3D, I come across subB and I change it to horizontal. LPub3D however, places the '!LPUB CALLOUT ALLOC HORIZONTAL' in example.mpd instead of in subA. It still works as desired though, because LPub3D reads the file from top to bottom. But, then I come across subC. It needs to be vertical, so I change it to vertical. But, LPub3D just changes the command in example.mpd from horizontal to vertical, which means that subB is now also vertical again. You'd go back to subB, set it to horizontal again, but that changes subC again. It's an endless circle.
If LPub3D would just put the '!LPUB CALLOUT ALLOC [orientation]' in the subfile where the callout is, it would solve all problems. I'm currently adding these commands manually and it works like a charm.
I haven't investigated it very much though, so it might be a little different than how I've explained it.
Hope that makes sense
when I change the orientation of a call-out in a submodel, it actually places/changes the command in the main model instead of in the submodel. Which means that when I have multiple call-outs in a single submodel, things keep getting changed. Lemme (try to) explain:
Let's say I have a example.mpd with a submodel subA which contains 2 other submodels subB and subC:
example.mpd
subA.ldr
subB.ldr
subC.ldr
subB and and subC are both callouts. However, subB needs a horizontal orientation and subC needs a vertical orientation.
So, while formatting the instructions in LPub3D, I come across subB and I change it to horizontal. LPub3D however, places the '!LPUB CALLOUT ALLOC HORIZONTAL' in example.mpd instead of in subA. It still works as desired though, because LPub3D reads the file from top to bottom. But, then I come across subC. It needs to be vertical, so I change it to vertical. But, LPub3D just changes the command in example.mpd from horizontal to vertical, which means that subB is now also vertical again. You'd go back to subB, set it to horizontal again, but that changes subC again. It's an endless circle.
If LPub3D would just put the '!LPUB CALLOUT ALLOC [orientation]' in the subfile where the callout is, it would solve all problems. I'm currently adding these commands manually and it works like a charm.
I haven't investigated it very much though, so it might be a little different than how I've explained it.
Hope that makes sense
![Big Grin Big Grin](https://forums.ldraw.org/images/smilies/biggrin.png)