PDA

View Full Version : scriptJob/scriptNode help?


JellyFire
02-18-2008, 11:34 AM
I'm having a bit of trouble..
I want to create a scriptJob to change an imageplane's source when an enum attribute is changed..
Seeing as it needs a proc to run, this causes me some problems as it'll have to be run everytime the scene opens otherwise the scriptJob won't work! I can't seem to use the scriptNode, can anyone help me?
Something like this

global proc imagePlaneFileType(){
if (`getAttr MM_blt_065_0070_CAMShape.imageType` == 0){
print ("In Iff Mode");
}
else{
print ("In Jpeg Mode");
}
}

How can I get the scriptNode to run this everytime it starts up?
Sorry if it makes no sense, I'm typing in a rush!
Thanks
Christian

JellyFire
02-18-2008, 01:34 PM
Completly ignore me! Just being stupid!!! :rolleyes:
Found the scriptNode bit in the Expression Editor! I can get the MEL from that!
*Hits head on Table!!!*

Christian

CGTalk Moderation
02-18-2008, 01:34 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.