
## write(self, mat) {#aspose.threed.utilities.FMatrix4}

Write the matrix to the constant



```python

def write(self, mat):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| mat | aspose.threed.utilities.FMatrix4 | The matrix to write |


## write(self, n) {#int}

Write a int value to the constant



```python

def write(self, n):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| n | int |  |


## write(self, f) {#float}

Write a float value to the constant



```python

def write(self, f):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| f | float |  |


## write(self, vec) {#aspose.threed.utilities.FVector4}

Write a 4-component vector to the constant



```python

def write(self, vec):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| vec | aspose.threed.utilities.FVector4 |  |


## write(self, vec) {#aspose.threed.utilities.FVector3}

Write a 3-component vector to the constant



```python

def write(self, vec):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| vec | aspose.threed.utilities.FVector3 |  |


## write(self, x, y, z, w) {#float-float-float-float}

Write a 4-component vector to the constant



```python

def write(self, x, y, z, w):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float |  |
| y | float |  |
| z | float |  |
| w | float |  |



### See Also
* module [`aspose.threed.render`](../../)
* class [`PushConstant`](/3d/python-net/aspose.threed.render/pushconstant)
