Forum Replies Created
-
AuthorPosts
-
Szabadi GergelyParticipant
Hi!
Is there any documentation/user manual about cinerender in GDL. I only found this (https://gdl.graphisoft.com/gdl_other_docs/surfaces) but it is only in draft version.
Thx
G. Szabadi
Szabadi GergelyParticipantDear Ben!
Yes it helped, thank you. But I still cannot understand how can I change values of an array in this example.
I tried this:PARAMETER SCRIPT:
for i=1 to n
if GLOB_UI_BUTTON_ID <> 0 then
if GLOB_UI_BUTTON_ID<0 then
parameters n = n – 1
parameters vari_mat[i]= tempTexts[i-1]
endif
if GLOB_UI_BUTTON_ID>0 then
parameters n = n + 1
parameters vari_mat[i]= tempTexts[i+1]
endif
GLOB_UI_BUTTON_ID = 0
endif
next iBASIC SCRIPT:
dim vari_mat[]
vari_mat[1]=mat1
vari_mat[2]=mat2
vari_mat[3]=mat3
vari_mat[4]=mat4
vari_mat[5]=mat5
vari_mat[6]=mat6
vari_mat[7]=mat7
vari_mat[8]=mat8
vari_mat[9]=mat9
vari_mat[10]=mat10dim vari_mat_[]
vari_mat_[1]=”mat1″
vari_mat_[2]=”mat2″
vari_mat_[3]=”mat3″
vari_mat_[4]=”mat4″
vari_mat_[5]=”mat5″
vari_mat_[6]=”mat6″
vari_mat_[7]=”mat7″
vari_mat_[8]=”mat8″
vari_mat_[9]=”mat9″
vari_mat_[10]=”mat10″dim tempTexts[]
tempTexts[1]= vari_mat[1]
tempTexts[2]= vari_mat[2]
tempTexts[3]= vari_mat[3]
tempTexts[4]= vari_mat[4]
tempTexts[5]= vari_mat[5]
tempTexts[6]= vari_mat[6]
tempTexts[7]= vari_mat[7]
tempTexts[8]= vari_mat[8]
tempTexts[9]= vari_mat[9]
tempTexts[10]= vari_mat[10]dim tempTexts_[]
tempTexts_[1]= vari_mat_[1]
tempTexts_[2]= vari_mat_[2]
tempTexts_[3]= vari_mat_[3]
tempTexts_[4]= vari_mat_[4]
tempTexts_[5]= vari_mat_[5]
tempTexts_[6]= vari_mat_[6]
tempTexts_[7]= vari_mat_[7]
tempTexts_[8]= vari_mat_[8]
tempTexts_[9]= vari_mat_[9]
tempTexts_[10]= vari_mat_[10]I just don’t figure out, how can I change of the values of an array.
ThXG. Szabadi
Szabadi GergelyParticipantHi!
Thanks for the respond. Sorry it doesn’t work for me. If I use the “application_query” then I get a missing comma error.
But I would like to show, what I am really into. I attached the gsm. with a UI picture, what I am working.So…
I have a “n” (1-10) looped 3D obejct.
I have 10 surface parameter. I control them with array.
I would like that the user can control with UI BUTTONS (+, -) the n parameter so when I push “-” button it delete a row, but the essence is that I don’t want to delete the row, I only want that every material parameters value would jump one place + or -.I hope I describe my problem well. I am so sorry, I get that it is not so much a forum theme rather my own defect that I cannot understand.
Thanks for any help
G. Szabadi
Szabadi GergelyParticipantThank you Csilla!
That is what I was looking for!G. Szabadi
Szabadi GergelyParticipantDear Csilla,
I think maybe you misunderstood. I understand, that I can define values in parameter list. But I don’t want to define as I don’t know which picture (from which library) want to be used by the user.
So I found this “gs_picture_name” parameter name (STR type), which results that the parameter values already change for only picture formats from added libraries. I only want to use more parameter like this.
for example I want create a double screens for a PC workstation and the double screen is one object. I would like that user has the option which picture he or she want to see on which screen. And the user could choose from all added library.
G. Szabadi
Szabadi GergelyParticipantBut I would like to have the option to scroll and choose from the pictures of added libraries. Like in the picture, but I would like to create this scrolling-type parameter many times.
Attachments:
G. Szabadi
Szabadi GergelyParticipantI just update these objects I attached. This version OBJ1 only has one lenght parameter ‘A’ which I would like to use to scale in 3D. OBJ1 working fine. OBJ2 calls two OBJ1 and replace ‘A’ parameter with new ones. In 3D I see the purple graphical hotspot, I can scale but has no effect on the replaced ‘A’ parameters….
Do I haves to setup ‘A’ as an array type parameter instead of lenght type parameter?
Attachments:
G. Szabadi
Szabadi GergelyParticipantThank you Gergely for your quick respond!
It is strage. When I call a macro I can replace the macro parameter to a new one, but the hotspots cannot replace these parameters? I want to use this OBJ1 multiple times in OBJ2 so I can edit all the separate OBJ1 parameters with their own separate Graphical Hotspots in 3D. It is working without graphical hotspot.
Any idea?
THX
G. Szabadi
Szabadi GergelyParticipantSzabadi GergelyParticipantOBJ1
G. Szabadi
Szabadi GergelyParticipantI attached the objects, I was working on. OBJ2 only call OBJ1 object. No error massage in OBJ1. Error massage in OBJ2.
I am using AC20 5025 HUN.G. Szabadi
Szabadi GergelyParticipantThanks for the answer!
And is there any way, that my label (use textbox) act as a normal label (textbox)?
G. Szabadi
Szabadi GergelyParticipantThanks, perfect. I am trying to refer to this string description from a label. I am trying with ASSOCLP_PARVALUE_WITH_DESCRIPTION but with no sucess.
!MASTER dim intparam[] intparam[1]=1 intparam[2]=2 intparam[3]=3 intparam[3]=4 dim strparam[] strparam[1]='opt1' strparam[2]='opt2' strparam[3]='opt3' strparam[3]='opt4' !PARAMETERS values{2} "a" intparam[], strparam[] !2D text2 0, 0, a ! LABEL 2D Script to refer and write "a" info1="" n=REQUEST("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "a", DUMMY_name_index, DUMMY_type, DUMMY_flags, DUMMY_dim1, DUMMY_dim2, info1) text 0, 0, info1
I tried with strparam[a] as I put dim strparam[] in the label Master script also.
G. Szabadi
Szabadi GergelyParticipantIf I define a parameter with array that has separately string values, and integer values, how can I refer for the string values? I want to write the string values, but anyhow I do it I get back the integer values
!MASTER dim intparam[] intparam[1]=1 intparam[2]=2 intparam[3]=3 intparam[3]=4 dim strparam[] strparam[1]='opt1' strparam[2]='opt2' strparam[3]='opt3' strparam[3]='opt4' !PARAMETERS values{2} "a" intparam[], strparam[] !2D text2 0, 0, a
G. Szabadi
Szabadi GergelyParticipantThank you, Gergely!
G. Szabadi
-
AuthorPosts