PDA

View Full Version : getTextureSize in Xpresso


Coen
11-02-2010, 10:39 PM
Hi,

kinda new to Xpressso. I have a plane and put a texture on it, I'd like the plane to adjust itself to the dimensions of the texture. Where can I read these values to pipe them into the height and width values of the plane object?

Cheers

Coen

Srek
11-03-2010, 10:15 AM
The Bitmap node allows for this, it will need the filename/path of the image file. If this is used in a material you can drag the bitmap shader the Xpresso editore as a node and read the filename from there.
Cheers
Björn

Coen
11-03-2010, 11:32 AM
That was easy :)
The very first node in the list and I overlooked it.

Thanks for your help Srek.

CGTalk Moderation
11-03-2010, 11:32 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.