Jump to content
Developer Wiki and Function Reference Links ×

What happened to lighting device


J. Miller

Recommended Posts

I have a VW script that  selects objects based on the data in the "lighting device" record.

I root out other items by making sure the record "Lighting Device" is attached to keep the script from breaking?

Now i see "EntEquipmentUniversal" as the record on a lighting device.

Is there a workaround so I can find the handle to "lighting device" so i can grab data?

Thanks

Jeff

 

Link to comment

Plug-in objects have a record attached to them to hold plug-in parameters, but can also have data records attached to them, of which EntEquipUniversal is one. The plug-in record is not guaranteed to be the first record attached.

 

Your best method depends on how you are filtering objects. If you are using ForEachObject, you can use the selected 'PON' (Plugin Object Name) to match a plug-in object by its universal name. You can also iterate through attached records, though I prefer using Eval and the PON criteria.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...