Home › Forums › Problems and solutions in GDL › 3D modelling › LIBRARYGLOBAL – MESS UP
- This topic has 5 replies, 2 voices, and was last updated 6 years, 1 month ago by
Nader Belal.
-
AuthorPosts
-
-
March 4, 2019 at 03:52 #4565
Nader Belal
ParticipantHi there,
I was trying to work my head with LIBRARYGLOBAL in an object that I´m creating, and although I have followed the required indications by the GDL manual, it fails miserably to update the object’s parameter that I have destined for that matter.
My question is, what are the factors that can mess up with the correct functioning (updating) of LIBRARYGLOBAL ?
-
March 4, 2019 at 08:17 #4567
Gergely Fehér
KeymasterHi,
LIBRARYGLOBAL is a function that should be used in 2d and 3d to reach the parameter values of an MVO dialog, and change the object’s behaviour based on that. It should not be used in parameter script, and it does not make any effect on parameter values of placed objects.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
March 4, 2019 at 12:37 #4570
Nader Belal
Participant@Gergely Fehér
So:
1. Would there be a problem in putting LIBRARYGLOBAL in the “Master Script“?
2. How to force the GDL to read the update the LIBRARYGLOBAL changes ? **PS:
I have an object (not made by me) that works seamlessly with LIBRARYGLOBAL, so when a specific parameter value is changed in the template, the object changes instantly.
On the other hand, when I try to recreate the same manner in my object (to which I have linked this parameter to GUI and 3D model) it updates instantly in the GUI, but in the 3D view, it doesn’t update unless I AC object tool.-
March 4, 2019 at 13:27 #4571
Gergely Fehér
KeymasterHi,
1. LIBRARYGLOBAL should be used in 2D and 3D scripts. If you put it to the master script, you should limit the usage with a condition using GLOB_SCRIPT_TYPE.
2. If you are reading the proper paramvalues of the MVO object in 2d and 3d scripts with LIBRARYGLOBAL, you’ll always get the values for the current view. Do not need to force anything…Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
March 4, 2019 at 13:29 #4572
Gergely Fehér
KeymasterCheck the samples here: https://gdl.graphisoft.com/tips-and-tricks/model-view-options-in-general and here: https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE
-
-
March 19, 2019 at 00:51 #4615
Nader Belal
ParticipantThank you Gergely, it worked perfectly as you have advised
-
-
AuthorPosts
- The forum ‘3D modelling’ is closed to new topics and replies.