Boh Posted March 3, 2020 Share Posted March 3, 2020 @Sam Jones here's my "blank" template file that the script doesn't like. Cheers Blank Template.vwx Quote Link to comment
Robert J Posted March 3, 2020 Share Posted March 3, 2020 (edited) @Boh I noticed that Active layer have to be Visible. Invisible or Grayed do not works even if are Active. @Sam Jones I found that GetLVis procedure cause this problem. I analyzed this script and I think this is it. Do you known how fix it? Edited March 3, 2020 by Robert J | Design Express 1 Quote Link to comment
Boh Posted March 3, 2020 Share Posted March 3, 2020 Ok confirming that for the second script to work the layer the objects are on not only has to be the active layer but also has to be set to visible. Thanks @Robert J | Design Expressfor pointing this out. @Sam Jones it easy to tweek this script to work even if the active layer is not set to visible? Quote Link to comment
Sam Jones Posted March 4, 2020 Share Posted March 4, 2020 Not near a computer right now, but first, all the objects need to be on visible layers, but only one of them has to be on the active layer. I had assumed that since the active layer is always visible the selected/is visible criteria should work I will investigate. I do not want the command to rotate objects that are not visible. I'm sure that the problem of a not set to visible active layer can be solved by adding "on active layer" as a criteria, but the actual wording of the added criteria I will have to investigate at a computer. Quote Link to comment
Sam Jones Posted March 4, 2020 Share Posted March 4, 2020 Remember there is a check box that you must check in order to rotate objects on all visible layers. If that box remains unchecked only the active layer objects will be rotated. 1 Quote Link to comment
Boh Posted March 4, 2020 Share Posted March 4, 2020 Thanks Sam, I tried toggling all the options. It was just the active layer wasn't set to visible (despite being visible because it was the active layer). Quote Link to comment
Sam Jones Posted March 4, 2020 Share Posted March 4, 2020 Change the line that says: IF (GetLVis(objLayer) = 0) THEN (I think it is 152) to: IF ((theLayer = ActLayer) | (GetLVis(objLayer) = 0)) THEN 1 Quote Link to comment
ajpen Posted January 10 Share Posted January 10 I just found this thread, and it saved me two days of randomizing the rotation of literally thousands of objects. I discovered that both @Pat Stanford's Rotate Each Object and @MarcU's randomized version thereof don't seem to work as advertised within groups. For me it was not a problem, because in my context i could ungroup all of my objects and then re-group them after randomizing the rotation, but i thought i'd mention it if either Pat or Markus have the time to look in to that. Thanks guys, these scripts are great!!!! peace aj Quote Link to comment
Pat Stanford Posted January 15 Author Share Posted January 15 Both @MarcU's script and mine use the FSActLayer call to get the First Selected Object on the Active Layer and then we step through the Selected objects. If would be possible to re-write this to check if the selected object is in a symbol or group But considering my script was last updated in 2010 and MarcU's in 2015, there does not seem to be a huge call for this. 😉 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.