cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Lachlan Green
Enthusiast

Run part of script on placement only

Hi all,

As the subject says, I'm looking for a way to have part of the script run only when the object is placed. If it is edited, moved, rotated etc that section should not run again. I thought I saw something like this a long time ago in regards to a rock object that generated a random shape and some wanted it to only generate the shape when first placed. I can't remember the outcome tho.

The object I'm creating is a label. I want it to rotate to the view orientation so that when placed it appears horizontal. However, from there it needs to be able to be rotated and stay on that angle. I could make it so that if it has a rotation value it doesn't run the view orientation rotation. But that would mean if it is left horizontal it will rotate with the view orientation. Not the end of the world but it would be nice to have it consistent across the board.

Thanks in advance for any suggestions.
Lachlan Green | Wilson Architects | BIM Manager, Architect
Started on AC9 | Currently AC27 & AC28 | BIMCloud | GDL
Mac Studio (14,13) M2 Max, 64GB, 1TB SSD | MacOS 15.5
1 Reply 1
Pertti Paasky
Expert
Try glob_intquid. When the object is placed, it gets glob_intquid. When placing the object, it has no glob_intquid.
for example: if glob_intquid#"" then blabla...
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!