Strange scope problem in scripted material plugin

Strange scope problem in scripted material plugin

paulneale
Advisor Advisor
345 Views
3 Replies
Message 1 of 4

Strange scope problem in scripted material plugin

paulneale
Advisor
Advisor
I have a parameter called selfIllumination, it is defined as a float and has a default value of 100, below in a function I try to set that value and I get an error that selfIllumination is undefined and it can not be set.

Now I can set any of the delegate parameters in this function but not any pb2 params for the scripted plugin. The fn is being called by a registerTimeCallBack but I'm not sure that is having any effect.

Any words of wisdom from any one?
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
346 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Nope, I just thought I remembered you saying you gave up on scripted modifiers some time ago...

sorry, but if you figure it out I'd like to know, sounds a bit like a problem I had/have...

-Johan
0 Likes
Message 3 of 4

paulneale
Advisor
Advisor
I only found work arounds really. What it had to do with is the on set val handler in the parameter block. I moved it out to the rollout and it works fine. I use scritped modifiers all the time but not for manipulating geometry. I use them for character control panels mostly. And of course tools like PEN Attribute Holder.
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
Message 4 of 4

Anonymous
Not applicable
Ok, I did understand wrong then 🙂
Thanks for posting back, even though unfortunately it's not related to my problem...

-Johan
0 Likes