Im using Deltagen 2024 and using the Example to generate UVs on the active whole scene from the SDK documentation as start for my script.
(documentation_deltagen_pythonSDK2024/Geometry.Mapping.html?highlight=setscal#id1)
But I fail to set scale to 10.0 cm for any texturing mapping.
Can anyone explain how to do this?
Here is a snippet of my code that is NOT working....
# Apply UV generation result = uvGenerator.apply(target, genUVsSettings) if not result.success(): logger.logError(f"UV generation failed: {result.errorMessage()}") return logger.logInfo("UV generation done.") logger.logInfo("UV generation successful.") # UV Layout uvLayouter = Mapping.createUVLayouter() uvLayoutSettings = Mapping.createLayoutSettings() uvLayoutSettings.keepChartRotation(True) # Do NOT call scaleUVs if not available if hasattr(uvLayoutSettings, "scaleUVs"): uvLayoutSettings.scaleUVs(1.0, 1) else: logger.logWarning("Could not scale UVs: scaleUVs().")