Notifications
Clear all

[Closed] Non-blocking viewport/object transformations

Is it possible to do object transformations without blocking Max/playback? Maxscript, .NET or C++, I’m open to any sugestion

I assume it is, I can start playback, and pan the viewport without blocking, but moving an object it’s not possible.

On the other hand if I setup a camera and set it as the current view, I cannot move it while playing, but I can pan it.

If you have any pointers on how to properly do this I would be very much appreciated.

Thanks for your time.

Cheers,
Artur

3 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

is it not what you want?

try(destroydialog transformTest) catch()
 rollout transformTest "Transform Test" width:200
 (
 	spinner sp "Z Position: " range:[-1e9,1e9,0] fieldwidth:60
 	
 	local ttime = undefined
 
 	on sp buttonup do ttime = undefined
 	on sp changed val do 
 	(
 		if ttime == undefined do ttime = currenttime
 		at time ttime $.pos.z = val
 	)
 )
 createdialog transformTest

the idea is to make your own ‘joystick’ to manipulate a node transform

What about updating the timeslider via a dotnet timer with a 1/fps frequency?

Then max won’t be in playback mode but will advance the timeline. Not sure if that will allow you to keep moving stuff around but if it does works non-blocking you will need to add some logic to enable ‘realtime’ playback instead of every frame etc.

/bit of a hack

Denis, as usual, I think you just solved my problem the easiest way possible! I’m gonna try to figure out if this can fit what I’m working on, but yeah, that’s it!

Thank you so much.

Jonathan: Yeah, I’m doing something similar, hacking my way as usual but was hoping to do it “the right way” (don’t we all, all the time :D) Thanks!