scripting bug - section rotation

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
Flo_TUM
Posts: 7
Joined: Tue May 17, 2011 9:47 pm

scripting bug - section rotation

Post by Flo_TUM »

It looks like there's a bug when defining section rotation via scripting.
I've made a testfile, that imports a yarn with 3 eliptical sections with 0, 45 and 90 deg rotation angle.
As you can see in the screenshot, the angles are correct in the "edit section"-mask but in the 3d model they seem to be multiplied by 2.
When I define the yarn via the GUI this problem doesn't occure.
Maybe thats interesting for developing the program.

regards Flo
Attachments
angle_bug.jpg
angle_bug.jpg (105.91 KiB) Viewed 5776 times
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: scripting bug - section rotation

Post by louisepb »

Hi Flo,

I've checked this and it seems to be working ok. Make sure that you specify the angle in radians when writing scripts.

If you still have problems could you send me a copy of your script and I'll see if I can work out what the problem is.

Louise
Post Reply