remove multi-line otcomment?

   4260   12   0
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
H81_666

I have an OTL with a multi-line comment >
foo
bla
banana
etc

I'm trying to remove the comments using: otcomment -d Object/myOTL
but it doesn't work

I can add new comments using: “otcomment -d Object/myOTL bar” to get
bar
foo
bla
banana
etc

and then I can remove it with: otcomment -d Object/myOTL to get back to
foo
bla
banana
etc

but can't remove any of the other lines….

ideas? suggestions?


thanks
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
4132 posts
Joined: July 2005
Offline
The different options for otcomment seem to be working for me. Can you post a simple OTL?

The comment is stored in the OTL as a section called “Comment”.

You can try to delete it using otdelete table/type Comment

If the comment is still there its either a bug or some other strangeness.
if(coffees<2,round(float),float)
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
hmmm..
no
otdelete is for removing HDAs from OTLs

I can't build a new HDA to reproduce the behavior….

I'm trying to delete the comments from an OTL built in H6.X :shock:
that might be the issue…..



PS:
it seems that these HDAs don't even HAVE comments according to otcomment in the textport - except the ones that are clearly there when MMB on the node…LOL….
weird
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
4132 posts
Joined: July 2005
Offline
arctor
hmmm..
no
otdelete is for removing HDAs from OTLs

I can't build a new HDA to reproduce the behavior….

I'm trying to delete the comments from an OTL built in H6.X :shock:
that might be the issue…..



PS:
it seems that these HDAs don't even HAVE comments according to otcomment in the textport - except the ones that are clearly there when MMB on the node…LOL….
weird

Opps otcontentdelete is what you want…. ops:

Lunch next Tuesday says these “mysterious” comments are old fashion opcomments.

opcomment <path to node>
if(coffees<2,round(float),float)
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
ah…yeah opcontentdelete…..

still no love…since the HDAs thinks it has no comments
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
4132 posts
Joined: July 2005
Offline
arctor
ah…yeah opcontentdelete…..

still no love…since the HDAs thinks it has no comments


Do a
otcomment Object/TYPE
then a
opcomment /obj/node_name

Do both return nothing?
if(coffees<2,round(float),float)
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
nope nothing at all …
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
4132 posts
Joined: July 2005
Offline
Ummm….. I give.
:?:

Save the OTL to disk and grep for those strings to see where they are coming from?
if(coffees<2,round(float),float)
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
well damn….
found a binary section called ‘Version’…no idea where it came from…but that was shoving crap into the comment area of the HDA… as Stongbad would say: “DELETED”

thanks Jim…

we can still have lunch next week if you want
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
4132 posts
Joined: July 2005
Offline
Of course! I forgot about that one.

help otversion

If I remember correctly, back in the 6.6 days we didn't have a otcomment yet so we dumped extra info into otversion.
if(coffees<2,round(float),float)
User Avatar
Staff
3433 posts
Joined: July 2005
Offline
yeah stupid us
Michael Goldfarb | www.odforce.net
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
10263 posts
Joined: July 2005
Offline
Yeah, I spotted the Version stuff in the contents and saw some commands to query/control it; but I've been wondering what this Version thing is all about. Is there are documentation for it? Did something sneak by? Anyone using it?

Confused,
Jason
jason iversen, pipeline technology supervisor @ weta digital
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
4132 posts
Joined: July 2005
Offline
AFAIK its just an extra tag that you can modify or add to a asset. (Which you can check with opinfo.) Just an extra tool that shops can use or ignore when managing assets.
if(coffees<2,round(float),float)
  • Quick Links