PDA

View Full Version : Testing for selected Subtool visibility.



splodge
06-19-08, 10:17 PM
Hiya!,

I'm trying to test for visible sub tools and I can't figure out which function to use. But I did manage to find out which values to expect in another thread:



It appears if you test the selected subtool with the IGetFlags command, it returns 10 if the subtool is set to NOT visible and 11 if it is.

To add to that, if you test a subtool that ISN'T currently selected, it will return an 8 if it is NOT visible and a 9 if it is.


I've tried testing a Sub tool directly with this:

[Note,[IGetFlags,Tool:PM3D_Sphere3D#1],,,0]

and I've tried this:
[Note,[IGetFlags,Tool:Current Tool],,,0]

Neither returns the expected values.

Any ideas?

Svengali
06-20-08, 02:56 AM
Try using the IModGet command instead. A value less than 8 (< 8 ) means the subtool is hidden.

If I recall this was a tip I got from Marcus_civis. It would never have occurred to me to even try the IModGet command! :confused:


Sven

marcus_civis
06-20-08, 03:36 AM
I use the mods to find the visibility [>=8] and the flags to find the selected subtool [>=9]. It all gets a bit complicated because you need to use the subtool path with the right number and that changes depending on where the scroll bar is (so you have to position that correctly too!)

The simplest thing is to look at the code in the text file attached.

HTH,

splodge
06-20-08, 05:30 AM
I must admit, I was hoping that one of you two would reply. and you both went and replied!! WOOT!! :D

Thank you!

and thanks for the script, Marcus. I'll go study it! :)