This sample app let you scatter trees on a given object using the Flow Graph Engine API. To do so, this sample use the bifrost executor to execute the provided bifrost graph. This what the graph looks like when loaded in Maya.
- APS Account: Retrieve your app's
client_id
andclient_secret
from the Developer Portal. - Python basic knowledge.
- Maya (optional) to view/edit the Bifrost graph being executed
Install the required packages using pip install -r ./requirements.txt
.
Set the following environment variable with your APS app client id and secret
APS_CLIENT_ID={YOUR_CLIENT_ID}
APS_CLIENT_SECRET={YOUR_CLIENT_SCRET}
By default, this Flow Graph Engine Job
sample execute this bifrost graph file with the following inputs:
- a usd file in which the first mesh prim will be used to scatter on
- An amount of trees to scatter. Set to 1000 in the code.
- A usd output file name where to write the output scattered trees
To execute the code, run python fge_addtrees.py --trees 1000
This code is licensed under the terms of the MIT License. Please see the LICENSE file for more details.