PDA

View Full Version : One problem stopping me from finishing my script - help please


StefanStavrev
08-21-2006, 03:52 PM
Hey guys http://www.highend3d.com/boards/style_emoticons/default/smile.gif

Here is what i want to do...

I have node in the scene called File1 (File texture node) ...

I have a polygon plane called TexturedPlane...

I want when a texture in File1 is loaded,polyProjection to be aplied to the polygon plane...

First of all i don't know the attribute's name ... is it File1.ImageName or File1.imageName or File1.image_Name...bla bla

So when that attribute is different then empty string polyProjection to be aplied to the polygon plane...

Please help guys http://www.highend3d.com/boards/style_emoticons/default/smile.gif

This more, and my script ImagePlane will be finished...

ALSO HUGE HUGE THANKS TO NAUGHTY(from highend3d) FOR THE HELP HE GAVE ME THROUGH MSN MESSENGER....

Hope someone else will want to help me like thta from time to time http://www.highend3d.com/boards/style_emoticons/default/smile.gif

Starrider
08-21-2006, 05:30 PM
if you don't know about attribute names or hidden attributes just have a look at the maya help pages under nodes. there you'll find the file node and it's first attribute "fileTextureName (ftn)".
good luck!

Starrider
08-21-2006, 05:33 PM
you'd use the scriptJob command to execute a defined script whenever an attribute changes:
scriptJob -runOnce true -attributeChange File1.ftn [SCRIPT-TO-EXECUTE];

CGTalk Moderation
08-21-2006, 05:33 PM
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.