## Forum Replies Created

Viewing 10 posts - 16 through 25 (of 25 total)
• Author
Posts
• in reply to: Hotspots in section #2431

by flags I ment unID

G. Szabadi

• in reply to: Hotspots in section #2430

Thanks again! When I add flags for the hotspot, in section view the scaling follows the object, BUT If I have an object, where I use macro object more then one, I have problem with the unique flags because they have to be unique, but it is defined the same way.
Any solution?

Thx

G. Szabadi

• in reply to: Hotspots in section #2429

Thank you!

G. Szabadi

• in reply to: Newparameter #2420

I had found an other problem with it. This is nice, working fine, create 5 block, but if a3=2 still creat 5 block instead of skipping the 3th one

parameters a1, a2, a3, a4, a5

``````!MASTER SCRIPT

dim 	parama
parama=1
parama=2
parama=3
parama=4
parama=5
parama='opt1'
parama='opt2'
parama='opt3'
parama='opt4'
parama='opt5'

dim varia[]
varia=a1
varia=a2
varia=a3
varia=a4
varia=a5

!PARAMETERS SCRIPT

for k=1 to 5
values{2} "a"+str(k,1,0) parama, parama
next k

!3D SCRIPT

for i=1 to 5
if varia[ i ]=1 then
addx (i-1)*.5
block 1, 1, 1
del 1
endif
next i``````

G. Szabadi

• in reply to: Newparameter #2419

Again, thanks. Huge help! Bu I don’t understand why is this working after if command and why it is not working with parameter command.

if varia[ i ]= 1 then ! works fine
parameters varia2[ i ]=2 ! doesn’t work

G. Szabadi

• in reply to: Newparameter #2417

Thank you very much!!!!!!!!!!!!!

G. Szabadi

• in reply to: Newparameter #2414

Thanks for the answer!
I tried to create loop with arrays, but still now working. I don’t get error massage, the script is good, but not working. Does anybody has an idea, why?

parameters a1, a2, a3, a4, a5

``````!MASTER SCRIPT

dim 	parama
parama=1
parama=2
parama=3
parama=4
parama=5
parama='opt1'
parama='opt2'
parama='opt3'
parama='opt4'
parama='opt5'

dim varia[]
varia='a1'
varia='a2'
varia='a3'
varia='a4'
varia='a5'

!PARAMETERS SCRIPT

for k=1 to 5
values{2} "a"+str(k,1,0) parama, parama
next k

!3D SCRIPT

for i=1 to 5
if varia(i)='opt1' then     !I have error to submit here the right type of bracket
addx (i-1)*.5
block 1, 1, 1
del 1
endif
next i``````

G. Szabadi

• in reply to: Newparameter #2373

Thank you very much for your answer, so it seems that I can’t concanenate strings to refer a variable name. Does anybody know how to shorten these:

variables: a1, a2, a3, a4, a5

``````for i=1 to 5
values{2} "a"+str(i,1,0) 1, 'opt1', 2, 'opt2'
next i

if a1=1 then
...
endif

if a2=1 then
....
endif

etc.
``````

if a string can equal to a string, than why is this not working?

``````for i=1 to 4
if "a"+str(i,1,0)='opt1' then
....
endif
next i``````

G. Szabadi

• in reply to: Newparameter #2370

Thank you very much it works well!

Can you help me script this parameter if I want to use it in an “if”- type control statement?

``````for i = 1 to 10
if "param"+STR(i,1,0) = 2 then
....
else
endif
next i``````

I get error massage with and without the quotation marks too. I can’t figure out why

G. Szabadi

• in reply to: Newparameter #2368

Thank you, for your answer

it is working fine (I don’t have so many parameters to reach the limit), but can you tell me any way, except copy the script, to add these parameters one kind of values?

I have:

param1
param2
param3
etc.

and I want to write same values for all of them, but it seems that this is not the best solution:

``````
values{2} "param1" 1, 'opt1', 2, 'opt2 etc...
values{2} "param2" 1, 'opt1', 2, 'opt2 etc...
values{2} "param3" 1, 'opt1', 2, 'opt2 etc...``````

can I loop this somehow?

G. Szabadi

Viewing 10 posts - 16 through 25 (of 25 total)