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 6748761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:36:20+00:00 2026-05-26T12:36:20+00:00

There was some similar threads, but I didn’t find solution of my problem. It’s

  • 0

There was some similar threads, but I didn’t find solution of my problem. It’s my first post here.
Here’s the thing:

Viewport3D viewPort3D;

GeometryModel3D geometryModel = new GeometryModel3D();  
Transform3DGroup transform3DGroup = new Transform3DGroup();

...

// Rotation
RotateTransform3D rotateTransform3D = new RotateTransform3D();   
AxisAngleRotation3D axisAngleRotation3d = new AxisAngleRotation3D();  
axisAngleRotation3d.Axis = new Vector3D(0, 1, 0);  
axisAngleRotation3d.Angle = angle;  
rotateTransform3D.Rotation = axisAngleRotation3d;  
transform3DGroup.Children.Add(rotateTransform3D);  

// Translation  
TranslateTransform3D translateTransform3D = new TranslateTransform3D();  
translateTransform3D.OffsetX = offsetX;
transform3DGroup.Children.Add(translateTransform3D);  

// Adding transforms  
geometryModel.Transform = transform3DGroup;  

Model3DGroup model3DGroup = new Model3DGroup();
model3DGroup.Children.Add( image.getGeometryModel3D() );

modelVisual3D.Content = model3DGroup;
viewPort3D.Children.Add( modelVisual3D );

And now I want to make translation using storyboard (because later I want to add also rotating to that storyboard):

Storyboard s = new Storyboard();

Transform3DGroup transform3DGroup = model3DGroup.Children.ElementAt(current).Transform as Transform3DGroup;

for (int j = 0; j < transform3DGroup.Children.Count; ++j)
{
   if (transform3DGroup.Children.ElementAt(j) is TranslateTransform3D)
   {
      TranslateTransform3D translation = transform3DGroup.Children.ElementAt(j) as TranslateTransform3D;

      DoubleAnimation doubleAnimation = new DoubleAnimation();
      doubleAnimation.From = 0;
      doubleAnimation.To = 2;
      doubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(1));
      doubleAnimation.AutoReverse = true;
      doubleAnimation.RepeatBehavior = RepeatBehavior.Forever;

      s.Children.Add(doubleAnimation);
      s.Duration = new Duration(TimeSpan.FromSeconds(1));

      Storyboard.SetTarget(doubleAnimation, model3DGroup.Children.ElementAt(current));
      Storyboard.SetTargetProperty(doubleAnimation, new PropertyPath("(Model3D.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"));

      s.Begin(); // Exception during the execution.
   }
}

Exception in the last line:

‘[Unknown]’ property value in the path
‘(Model3D.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)’
points to immutable instance of
‘System.Windows.Media.Media3D.TranslateTransform3D’.

I took PropertyPath similar to the path generated in blend 4.

Thank you for any help.

  • 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-05-26T12:36:20+00:00Added an answer on May 26, 2026 at 12:36 pm

    I think because translate tranform 3d is an immutable instance it has to be indicated that it should be mutable while rendering / translation is taking place.

    I guess

    1. We can supply x:Name to that immutable TranslateTransform3D object, to make it mutable.

    2. Bind to its property than to animate it.

    E.g. in your case

            NameScope.SetNameScope(this, new NameScope());
            this.RegisterName("AxisRotation", MyAxisRotation3DObject.Rotation);
            this.RegisterName("TranslateTransformation", MyTranslation3DObject);
    

    This way we give names to Axis Rotation 3D and Translate Transform 3D objects and then in double animations refer them as Storyboard.SetTargetName(.., "AxisRotation") and Storyboard.SetTargetName(.., "TranslateTransformation") and access their direct properties such as Storyboard.SetTargetProperty(.., new PropertyPath("Angle")) and Storyboard.SetTargetProperty(.., new PropertyPath("OffsetX")) resp.

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

Sidebar

Related Questions

I am aware there are some similar threads but I am still not sure
I know that there are some threads have a similar issue with this thread.
There are some similar questions like this already, but none of those fixes worked
There have been some similar questions asked regarding Grid views, but none have been
I know there have been some similar questions to this, but they haven't helped
There might be similar questions but I still have some parts that I couldn't
There are some similar questions, but none supply the answer I require. If I
I noticed that there were some threads with similar questions, and I did look
There are a few threads here at so about this matter but most of
There are several similar threads Q1 or Q2 to this one, but not exactly.

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.