Download

Set Component Properties Through Python

Hello,

I have a script which finds Skeletal Meshes and exposes some properties for a user to toggle (visibility, render main, render custom, only owner see).

The UI allows them to select any asset from the world editor, but now I need it to work for Blueprints.

for the SKs, I’m grabbing the PrimitiveComponent from the actor, but for Blueprints I’m trying to get the SkeletalMeshComponent instead to access the properties.

It seems to work for the first toggle and then everything stops working.

Is there a different way to do this?