Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    Changing texture U,V values using script
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Newcomer
Posted
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
 
Posts: 2 | Registered: Sat November 11 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of DOM107
Posted Hide Post
You need to add :
Object.WriteScriptOperationLayer

to write a Script operation layer to save the changes.
 
Posts: 493 | Registered: Sat September 04 2004Reply With QuoteEdit or Delete MessageReport This Post
Newcomer
Posted Hide Post
That's done the trick.

Thanks.
 
Posts: 2 | Registered: Sat November 11 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    Changing texture U,V values using script

© Amabilis Software 2003-2007