WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-26-2012, 03:03 PM
saajaja saajaja is offline
Member
 
Join Date: Nov 2011
Posts: 14
Scaling avatar meshes

Hello,

I am trying to scale an avatar's head and body separately. I have the Complete Characters DVD set and I am working with casual15_f_highpoly.cfg as an example.

When I do this:
Code:
c1 = viz.addAvatar('6F/casual15_f_highpoly.cfg ')
c1.disable(viz.LIGHTING)

print c1.getChildren()

print 'Model contains the following scene graph nodes:'
for name in c1.getNodeNames():
    print ' ',name

c1.getChild('casual15_f_highpoly01.CMF').setScale(2, 2, 2)
I get this:
Code:
Loading File: 6F/loadMe.cfg
[]
Model contains the following scene graph nodes:
  casual15_f_highpoly.CMF
  casual15_f_highpoly01.CMF
** ERROR: Could not find child with name 'casual15_f_highpoly01.CMF'
However, this does make the body invisible:
Code:
c1.visible(viz.OFF, 'casual15_f_highpoly01.CMF')
Help is appreciated.
Reply With Quote
  #2  
Old 07-30-2012, 08:04 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
I don't think the subchild returned is a node3D object that you can scale and call most node3D commands on. It's more like a texture that can be modified in terms of visibility and alpha. If you want to scale the head the best would be to to this in 3ds Max and re-export the meshes. That way you could also adjust the neck of the body mesh. Another option would be to create a Peoplemaker head that you could scale in Vizard.
Reply With Quote
  #3  
Old 08-24-2012, 12:17 PM
saajaja saajaja is offline
Member
 
Join Date: Nov 2011
Posts: 14
I wanted to have the option of scaling the body to arbitrary sizes while keeping the head from looking weird by scaling it separately. But it's okay. I can just make a copy of the avatar, turn off the head's visibility on one, turn off the body's visibility on the other, and scale them separately.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avatar & Motion Capture Interface Angie Vizard 1 08-05-2010 06:17 PM
avatar scale and link.setpos conflict? sircedric4 Vizard 0 09-29-2009 07:48 AM
Collision of an avatar with a quad Frank Verberne Vizard 8 06-04-2008 09:44 AM
Looking through the eyes of an avatar Frank Verberne Vizard 2 04-01-2008 05:52 AM
How to make avatar's eyes to blink when speaking michelcm3 Vizard 12 01-15-2008 08:48 AM


All times are GMT -7. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC