Raytracer05
@raytracer05
New Member
Joined: Feb 15, 2024
Topics: 9 / Replies: 177
Reply
RE: Callback/when construct if patch changes?

Ok, I thought we were answering slightly different questions Thanks for the code snippet, I think… the problem with reading your posts is it makes …

13 years ago
Forum
Reply
RE: Callback/when construct if patch changes?

As far as I know functions called by the ‘Node Event System’ need to be able to accept two parameters. From the Max help… Important: The callback f…

13 years ago
Forum
Reply
RE: Callback/when construct if patch changes?

You can’t tell the callback not to supply the 2 parameters however you can edit your existing function to expect 2 parameters and edit your existing c…

13 years ago
Forum
Reply
RE: Callback/when construct if patch changes?

Have a look in the Max help for the geometryChanged callback in the Node Event System. It might be what you’re looking for.

13 years ago
Forum
Reply
13 years ago
Forum
Reply
RE: Persistent Global Variables

The functions could also be moved inside the rollout. SOLVED! Moving the function SetWallMaterial inside the rollout stopped both errors. I guess i…

14 years ago
Forum
Reply
RE: Persistent Global Variables

If I use the old script I get two error dialogues on opening the scene. One saying there’s a missing dll, FileName: Scripted Plugin Class: WallCove…

14 years ago
Forum
Reply
RE: Persistent Global Variables

It took me a bit longer than I thought but taking the rollout out of the def worked, render servers no longer ask for the script to be installed. Tha…

14 years ago
Forum
Reply
RE: Persistent Global Variables

Thanks, I’ll try that tomorrow and let you know how I get on.

14 years ago
Forum
Reply
RE: Persistent Global Variables

Thanks for the reply Paul. I’m not sure what you mean by leaving a callback persistent. Anyway here’s the code: — Wallcovering Script try (destro…

14 years ago
Forum
Topic
Forum
Replies: 10
Views: 39
Reply
RE: Script works fine on 2011 not on 2009

Yep you’re right. I was trying to make sense of the error message, “syntax error: at on,”

14 years ago
Forum
Reply
RE: Script works fine on 2011 not on 2009

Shouldn’t on roll open do say on rollout open do

14 years ago
Forum
Reply
RE: Grr… m.diffusemap = myBitmap

Thanks DenisT, that’s a much neater way of doing it.

14 years ago
Forum
Reply
RE: Grr… m.diffusemap = myBitmap

Does this help? mypath = “m:\\maps\\brick\\brkwea02.jpg” mymaterial = createinstance standardmaterial –Create a new standard material – mymate…

14 years ago
Forum
Page 12 / 13