pindercarl
@pindercarl
New Member
Joined: Feb 15, 2024
Topics: 0 / Replies: 10
Reply
RE: Plugin script weirdity

The first thing I notice is that there is no ClassID assigned to the scripted-plugin. The classID is how Max keeps track of instances of the plug-in i…

19 years ago
Forum
Reply
RE: How does this work?

I should have checked my assumption before I posted a comment. Thanks for the reply, Bobo.

19 years ago
Forum
Reply
RE: How does this work?

While this is not technically recursive, you are starting at the top of the hierarchy and adding members to the array. So, say you pass $Bip01 into th…

19 years ago
Forum
Reply
RE: Variables = to file paths

Whenever you need to use a special character in a string, you need to precede it with an escape character, the backslash. A file path would then look…

19 years ago
Forum
Reply
RE: How to get preview of a slot in material editor in my interface ?

My recollection of that script is that a sphere is created in the scene, rendered, and then deleted. It’s certainly the easiest way to acheive the eff…

19 years ago
Forum
Reply
RE: Render to texture scripting

local curBM; select obj; — select the object — bake the object local w = obj.renderWidth(); local h = obj.renderHeight(); if w == 0 or h == 0 then r…

19 years ago
Forum
Reply
RE: buttonup canceled code?

Try passing the variable by reference instead of by value: on myVTile buttonup &myCanceled do ( print myCanceled if myCanceled == True do …

19 years ago
Forum
Reply
RE: Set Material bitmap(directx9)

Sorry about that. Too much copy/paste, not enough proofreading. The openBitmap function takes only one argument, the filename, and that is not optiona…

19 years ago
Forum
Reply
RE: Set Material bitmap(directx9)

There are two possiblities here: (1) Pass the bitmap as a bitmap instead of a texturemap, e.g, meditMaterials[2].material1.diffusetexture = ( openBi…

19 years ago
Forum
Reply
RE: toggle a script on and off

You’re missing a ‘t’ in the line: “lightstaus=1” so you aren’t ever changing the value of the global variable lightstatus.

19 years ago
Forum