
## \_\_init\_\_(self) {#}

Initializes a new instance of the [`Scene`](/3d/python-net/aspose.threed/scene) class.



```python

def __init__(self):
    ...
```




## \_\_init\_\_(self, entity) {#aspose.threed.Entity}

Initializes a new instance of the [`Scene`](/3d/python-net/aspose.threed/scene) class with an entity attached to a new node.



```python

def __init__(self, entity):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| entity | aspose.threed.Entity | The initial entity that attached to the scene |

### Example 


The following code shows how to create a [`Scene`](/3d/python-net/aspose.threed/scene) directly from an [`Entity`](/3d/python-net/aspose.threed/entity):

```python
from aspose.threed import Scene
from aspose.threed.entities import Box

scene = Scene(Box())

```


## \_\_init\_\_(self, parent_scene, name) {#aspose.threed.Scene-System.String}

Initializes a new instance of the [`Scene`](/3d/python-net/aspose.threed/scene) class as a sub-scene.



```python

def __init__(self, parent_scene, name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| parent_scene | aspose.threed.Scene | The parent scene. |
| name | System.String | Scene's name. |



### See Also
* module [`aspose.threed`](../../)
* class [`Entity`](/3d/python-net/aspose.threed/entity)
* class [`Scene`](/3d/python-net/aspose.threed/scene)
