I just quickly tested this and it seemed to work.
dim obj as xpBaseObject
dim mat as xpMaterial
self.GetObjectByName("Quad1", obj)
if obj.GetMaterial(0, mat) = true
engine.DebugMessage("material", 0)
else
engine.DebugMessage("no material", 0)
end if
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 07-02-2025 14:29
From: Simon Redmile
Subject: Face.Face.IsBound
I guess you could use "getmaterial" property and see if it returns something or nothing?
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 07-02-2025 14:12
From: Daryl Judd
Subject: Face.Face.IsBound
Is there a Xpression script counterpart to the Visual Logic Face.Face.IsBound? I want to check to see if there is a material bound to an object, but running into roadblocks doing it with Visual Logic, so I'd like to do it with a script instead.
------------------------------
Daryl Judd
Sbgtv
------------------------------