You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an assumption I would be able to specify which Scene should load by default. From what I understand now though that just isn't possible after my search in the types and docs.
Obviously within Spline > Export > Code Export > Play Settings > MAIN SCENE I can change the main display scene. My expectation is I'd be able to also pass that in code. Here's my scenario. I have a component that I manage from a single file, with the Scenes being the variants and I'd choose which Scene would be displayed at a property level on the Spline component say <Spline scene={scene} primary={'Scene 2'} />. If the primary prop was used it would have more specificity than the primary passed in the Play Settings within the Spline App export interface. If the primary prop wasn't used or if the prop null, undefined, or length 0 the primary scene would always fallback to the primary scene that was chosen from the Play Settings in the Spline App.
Not being able to have this functionality makes my life much more difficult as now my "variants" must live in a single scene file, where now my main component essentially becomes static having to manually jump into each Spline file to make any adjustments there might be - one by one.
Now I'd love to be wrong :) Please point me in the direction of the solution if I am! Although if my research into the capabilities of what I can do with Spline right now appear correct are there plans to add this functionality in later iterations? If not, thats fine too my use case may not spread through to many Spline users it's simply with the definitive yes or no I'd be able to find a more long term solution to my current problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I had an assumption I would be able to specify which Scene should load by default. From what I understand now though that just isn't possible after my search in the types and docs.
Obviously within
Spline > Export > Code Export > Play Settings > MAIN SCENE
I can change the main display scene. My expectation is I'd be able to also pass that in code. Here's my scenario. I have a component that I manage from a single file, with the Scenes being the variants and I'd choose which Scene would be displayed at a property level on the Spline component say <Spline scene={scene} primary={'Scene 2'} />. If the primary prop was used it would have more specificity than the primary passed in thePlay Settings
within the Spline App export interface. If the primary prop wasn't used or if the prop null, undefined, or length 0 the primary scene would always fallback to the primary scene that was chosen from thePlay Settings
in the Spline App.Not being able to have this functionality makes my life much more difficult as now my "variants" must live in a single scene file, where now my main component essentially becomes static having to manually jump into each Spline file to make any adjustments there might be - one by one.
Now I'd love to be wrong :) Please point me in the direction of the solution if I am! Although if my research into the capabilities of what I can do with Spline right now appear correct are there plans to add this functionality in later iterations? If not, thats fine too my use case may not spread through to many Spline users it's simply with the definitive yes or no I'd be able to find a more long term solution to my current problem.
Thanks!
Bryan
Beta Was this translation helpful? Give feedback.
All reactions