JellyFire
02-18-2008, 10: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
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
