Script Operator accessing scene object properties
#3
yay, its possible!

So I have to reference this assembly, right?
"$MaxRoot\bin\assemblies\Autodesk.Max.Wrappers.dll"

But then I get this error

Quote:-- Runtime error: „NET runtime exception: Unable to cast object of type 'Autodesk.Max.Wrappers.ReferenceTarget' to type "Autodesk.Max.Wrappers.IParamBlock‘


caused by

Code:
var pblock = (Autodesk.Max.Wrappers.IParamBlock)pointRef.GetReference(1);

ok, the problem occurs when the rectangle as modifiers, so maybe I need to get to the baseobject...
  Reply


Messages In This Thread
RE: Script Operator accessing scene object properties - by henning - 06-14-2021, 04:52 PM

Forum Jump: