Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:57:33+00:00 2026-06-18T01:57:33+00:00

I am trying some simple scripting with Amira, which uses TCL but I cannot

  • 0

I am trying some simple scripting with Amira, which uses TCL but I cannot assure that it’s the standard version.
I want to read a property from an object and assign it to another object.

In the command window the procedure would be the following:

Image1 getTransform

0.1 0.2 0.3 0 0 0 0 0 0 1

Image2 setTransform 0.1 0.2 0.3 0 0 0 0 0 0 1

I want to do the same without manually copy pasting the result of getTransform

The following do not work (taht is to say setTransform is executed without arguments)

Image2 setTransform [Image1 getTransform] 

or

set myT=Image1 getTransform
Image2 setTransform $myT 

I am sure I just need to appropriately use $ [ { , but what I’ve tried so far has not given any result

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:57:34+00:00Added an answer on June 18, 2026 at 1:57 am

    If you are using Tcl 8.5 or newer, then use the {*} argument expansion:

    Image2 setTransform {*}[Image1 getTransform]
    

    which is exactly what you want.

    If you are using an older version of Tcl, then you have to use eval, a very useful command, where many things can go wrong if not used correctly:

    eval [linsert [Image1 getTransform] 0 Image2 setTransform]
    

    The linsert is used here to build up a propper list to avoid double substitution (which is almost always bad).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write some simple code which will read a text file
I'm a novice in JQuery, I'm trying some simple code but not getting the
Im trying to get some simple javascript working in gwt but keep failing. The
I've just installed flex and I'm trying some simple tests with its 2.5.4 version
I am trying to produce a simple scripting system that will be used to
I'm trying to convert some simple .htaccess rewrites into web.config xml; all is well
I'm trying to do some simple things in C and I'm confused. The program
I was trying to place some simple effects on an image using HBox using
I am trying to create some simple polygons in openGL3.3. I have 2 types
I'm trying to add some simple peer-to-peer connection functionality to an iOS library. Coding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.