Message 1 of 5
how to set paint type or chrome type via python script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i'm working on python script on vred, try to set paint type on UMetallicPaintMaterial, or chrome type on UChromeMaterial, via python script,
nd = findNode("chrome") fds = nd.getMaterial().fields() fds.setString("chromeType","highlyReflective") nd = findNode("paint") fds = nd.getMaterial().fields() fds.setString("paintType","2-coat")
but script does not work with error:
vrFieldAccess::setField: Couldn't find field 'chromeType'
vrFieldAccess::setField: Couldn't find field 'paintType'
how to set paint type or chrome type via python script, is there any documentation of python api on setting chromeType or paintType , or shows chromeType or paintType parameters
need help for this question, thanks.