On 01/08/2016 at 16:29, xxxxxxxx wrote:
hi there,
I'm really new to python for C4D, so maybe this is a stupid question, but I struggled in the documentation and didn't find my answer...
I was trying to create a small python script to automate the Optimal Cubic Mapping tool, and get stuck.
The idea is to apply the cubic mapping to the selected object.
my code is like this:
> def main() :
>
> c4d.CallCommand(17039) # UV Polygons
>
> c4d.CallCommand(c4d.ID_OPTIMAL_MAPPING)
>
> tool = c4d.plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
>
> c4d.CallButton(tool, c4d.BAKETEXTURE_MAPPING_CUBIC )
>
>
>
>
> if __name__=='__main__':
>
> main()
>
>
>
Somehow I only reached the step of showing UV Polygons, but the optimal mapping is not applied.
Would be really thankful for any hint!!
Bo