Announcement

Collapse
No announcement yet.

Instanciate proxies pointing to the same file!?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Instanciate proxies pointing to the same file!?

    Hello.
    I'm using lots of proxies but since they are merged from diferent files I'm undering if proxies pointing to the same file are automaticaly instanced in the renderer?
    If not, is there any way to automaticaly instance proxies pointing to the same file?
    I guess if they're not automaticaly instanced in the renderer the above would be impossible when using xref scenes.
    Thanks

  • #2
    I wrote a maxscript once to do that, when I get back home, I can try to dig it out.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      maybe this script helps ..drag it onto the toolbar:
      Code:
      old = #()
      if queryBox "Delete old Object? " != true then del = true
      	
      	
      if $ != undefined then 
      (
      		for a in $ do 
      		(
      			if del == true then copy a
      			append old a
      		)
      		
      	new = pickObject prompt:"select instance"
      		
      	for a in old do
      	(
      	instancereplace old new 
      	)
      )
      First select all object you want to replace, then run the script and let the script know, if it should delete these objects, and then select the instance mesh.

      I wrote it for placing lights onto "placeholderobject", like in lightscape.
      It doesn't work with groups and objet which have a linked child, like a target light..btw.
      www.cgtechniques.com | http://www.hdrlabs.com - home of hdri knowledge

      Comment


      • #4
        Thanks.
        Actually I have a script that does this but...I have to find the objects referencing the same file by hand (not instances of same file).
        I guess I must access the filename property in the proxy objects but...it's not that important now.
        The scenary here it might help is when you use xref scenes that contain proxies...several scenes could have proxies pointing to the same file (trees for exemple) and in this case I don't think they behave like instances to the render.

        Comment


        • #5
          Originally posted by RSF
          Thanks.
          Actually I have a script that does this but...I have to find the objects referencing the same file by hand (not instances of same file).
          I guess I must access the filename property in the proxy objects but...it's not that important now.
          The scenary here it might help is when you use xref scenes that contain proxies...several scenes could have proxies pointing to the same file (trees for exemple) and in this case I don't think they behave like instances to the render.
          No, they don't - each will try to load the file separately from the rest. They need to be instances to use the same geometry pool.

          Best regards,
          Vlado
          I only act like I know everything, Rogers.

          Comment

          Working...
          X