WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Move texture from one object to another (https://forum.worldviz.com/showthread.php?t=288)

Johannes 02-09-2005 03:24 PM

Move texture from one object to another
 
Hi,

I try to get a texture from an existing object and put it on another object in my scene. Does not work.

e.g.

soccerball3.texture(soccerball4.texture)

Johannes

farshizzo 02-09-2005 03:32 PM

Hi,

You can't retrieve the texture of an object. You will have to create the texture within Vizard and then apply it to both objects:
Code:

tex = viz.add('texture.jpg')

soccerball3.texture(tex)
soccerball4.texture(tex)


Johannes 02-09-2005 03:55 PM

Quote:

Originally posted by farshizzo

You can't retrieve the texture of an object.
Thank you, that is what I wanted to know.
Johannes


All times are GMT -7. The time now is 08:36 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC