Szabadi Gergely

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • in reply to: GDL cinerender rendering #3453
    Szabadi Gergely
    Participant

    Hi!

    Is there any documentation/user manual about cinerender in GDL. I only found this (http://gdl.graphisoft.com/gdl_other_docs/surfaces) but it is only in draft version.

    Thx

    G. Szabadi

    in reply to: UI button – parameters #3450
    Szabadi Gergely
    Participant

    Dear 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 i

    BASIC 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]=mat10

    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]=”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.
    ThX

    G. Szabadi

    in reply to: UI button – parameters #3445
    Szabadi Gergely
    Participant

    Hi!

    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

    in reply to: more picture parameters #3442
    Szabadi Gergely
    Participant

    Thank you Csilla!
    That is what I was looking for!

    G. Szabadi

    in reply to: more picture parameters #3440
    Szabadi Gergely
    Participant

    Dear 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

    in reply to: more picture parameters #3432
    Szabadi Gergely
    Participant

    But 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.

    G. Szabadi

    in reply to: Graphical Hotspots in Macro #3229
    Szabadi Gergely
    Participant

    I 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

    in reply to: Graphical Hotspots in Macro #3227
    Szabadi Gergely
    Participant

    Thank 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

    in reply to: Graphical Hotspots in Macro #3224
    Szabadi Gergely
    Participant

    upload again

    Attachments:

    G. Szabadi

    in reply to: Graphical Hotspots in Macro #3223
    Szabadi Gergely
    Participant

    OBJ1

    G. Szabadi

    in reply to: Graphical Hotspots in Macro #3222
    Szabadi Gergely
    Participant

    I 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

    in reply to: Label handles #2651
    Szabadi Gergely
    Participant

    Thanks for the answer!

    And is there any way, that my label (use textbox) act as a normal label (textbox)?

    G. Szabadi

    in reply to: Newparameter #2457
    Szabadi Gergely
    Participant

    Thanks, 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

    in reply to: Newparameter #2450
    Szabadi Gergely
    Participant

    If 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

    in reply to: Hotspots in section #2436
    Szabadi Gergely
    Participant

    Thank you, Gergely!

    G. Szabadi

Viewing 15 posts - 1 through 15 (of 25 total)