2 questions:
-
- In my scene I don’t use ShapeDiver ndoes, yet I get this invisible document payload.
When I highlight it with MetaHopper and delete it, and save the file, upon reopening it reappears. When I open the file on clients PC, it prompts to install ShapeDiver (which I don’t want to, as it is not used). Please advise. I use R8
- In my scene I don’t use ShapeDiver ndoes, yet I get this invisible document payload.
And strangely though, when I uninstalled ShapeDiver I an attempt to create a gh file with the aforemention DocumentPayload (SDDP) node, my Python node to list all used external libraries gives error “1. Error running script: type object ‘Instances’ has no attribute ‘ComponentServer’ [9:1]” in this line:
asm = gh.Instances.ComponentServer.FindAssemblyByObject(obj.ComponentGuid)```
as part of python node to find all dependicies
import rhinoscriptsyntax as rs
import Grasshopper as gh
if Find:
asms = {}
# Iterate through all objects in the Grasshopper document
for obj in ghenv.Component.OnPingDocument().Objects:
asm = gh.Instances.ComponentServer.FindAssemblyByObject(obj.ComponentGuid)
if asm is not None and not asm.IsCoreLibrary:
# Only add non-empty assembly names
if asm.Name and asm.Version:
asms[asm.Name] = asm.Version
# Convert the dictionary to a list of strings and remove any empty values
Dep = [f"{name} {version}" for name, version in asms.items() if name and version]
# If the list is empty, set a default message
if not Dep:
Dep = ["No non-core assemblies found."]