Does anyone had a similar experience? How to address this problem?
Kind regards!
Best answer by David.Nguyen
Hi Jonasz,
I had more success with the following snippet in Python:
# Retrieve object of interest
my_object = TheSystem.NCE.GetObjectAt(1)
# Retrieve scatter data from the relevant face
scatter_data = o11.CoatScatterData.GetFaceData(0)
# Retrieve scatter settings
scatter_settings = scatter_data.CurrentScatterModelSettings._S_Gaussian
# Retrieve sigma parameter
sigma = scatter_settings.Sigma
# Print current sigma
print(sigma)
# Change sigma to a new value
sigma = 1.2345# Apply new scatter settings
scatter_data.ChangeScatterModelSettings(scatter_settings)
I hope this helps. The main difference is that I used the _S_Gaussian property to sort of cast the settings to the Gaussian scatter model.
Also you need to use the ChangeScatterModelSettings method to actually apply the settings.
I had more success with the following snippet in Python:
# Retrieve object of interest
my_object = TheSystem.NCE.GetObjectAt(1)
# Retrieve scatter data from the relevant face
scatter_data = o11.CoatScatterData.GetFaceData(0)
# Retrieve scatter settings
scatter_settings = scatter_data.CurrentScatterModelSettings._S_Gaussian
# Retrieve sigma parameter
sigma = scatter_settings.Sigma
# Print current sigma
print(sigma)
# Change sigma to a new value
sigma = 1.2345# Apply new scatter settings
scatter_data.ChangeScatterModelSettings(scatter_settings)
I hope this helps. The main difference is that I used the _S_Gaussian property to sort of cast the settings to the Gaussian scatter model.
Also you need to use the ChangeScatterModelSettings method to actually apply the settings.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.