3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
Changing texture U,V values using script|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Newcomer |
I am writing a script which changes the U,V texture mapping for an object. The script appears to work as I get the desired effect when viewing the object after running it. However if I save the scene and then reload it again, I find that the changes that were done using the script are no longer seen and the object reverts back to the original texture mapping. Is there something that needs to be done to make the changes permanent. Changing the texture mapping using the tools works but I need to tile the texture and cannot see any other way of doing it than using a script.
The script cycles through the points on the selected surface and uses the Getuv & Setuv methods to read and reset the U,V values. I am using 3d Canvas Pro v 6.6.5.3 |
||
|
|
Member |
You need to add :
Object.WriteScriptOperationLayer to write a Script operation layer to save the changes. |
|||
|
|
Newcomer |
That's done the trick.
Thanks. |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
3D Canvas Community
3D Canvas Discussion Forums
Plug-In Development and Scripting
Changing texture U,V values using script
