Thank you for the reply on the email.
I tried the function "weave = GetTextile().GetWeave()" to get the textile which is created by the wizard. But when I use the GetMasterNodes function, it is still not working correctly.
the weave is as followed I want to get the path information of the yarn0(red),
Is there a problem in my code in the python console?
Code: Select all
> weave = GetTextile().GetWeave()
>>> yarn0 = weave.GetYarn(0)
>>> yarn0.GetMasterNodes()
(<TexGen.Core.CNode; proxy of <Swig Object of type 'std::vector< TexGen::CNode >::value_type *' at 0x0000019992BFBFC0> >, <TexGen.Core.CNode; proxy of <Swig Object of type 'std::vector< TexGen::CNode >::value_type *' at 0x0000019992BFBF30> >, <TexGen.Core.CNode; proxy of <Swig Object of type 'std::vector< TexGen::CNode >::value_type *' at 0x0000019992BCB120> >, <TexGen.Core.CNode; proxy of <Swig Object of type 'std::vector< TexGen::CNode >::value_type *' at 0x0000019992BCB150> >)
>>> yarn0.GetInterpolation
<bound method CYarn.GetInterpolation of <TexGen.Core.CYarn; proxy of <Swig Object of type 'TexGen::CYarn *' at 0x0000019992BFBF60> >>
>>> Best regards
Tong Qu