Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place items with deterministic z ordering #6

Open
MasterOdin opened this issue May 29, 2018 · 0 comments
Open

Place items with deterministic z ordering #6

MasterOdin opened this issue May 29, 2018 · 0 comments

Comments

@MasterOdin
Copy link

Sample script:

import time
from pagi_api import connectSocket, Agent
cs = connectSocket()
print("destroy items")
agent = Agent(cs)
agent.createItem('/Users/mpeveler/Github/pyPAGI/grid.png', 50, -10.5, -1, 'grid3', 1, 0, 0, 0)
time.sleep(2)
agent.createItem('/Users/mpeveler/Github/pyPAGI/fridge-small.jpg', 50, -9.3, 1.5, 'fridge', 1, 0, 0, 1)
time.sleep(2)
agent.createItem('/Users/mpeveler/Github/pyPAGI/soda-small.png', 50, -8.8, 8.4, 'soda', 1, 0, 0, 1)
cs.close()

I would expect that grid is placed first, then the fridge, and the soda such that all three are visible with the fridge and soda placed on/overlaying the grid. However, often, the grid will overlap one or both of the created custom items. Changing the ordering of these commands does not give me a deterministic way to place images how I'd want and always the grid is on top of one of the other two images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant