Message 1 of 3
Not applicable
07-03-2018
06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Simplified example of my script:
varSet = createVariantSet(variantName)
mats = getAllMaterials()
for mat in mats:
varSet.addScript("my script here" + mat.getName() + "the rest of my script here")When I execute this script, the variant "variantName" is created, but only with the last material in the scene, showing that it's looped but over-written the script for all the other materials.
I can't seem to figure out a way to loop without overwriting - or loop outside of varSet.addScript() and calling back to it.
Many thanks!
Solved! Go to Solution.
