PDA

View Full Version : change a Node's Class ?


wamo
05-29-2009, 08:23 AM
Hi guys! I need to change some stuffs in my recent rig! I need to know if there is a possibility to change a Node's Class, so for eaxmple : If i have a Box in the scene and choose my filtering type to Helper it can recognize that box as a helper not a Geometry class. I was wondering if you please could help me on this ?

marktsang
05-29-2009, 09:07 AM
no you cannot reassign the class
you can possibly converting the object (if it is in fact convertable) for example from box to editablePoly or editableMesh

wamo
05-29-2009, 11:48 AM
That's very bad mate! Now after assigneing some Objs inested of Helpers , it's hassele to redo them, donno maybe could get the instances!

marktsang
05-29-2009, 12:15 PM
hi,
you cannot change the class but it appears you want to change the BASEOBJECT

do this

create a sphere and a point helper , then select the sphere and then the helper

put
$[1].baseobject = $[2].baseobject
and hit enter

you replace the objects baseobject and classof will return the new class

PEN
05-29-2009, 12:30 PM
Mark has it, here is a quick example of what it does. I was asked this privately so I thought that I would just post it here as well.

b=box()
p=point pos:[20,0,0]
m=bend()
addModifier b m
b.baseObject=copy p.baseObject
b.box=true
b.axistripod=true

wamo
05-29-2009, 12:51 PM
#("Mark", "Paul")
I got it, thanks! Solved my problem : )

CGTalk Moderation
05-29-2009, 12:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.