Browse through the questions and answers listed below or filter and sort to narrow down your results.
Sumerian IDE Integration?
Hi folks!
Obviously, Sumerian includes it's own IDE for scripts, HTML files etc, but is there planned integration for third party products such as VSCode? Now that my number of files is increasing, I could really use the additional features to help me keep track of everything. Thanks
Accepted AnswerAmazon Sumerian
1
answers
0
votes
10
views
asked 5 months ago
Programmatically referring to entities in a Sumerian scene
I'm using LoadEntityInstanceAction as recommended [here](https://repost.aws/questions/QUfKvIDtHyT7msJq3wpKypOg/scripting-entity-creation-in-sumerian). However, rather than manually nominate a specific entity to copy, I would like to specify it dynamically so I can reuse the script to generate multiple new entities via a for loop.
The drag and drop fields used in Sumerian show the name, but if I type the name instead of dropping it in, it doesn't work, so the name only doesn't seem sufficient. Similarly, if I don't nominate a entity to copy, the console output shows a missing 'ID' value, but how do I format the entity ID hex string as a parameter? I'm hoping for something like:
ctx.start(
[s.entity.LoadEntityInstanceAction, {
entity: entityId='4ba69fc04dd94c1f904921e7e800c3a9'
onCreate: onSpawnedEntityReady
}]
);
I've been looking through the API documentation and can't see the answer, so if I'm just missing something, I apologise! Thanks
Accepted AnswerAmazon Sumerian
2
answers
0
votes
4
views
asked 5 months ago
Pass scripting variables to html in Sumerian
Hi folks, I've got an html3d element for use in a scene (it's actually part of a group of entities). I want to pass data to it from a script that reads JSON content from S3.
1. My understanding is that I can't use the script tags inline or with src= from within the html, so how do I get the variables into the html?
2. I'm looking at module://sumerian-aws/api, but can't see how to issue an API call to read from S3 - is there a tutorial on this?
Thankyou!
Accepted AnswerAmazon Sumerian
2
answers
0
votes
7
views
asked 5 months ago
Scripting Entity Creation in Sumerian
Hey folks, I want to script the creation of entities in Sumerian. I started with:
import * as s from 'module://sumerian-common/api/entity';
export default function CreationAction(ctx) {
ctx.start(
[ s.entity.CreateEntityAction, { name:"thing", addToWorld:(true) } ]
);
}
This is attached to an existing entity. However, when I play the scene, nothing seems to happen. So:
1. Can anyone point out where I am going wrong?
2. Note I have specifically imported from api/entity/ - is this necessary, or will importing from api/ include subfolders such as entity/?
3. Eventually, I want to source the entity to be created from an asset. How would that change the commands I need?
I've been wrestling with this for longer than I care to admit, so any help is massively appreciated! :-)
Thanks
Accepted AnswerAmazon Sumerian
1
answers
0
votes
5
views
asked 6 months ago
3
answers
0
votes
12
views
asked a year ago