Jump to content
AutoDesSys Forums
Sign in to follow this  
setz

3 Point Align

Recommended Posts

Looking.

Currently, all scripts are "Utility" scripts.  So, until I look further, my guess is it will not behave quite the same way.

I don't recall off the top of my head to see if click points can be tracked.  That will be the first thing to consider.

Pre-picking is currently NOT available since the API does not keep the list in order.   So, there is no way to know which object was picked first or last.

 

However, I will have to dig in to see if we can get at least some partial functionality.

¢£

Share this post


Link to post
Share on other sites

Ok,

Digging into this, I see no way to do it directly.  There doesn't appear to be (in the documentation) a way to detect mouse information such as position or clicking etc...   So, that means any current iteration will have to be pre-pick only.  As mentioned above though, we cannot tell which points were picked when.  ***   Which, then means, we would have to figure out a method for keeping track of the order of the nodes picked and their order.  At the moment, the only thing I can think of is to write them to a temporary file.  And getting them selected and tracking the order will be at best, kludgey.

*** This may be a limitation of fZ using Python 2.7     Python has a list object type called a "Dictionary"  and of P2.7  dictionaries are unordered.  There are just no two ways about it.    (in versions 3.6 and newer, dictionaries have become ordered)    Though, I am not sure that this is the issue or not.  It is a possibility, however.

I will continue to think about this, however.

¢£

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×