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

Q. can we run python script and pass arguments as well? #29

Open
lalamax3d opened this issue Apr 17, 2024 · 1 comment
Open

Q. can we run python script and pass arguments as well? #29

lalamax3d opened this issue Apr 17, 2024 · 1 comment

Comments

@lalamax3d
Copy link

hey, not issue, but question/query. is it possible to run hapless python script with arguments.

my current python script run blender with a script, which take input arguments. is it possible to run this script with hapless and pass arguments..

command = ['blender', '-P', 'gp_remote.py', '--', '--payload_file', payload_file]

@bmwant
Copy link
Owner

bmwant commented Apr 18, 2024

@lalamax3d yes, did you try

hap run -- blender -P gp_remote.py -- --payload_file payload_file

?

What's the output of hap show -v <hap-id> in case of a failure? Command there should be blender -P gp_remote.py -- --payload_file payload_file as you provided.

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

2 participants