Total Pageviews

Friday, August 16, 2013

Python Script - I found a new item to be careful about.

 
In the image above, there are variables being defined.  Here is what I ran into.  I entered the following syntax for "B"

B=18

I kept having my B length on my component in the model being shifted anytime I drug the adjusting arrow to and odd value or typed in an odd value (like 15, or 16.75)  It would either over adjust or not move at all.  Then I tried this...

B=18.0

All worked fine after that!  You have to have the ".0" in the value to allow for non-whole numbers.  This was a simple thing but I found no documentation on it and really just figured it out by trial and lots of error.

Happy Scripting!

----------------
Acts 1:8

No comments: