Skip to content

Commit b0a2eb7

Browse files
committed
update README.md for automatic manifest upload; modify settings.json scene name; enhance logging in upload-object.sh
1 parent f0dd029 commit b0a2eb7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export C3D_DEVELOPER_API_KEY=<your-api-key>
156156

157157
### Uploading the object manifest
158158

159-
After uploading the dynamic object asset files (mesh, textures) you must upload the dynamic object manifest file to display the objects on the Cognitive3D dashboard for your project and scene.
159+
After uploading the dynamic object asset files (mesh, textures) the `upload-object` script automatically uploads the dynamic object manifest file to display the objects on the Cognitive3D dashboard for your project and scene. You may want to modify the manifest and re-upload it with new values, such as starting position.
160160

161161
### Dynamic object manifest uploader usage
162162

@@ -167,6 +167,7 @@ The dynamic object manifest for your scene and object is created automatically a
167167
--scene_id <scene-uuid> \
168168
[--env dev|prod] \
169169
[--verbose] \
170+
[--dry_run]
170171
```
171172

172173
#### Dynamic object manifest uploader required parameters

scene-test/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"scale": 1,
3-
"sceneName": "Test scene 7",
3+
"sceneName": "Test scene 8",
44
"sdkVersion": "0.1.4"
55
}

upload-object.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ if [ $status -ne 0 ]; then
183183
fi
184184

185185
log_info "Upload complete."
186-
echo "$response"
186+
log_info "$response"
187187

188188
# -------------------------------
189189
# Create or Overwrite Manifest File
@@ -216,8 +216,9 @@ cat > "${scene_id}_object_manifest.json" <<EOF
216216
}
217217
EOF
218218

219-
log_info "Manifest file created: ${scene_id}_object_manifest.json"
220-
log_info "Upload complete. Object ID: $object_id"
219+
log_debug "Manifest file created: ${scene_id}_object_manifest.json"
221220

222-
log_info "To upload the manifest, use the following command:"
223-
log_info "`./upload-object-manifest.sh --scene_id $scene_id --env $environment --verbose`"
221+
log_info "Automatically uploading the manifest."
222+
./upload-object-manifest.sh --scene_id $scene_id --env $environment
223+
224+
log_info "Upload complete. Object ID: $object_id"

0 commit comments

Comments
 (0)