-
Notifications
You must be signed in to change notification settings - Fork 34
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
Implement Scenes & References #19
Comments
@KevinHuyskens @moethu Is it correct to conclude that this library doesn't support saving or loading of skp scenes? AFAIK the c library does have this implementation right? |
Hi @promontis yes the library doesn't include scenes at the moment. It looks like it would be easy to add them. Do you need them for a specific use-case? |
@moethu yeah, I will need to read and write scenes. I'm creating a 3d configurator, and the different configurations are expressed as scenes. |
what parts of a scene would be necessary for you to achieve this? rendering options? layer settings? element visibility? |
@moethu element visibility... "hidden objects" in the SketchUp UI |
@promontis I started implementing a reading scenes with hidden elements feature first. |
What options do we have? Elements are now split up in different cases, right? Like components, curves, groups, instances, etc. What about adding a list of ID with the type of element? Does that work? |
In order to keep compatibility I wouldn't remove the existing lists by types. I added a new dictionary (int ID, entity) so you have both options in the end. objects are only referenced so this doesn't require much additional memory. Each Scene object has a list of hiddenElements containing references to the actual elements. Would this work for you? |
Yeah, both suggestions work for me! |
@promontis can you give this branch a try? it works for me. writing scenes however will require some more changes in the library. |
@promontis I never got your feedback on this one, does it work? |
SketchUp makes use of scenes to hide and show a specified set of layers. It would be nice if there was a reference to these scenes.
The text was updated successfully, but these errors were encountered: