Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Make Unique

Make Unique

dg3duy
Collaborator Collaborator
822 Views
3 Replies
Message 1 of 4

Make Unique

dg3duy
Collaborator
Collaborator

I need the orientation constraint controller not to be an instance, I need them to be unique. Any idea how to do that? It would be helpful to be able to make each instantiated controller unique
Thank you!unique.gif

0 Likes
Accepted solutions (1)
823 Views
3 Replies
Replies (3)
Message 2 of 4

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

use the script:

 

fn uniqueSelectedTrack tv: = 
(
	if tv == unsupplied do tv = trackviews.currentTrackView
	if tv != undefined and tv.numSelTracks() == 1 do
	(
		track = tv.getSelected 1
		nodes = refs.dependentnodes track
		instancemgr.makecontrollersunique nodes #(track) #individual 
	)
)

/*********** what to do **********

#1 open track view
#2 select any one "instanced" track node (controller)
#3 execute script and run uniqueSelectedTrack() method

*********************************/

/********* how to run ************

uniqueSelectedTrack()

*********************************/

 

 

or make a macro button:

 

/************** 
select this code and drag/drop it on any toolbar and make custom macro button : 
***************/

(
	tv = trackviews.currentTrackView
	if tv != undefined and tv.numSelTracks() == 1 do
	(
		track = tv.getSelected 1
		nodes = refs.dependentnodes track
		instancemgr.makecontrollersunique nodes #(track) #individual 
	)
)

/********* use this button by pressing it ******************/

 

Message 3 of 4

denisT.MaxDoctor
Advisor
Advisor

unique_track.gif

 

0 Likes
Message 4 of 4

dg3duy
Collaborator
Collaborator

Excellent! That's just what I needed, thank you very much!

0 Likes